Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2003
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Javascript replicated throughout web

    This must be a silly question but..... I want to use a cascading menu but try to avoid having to use frames. How can I get the Javascript menu automatically embedded in all pages such that if it changes it's a simpel edit in one place. Can't see how to achieve it in CSS. One option was to use frontpage shared boarders but failed to get that working.

  • #2
    Regular Coder
    Join Date
    Aug 2003
    Location
    Loughborough University
    Posts
    427
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You could just document.write your entire menu in one .js file along with all of your functions, then wherever you want the menu just put <script type="text/javascript" src="xxx.js"></script>.

    Alternatively you could just write the menu on a page an use server-side includes to put it on the pages you want.
    AMD Athlon "Barton" XP 3200+ (11*200.5MHz = 2.2GHz)
    BFG GeForce 6800 Ultra OC 256Mb
    3 * Kingston 256Mb PC3200 DDR400
    Seagate Barracuda 120Gb Ultra ATA-100 and Seagate Barracuda 160Gb, SATA-150


  •  

    Posting Permissions

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