Website Tips -> Website Multi-Page Menu
For your information, this is how I did it in MS Notepad. Maybe you could make it to work for your website. I had to make changes in almost 250 pages to implement it.
The examples I give here are taken directly from my website. Just change the domain name to your own. You could name the script file as menu.js. Make this file name as short as possible, up to 8 characters. The menu.js has the following. Remember this is a bare bone example.
You must have <!- the very first line and //--> as the very last line. You can use comments as shown.
The document.writeln prints out one line. At the end of the line, you must close the line with ');
To go to the next line and have another menu item, have <br> before '); If you look at the font line, at the end of the line, I have <br>. I wanted to start the menu with a blank line.
<!-- Begin Vertical Menu code -->
document.writeln('<div id="bv_Text1" style="position:absolute;left:38px;top:85px;width:140px;height:423px;background-color:#DFF2F2;z-index:1" align="left">');
document.writeln('<font style="font-size:15px" color="#000000" face="Times New Roman"><br>');
document.writeln('<a href="http://www.mywebsiteworkout.com/about-us.php">About Us</a><br>');
document.writeln('<a href="http://www.mywebsiteworkout.com/contact-us.php">Contact Us</a><br>');
<!-- End Vertical Menu code -->
Then, in each of your content file wherever you want your menu inserted, use the following:
Again, obviously, you would use your own domain name instead of mine. The name of your menu.js file can remain the same.
A Website Tutorial
Learn to create your first website
Powered By: Voda Utilities