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

7. Final Touches

We're almost finished now, but our menu still doesn't quite look like the one at the top of the page.

All that's left is to add the subtle omMouseover effect and the transparency.

The mouseover is simple, just add the following to each <td> element of your menus:

onMouseover="this.style.backgroundColor = '#ac2020';" onMouseout = "this.style.backgroundColor = '#8b0000';"

The transparency effect is added using CSS (Cascading Style Sheets). Add the following to your style sheet:

.menu { filter:alpha(Opacity=90, FinishOpacity=30, Style=1, StartX=0, StartY=0, FinishX=200, FinishY=500); }

Add the following code to the <div> that surrounds each of the menus:

class="Menu"

More information about using transparency in css can be found here.


<< Part VI: Finishing Off Part VIII: Wrap it up in ASP >>

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