Results 1 to 3 of 3

Thread: a.dropMenu:hover not working w/onClick & AnyLink Drop Down Menu

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

    Question a.dropMenu:hover not working w/onClick & AnyLink Drop Down Menu

    Script: AnyLink Drop Down Menu
    http://www.dynamicdrive.com/dynamic...opmenuindex.htm

    I need to open a link in a new window. I am using the onClick event.

    I have two links, the one w/ the onClick does not get the correct hover style applied - the one w/o the onClick does. I know it's my styles, I just can't figure it out!

    Sample page:
    http://www.brennyconsulting.com/ddmenu/ddmenu.htm

    Goto --> yahoo (doesn't work)
    Goto --> craigslist (correct behavior)

    Thanks,
    Jo
    Last edited by jbrenny; 04-28-2005 at 07:43 PM. Reason: type-o

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You need an href specified for the anchor tag for it to receive the style for link hover, without an href, it is not a link, only an anchor (this behavior is peculiar to IE). Many people use:

    href="#"

    Depending upon the situation, there are others but, that usually is fine.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Apr 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Wonderful! Worked like a charm.

    Loving it.......

    Have a great night everyone
    Jo

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
  •