Drop Down Menu3. Customize the Menu |
|
Join the DiscussionMore of this FeatureThe next step is to customize the script so that the menu entries are those that you require. To do this locate the section of code in the head script that defines the example menu. It looks like this:
var bar = new menuBar();
bar.addMenu('Menu 1'); bar.addItem('entry1a.htm','Entry 1a'); bar.addItem('entry1b.htm','Entry 1b'); bar.addMenu('Menu 2'); bar.addItem('entry2a.htm','Entry 2a'); bar.addItem('entry2b.htm','Entry 2b');
Now that you have customized your menu you can link it into the head of your page using the following code:
<script type="text/javascript"
src="menuh.js">
</script> <link rel="stylesheet" href="menu.css" type="text/css" media="screen" /> The final step is to generate the body script. |


