I've got a javascript code that does it... you'll have to change every page initially, but after that just change the .js file...
The code can be seen working on any of my internal pages through my website -
http://www.lunarpages.com/dragongirl/When I first wrote this code noone had done anything like this and I haven't seen any code as simple as this for dynamic menus. I hope it is of use to you. Please keep the commented lines intact in your code as credit to me. Thanks.
Here is the code...
place this where you want the menu to be displayed (ps... you can do all sorts of dynamic menus by changing this little peice of code around a bit. This will do a list of items one after the other):
<!-- menu -->
<SCRIPT LANGUAGE="JavaScript">
// Menu Generator (c) Kahlan Amnell -
dragongirl@softhome.net// Dragon Girl's Realm -
http://www.lunarpages.com/dragongirl/// This script may not be used without permission
for (x=0; x<menuitem; x++ )
{
document.write('<A HREF="' + link[x] + '" >' + menu[x] + '</A><BR>');
}
// End -->
</SCRIPT>
place this inbetween your <head></head> tags:
<SCRIPT LANGUAGE="JavaScript1.2" SRC="menu.js"></SCRIPT>
and create a file called 'menu.js' and place in it the following:
// Menu Generator (c) Kahlan Amnell
// This script may not be reproduced without permission
// Menu for the root directory
var menu = new Array(
"Home",
"About Us",
"Contact Us",
"", // creates a blank line
"etc"
);
var link = new Array(
"index.html",
"about.html",
"contact.html",
"",
"etc.html"
);
// the number of items in the menu array
var menuitem = 5;
[ February 19, 2002: Message edited by: Kahlan ]