Use the options in the table to tune up the menu. The menu will be updated each time you click one of the Update buttons.
For the color options you can select either a basic color name like: black, white, red, purple, etc.
or any color represented in 'rgb' format (#rrggbb).
|
There are 3 essential parts of the menu that should take place in your web site.
Each of them could be placed in a separate file or inside the html code of your web page. We recommend you to save all 3 pieces in separate files.
- a library with javascript functions called 'menuBasic.js'. You can download it from here.
- a stylesheet. Copy the text from the box called stylesheet and paste it in a new file. Name this file 'menu.css'.
- a javascript with the menu items. Copy the text from the box called javascript and paste it in a new file. Name this file 'menu.js'.
The menu is ready for implementation in your web page. Place all 3 files in the same folder with your html file.
Then add the following two line in the head section of your html:
<script language="JavaScript" src="menuBasic.js"></script>
<link rel="stylesheet" href="menu.css" type="text/css">
Also place the next line anywhere in the body section:
<script language="JavaScript" src="menu.js"></script>
Finally your web page should look like this:
<html>
<head>
...
<script language="JavaScript" src="menuBasic.js"></script>
<link rel="stylesheet" href="menu.css" type="text/css">
</head>
<body>
...
<script language="JavaScript" src="menu.js"></script>
...
</body>
</html>
|
addMenuItem('','mainMenu','');
addMenuItem('mainMenu','Company','');
addMenuItem('Company','Profile','../html/profile.html');
addMenuItem('Company','What we do','../html/whatwedo.html');
addMenuItem('Company','Feedback','../html/feedback.html');
addMenuItem('Company','Careers','../html/careers.html');
addMenuItem('mainMenu','Services','../html/services.html');
addMenuItem('Services','Custom Applications','../html/customapp.html');
addMenuItem('Services','Web Development','../html/webdev.html');
addMenuItem('mainMenu','Projects','../html/projects.html');
addMenuItem('Projects','RioAlto','../html/rioalto.html');
addMenuItem('Projects','Suncor','../html/suncor.html');
addMenuItem('Projects','GoldSeal Mechanicals','../html/goldseal.html');
addMenuItem('Projects','Cameron Strategy','../html/cameron.html');
addMenuItem('mainMenu','Resources','');
addMenuItem('Resources','Menu Builder','../html/menubuilder.html');
addMenuItem('Resources','Picture Album','../html/webalbum.html');
addMenuItem('Resources','3D Flash objects','../html/flash.html');
addMenuItem('mainMenu','Contact us','../html/contact.html');
document.write(buildMenu());
showDiv('mainMenu');
|