Thursday, October 30, 2008

JavaScript Menu

Simple JavaScript DropDown Menu with timeout effect v2.0 « Scripts and Tricks « JavaScript DHTML Tutorials

I implemented the JavaScript menu from this page on my Finance Pages. Since countries started piling up, I moved them under a separate menu.

The only drawback of this option is that the menu has to be left-aligned with float:left. That way the drop-down menu can appear at the right spot. Otherwise, if the menu is centered, the drop-down appears at the far left and looks ridiculous.

I removed most of the (unnecessary) formatting from the related style sheets because I had the styling taken care of already. All I needed was the JavaScript and the mechanism of displaying the drop-down sub menu.

No comments: