Forum Moderators: open
I have a site with a couple of simple menus residing in tables. They don't slide, flash, bounce gyrate ... and I don't want them to.
BUT, I want to be able to change them easily, for each appears on about 25 pages.
Is there a way to create an external javascript file (such as, say master.js, and create a function using document.writeln to build my table) and then call it from within the page--without using a handler such as "OnClick"?
Any help (by direct email, too) is appreciated.
Ace in CT
It seems to me what you are really looking for is a server side include [w3.org].
What you need to do is to write your menu in a separate file, say master.html. Then you only need one line to 'import' it into your page:
<!--#include file="master.html" -->
This is to be placed on each page you want the menu on. Changes then only have to be done in the master.html file.