When you have multiple pages on your site, it can be a bit tedious to have to edit the navigation menu on each page, when you update your site.
Historically I've just used one HTML file with the navigation menu calling it something like, "navi-menu.htm" and then calling it in each other page with the line of code:
|
HTML Code:
|
<!--webbot bot="Include" U-Include="/navi-menu.htm" TAG="BODY" --> |
That way, if I ever want to change the navigation menu options I only have to do it once, rather than changing every html file on the site.
This works great if you have everything in the root folder on your server. However, I've had problems with it when I start adding folders from the root folder and then sub-folders within those folders. I find it doesn't always find the navi-menu.htm file.
So my questions is: Does any one know of another way of achieving the same thing - using either HTML or Javascript?
Many thanks,
Jason