View Full Version : Hover Background in AnyLink Drop Down Menu

04-07-2008, 03:59 PM
Script Title: AnyLink Drop Down Menu

Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm

Describe problem:
I can't set the hover background color to white (or #FFFFFF). It won't do it, it just stays the background color.
Also is there a way to set the width to auto?

I really like this script, I have used it a lot.

Thanks for the help,
- Nicole

04-07-2008, 06:28 PM
The menu items' hover look is controlled via CSS. So to get a white background for example, you can simply change the default "yellow" to "white" in the following:

#dropmenudiv a:hover{ /*hover background color*/
background-color: white;

Regarding an auto width, theoretically you can just pass in "auto" for the 3rd width parameter of dropdownmenu(this, event, menu1,'auto'), but this causes problems in IE.