×

Monday, August 24, 2009

drop down menu code for website

Description: This is an extremely versatile drop down menu script for ordinary links on your page, including image links. It can be activated either onMouseover or onClick. The menu contents are defined inside a shared .js file (ie: menucontents.js) for easy editing across multiple pages. Here's a listing of its features:
Two different toggle methods- Each menu can be activated either Mouseover the anchor link, or Click instead.
Two different orientations, "ud" or "lr"- Each menu can be set to either drop down below the anchor, or to the right of it instead. The later is desirable if the anchors are "side bar" or "vertical" links.
Menu repositions itself if too close to any of the window's four edges to avoid being obscured.
Ability to style the currently selected anchor link using CSS, or for image anchors, toggle between two images. v2.1
Global settings to set the delay before each menu disappears onMouseout, whether to enable shadows, and last but not least, a fade-in effect when the menu is revealed.
Note that if a drop down menu is set to be revealed onClick on the anchor, the link inside the anchor is naturally disabled.




link for this: http://dynamicdrive.com/dynamicindex1/dropmenuindex.htm

No comments: