Welcome to TalkGraphics.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2004
    Posts
    10

    Default

    I'm still trying to figure out how to change the location of the navbar and would appreciate any help. I want my navbar to be in images/index_files/ and the code below is inserted in index.html to accomplish this. The navbar looks fine but when I click on one of the buttons, say the About Us button, the url should be http://www.mysite.com/about.html but it is inheriting the path of the navbar so the url ends up being http://www.mysite.com/images/index_files/about.html. If I move all of the navbar files into the root, everything works fine but I'm trying to avoid that due to the number of files involved. Does anyone know how to fix this?

    < !--webbot CLIENTSIDE bot="Ws4FpEx" MODULEID="'Web2 [Project)\index_hnavbar_off.xws'" PREVIEW="<img src='images/index_files/index_hnavbar.gif?0E7DB770' editor='Webstyle4' border='0'>" startspan --><script src="xaramenu.js"></script><script Webstyle4 src="images/index_files/index_hnavbar.js"></script><noscript>[img]images/index_files/index_hnavbar.gif?0E7DB770[/img]</noscript>

  2. #2
    Join Date
    Mar 2004
    Posts
    10

    Default

    I'm still trying to figure out how to change the location of the navbar and would appreciate any help. I want my navbar to be in images/index_files/ and the code below is inserted in index.html to accomplish this. The navbar looks fine but when I click on one of the buttons, say the About Us button, the url should be http://www.mysite.com/about.html but it is inheriting the path of the navbar so the url ends up being http://www.mysite.com/images/index_files/about.html. If I move all of the navbar files into the root, everything works fine but I'm trying to avoid that due to the number of files involved. Does anyone know how to fix this?

    < !--webbot CLIENTSIDE bot="Ws4FpEx" MODULEID="'Web2 [Project)\index_hnavbar_off.xws'" PREVIEW="<img src='images/index_files/index_hnavbar.gif?0E7DB770' editor='Webstyle4' border='0'>" startspan --><script src="xaramenu.js"></script><script Webstyle4 src="images/index_files/index_hnavbar.js"></script><noscript>[img]images/index_files/index_hnavbar.gif?0E7DB770[/img]</noscript>

  3. #3
    Join Date
    Mar 2004
    Posts
    5

    Default

    I have not tryed this but you could try ../index_files/about.html. The ../ is the root of your website.

  4. #4
    Join Date
    Mar 2004
    Posts
    10

    Default

    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>Originally posted by drdisk:
    I have not tryed this but you could try ../index_files/about.html. The ../ is the root of your website.<HR></BLOCKQUOTE>
    Actually, about.html is in the root and the navbar is in index_files/. But I tried changing the code in index_hnavbar.js from loc+"about.html" to loc+"../about.html" and it did back it up one level so it is now http://www.mysite.com/images/about.html instead of http://www.mysite.com/images/index_files/about.html. So it looks like you are on the right track. I'll keep playing with it but if you (anyone) can think of anything else to try I would appreciate the help.

  5. #5
    Join Date
    Jan 2002
    Location
    Baytown, TX USA
    Posts
    370

    Default

    Add another ../ to the code to back it up one more level.
    dafipp

  6. #6
    Join Date
    Mar 2004
    Posts
    10

    Default

    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>Originally posted by dafipp:
    Add another ../ to the code to back it up one more level.
    dafipp<HR></BLOCKQUOTE>Ahh, I thought you meant the ../ represented the root of the site. Adding the second one did it. The navbar is in its own directory and all the links work. Thank you very much.

 

 

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
  •