Inserting html page in other html page & shared border problem

Discussion in 'HTML & Website Design' started by globalcashsite, Jul 14, 2009.

  1. #1
    Guys

    On my website www.globalcashsite.com I have left side menu that is created in each page. I know that is not a good way to do because I have to make changes on all pages.

    I want to create left menu in a html page and then wish to add that page in all pages so I may change at one place and that reflects on all pages.

    How to insert html page in another html page? Any code or what?

    I did not use Shared Border of leftside (as top or bottom) because Shared Border keeps out of page. My page width is 960px but shared border goes extreme left. If I can solve this problem then I don't need to create separate menu page and then insert in all pages? Any solution of this?

    GCS
     
    globalcashsite, Jul 14, 2009 IP
  2. Rodder7

    Rodder7 Active Member

    Messages:
    451
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    88
    #2
    I would not go this route. I think solutions down this path will effect your seo. You can use iframes and go to samisite.com and other sites for good tutorials though on iframes. If your making changes alot, I would tend to go with a CMS like joomla or drupal, but that's me.
     
    Rodder7, Jul 15, 2009 IP
  3. globalcashsite

    globalcashsite Peon

    Messages:
    806
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi buddy

    Someone recommend me to use iframe I just installed it. :)

    I don't know there is any other option for this situation other than iframe.

    Have a look at site and see if there can be improvement.

    GCS
     
    globalcashsite, Jul 15, 2009 IP
  4. globalcashsite

    globalcashsite Peon

    Messages:
    806
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Guys

    I am not comfortable with iframes, please suggest me any good alternate? :confused:

    GCS
     
    globalcashsite, Jul 15, 2009 IP
  5. HorseGalleria

    HorseGalleria Peon

    Messages:
    91
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Look at using PHP or other scripting language. Then you can do an "include" or "require" to fetch your other pages. By the way, iframe is not supported in strict html 4.1 and xhtml 1.0. You could look at the object tag as a replacement.
     
    HorseGalleria, Jul 15, 2009 IP
  6. windy

    windy Active Member

    Messages:
    1,093
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #6
    try use php , it's very easy to insert one page into another
     
    windy, Jul 16, 2009 IP