Doing it with style
Description source: pull-down menu
Having developed my previous menu to use IE CSS expressions to set the width of the sub menus I have found that it is only a small step to use expressions to do what suckerfish does with javascript.
In this demo I use the same expression but rewritten to work out the widths of the sub menus and have a single line to also add the class .cssplay_hover to the li tag when the mouse is over the element and remove the class when the mouse is moved off the element. So a simple one line expression to replace the suckerfish javascript. I know that expressions are javascript driven but with this method there is no waiting for the page to load before the routine works and it is all combined within the stylesheet.
It also means that you do not need the conditional comments in the menu structure which is now just an ordinary set of nested lists.
This menu has been tested and works in IE6, IE7, Firefox, Opera, Safari(PC) and Google Chrome.
Because of all the time and effort spent in producing this demonstration I would ask that you respect my copyright.
This demonstration can be used subject to the following terms and conditions.
Your donations keep CSS PLAY running.
If your donation is for the use of a demo then please email me with the demo url after making your donation.