Results 1 to 3 of 3

Thread: Anylink Drop Down Menu Issue

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

    Default Anylink Drop Down Menu Issue

    1) Script Title: Anylink Drop Down Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...pmenuindex.htm

    3) Describe problem: --------------------------------------------------------------------------------

    hi - sorry if this is a stupid question
    everything works fine on my site except i can't seem to add workable links to the topmost menu item (the sub-items work fine)

    as an example: on the "demo" in the anylink Drop Down Menu
    page on dynamicdrive.com, the menu shows: web design, technology, news sites. None of the top links work.. all the links on the drop down work fine.

    I'm having the same problem with my site.. all the drop down menu items all link fine but the top level doesn't hyperlink at all..

    i need to have a general link and also the variables as links as well.

    any thoughts?

  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

    That is by design. What happens is that those top level links only fire if javascript is disabled. If you go with it like that, they can be a backup for non-javascript enabled browsers - for accessibility purposes - say, they could take the non-javascript user to a page with a menu that has the same links on it that the drop down has.

    However, depending upon the overall design of the pages and links involved, like if all of the links on a drop down are to anchors on a single page, you might want the top link to also be to that page, and to have it fire even when javascript is enabled.

    Now, this obviously makes no sense if the drop down activates onclick, you'd never see it. But, for drop downs that activate onmouseover, simply remove this (highlighted) from the link:

    Code:
    <a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu1, '150px')" onMouseout="delayhidemenu()">Web Design</a>
    - John
    ________________________

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

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

    Default

    thanks so much.. works perfectly..

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
  •