Results 1 to 2 of 2

Thread: same menu for whole site

  1. #1
    Join Date
    Mar 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default same menu for whole site

    Hi all,
    i know its been discussed several times here. but i have another issue with using same menu in all the pages. i am using a .js file for menu all over the site. but when i click on a link which takes me to another page (which is under another folder), all the links stops working because of the way they are coded. for example
    when i click link from home page
    home -> page 1 (page 1 resides in www.site.com/core/page1.html)

    now from page 1 all the links will be changed and will not work

    page 1 (www.site.com/core/home.html)

    whereas home.html resides in the root directory. all the pages will be linked under "/core/page2.html".

    please help.
    thank you

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    I think if you dont use the '/' it should work. So link them with 'core/page2.html' from the root or 'page2.html' from the 'core'.
    Corrections to my coding/thoughts welcome.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •