Results 1 to 2 of 2

Thread: Hover Background in AnyLink Drop Down Menu

  1. #1
    Join Date
    Apr 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Hover Background in AnyLink Drop Down Menu

    Script Title: AnyLink Drop Down Menu

    Script URL (on DD): http://www.dynamicdrive.com/dynamici...pmenuindex.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
    Last edited by ndmpatriot; 04-07-2008 at 04:03 PM. Reason: added to the problem.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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:

    Code:
    #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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •