Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Jun 2001
    Location
    Quakers Hill, NSW, Australia
    Posts
    153
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Site Navigation (FP2000)

    I have found a nav bar that I would like to use on a web site. It's a floating menu that slides up & down the LHS of the page. (http://www.dynamicdrive.com/dynamici...staticmenu.htm).

    I have successfully added it to my index page, but when I nav to another page it disapears (the script is only on index.html)
    Do I have to add this script to all my site pages, or is there a way to link to all pages it so that I only need to have 1 copy on my site?

    Any sugestions would be very appreciated.

    Thanks
    Neville Wenban

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Site Navigation (FP2000)

    You can import a script from a .js file into a page with code like this:

    <SCRIPT LANGUAGE="JavaScript" SRC="/menus.js"></SCRIPT>

    Note that the .js file I'm envisioning contains the code that would normally go inside the <SCRIPT> and </SCRIPT> tags, and no HTML at all.

    However, you might need to set a variable on each page, too, if you want the "current page" highlighted or disabled in the nav bar. I'm not sure of the best way to do that, but I think you can see that this would be a useful thing to have if it's not too difficult to code.

Posting Permissions

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