ivo
12-30-2003, 01:17 PM
Hi everyone!
I'm starting to create my own homepage and I want to have the same navigation menu in all of my pages. If sometime I want to change my menu, I would like it to change it once and it would affect all pages with that menu.
Here's what I want to have:
http://javascript.internet.com/navigation/cascading-menu.html#
Correct me if I'm wrong, but if I save my menu in let's say menu.js, then I have to put on every page a code:
<script language="javascript" src="menu.js"></script>
Can somebody tell me how to make such (javascript) file and if there is maybe even better way to solve my little problem?
I'm sure it won't be too hard for any of you :D
Thanks a lot, Ivo.
I'm starting to create my own homepage and I want to have the same navigation menu in all of my pages. If sometime I want to change my menu, I would like it to change it once and it would affect all pages with that menu.
Here's what I want to have:
http://javascript.internet.com/navigation/cascading-menu.html#
Correct me if I'm wrong, but if I save my menu in let's say menu.js, then I have to put on every page a code:
<script language="javascript" src="menu.js"></script>
Can somebody tell me how to make such (javascript) file and if there is maybe even better way to solve my little problem?
I'm sure it won't be too hard for any of you :D
Thanks a lot, Ivo.