View Full Version : Javascript replicated throughout web

10-11-2003, 10:39 AM
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. :confused:

10-11-2003, 03:16 PM
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.