More Info


You are in: home > javascript > drop down menu tutorial >

There is a newer drop-down menu tutorial at:
http://www.aspandjavascript.co.uk/javascript/drop_down_menu_tutorial_version_2/

click here to go to the new drop down menu tutorial

Unfortunately, support can no longer be offered for this tutorial

Cross Browser Drop-down Menus

5. Hiding the menus

Test the following in Netscape 4.x:

The revised code is below:

We've added 2 more functions - menuOverTest and menuOutTest. menuOutTest is called every time the mouse leaves an element of the menus. It sets up a timer that closes all the menus after a small delay. menuOverTest is called when the mouse enters a menu element. This simply cancels the timer so the menus stay visible.

This extra code is only necessary for Netscape 4.x. All the other browsers I've tested the code on will respond to the document.onMouseover event.


<< Part IV: Multiple Menus Part VI: Moving On >>

Get the code:
[Drop-down version] [Side-menu version] [Cascading version]

If you like Javascript Cascading Drop-down Menu ,
please rate it! @ ScriptSearch.com
Rate Our Program
@ HotScripts.com
Rate Our Program
@ AllTheScripts.com





 © James Austin 2002-05 Web site design by James Austin