SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot Stancy_McKatt's Avatar
    Join Date
    May 2002
    Location
    NW Tennessee, USA
    Posts
    164
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question one file navagation

    Is there anyway to make a javascript menu where it remote links to a page...Er... I mean to were you just take an put the main script in a seperate file and just put a couple of lines of code in each html page where the menu's supposed to go. Kinda like useing Css.. You edit one file and it shows up on all pages?


    Any info on this is very muchly appreciated

    I'm sorry about not knowing the right terms...

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,578
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Take everything between the <script> and </script> and paste that into notepad and save it as menu.js

    Upload menu.js to your website

    Now, everywhere you want the menu to show up, type this:

    <script language="JavaScript" src="menu.js"></script>

  3. #3
    SitePoint Zealot Stancy_McKatt's Avatar
    Join Date
    May 2002
    Location
    NW Tennessee, USA
    Posts
    164
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks a bunch. >^-^< I really really appreciate it. >^_^<

    Thanks again!
    ~Crys


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
  •