Results 1 to 2 of 2

Thread: DD accordion with no sublink

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

    Arrow DD accordion with no sublink

    ddaccordion


    http://www.209.12.23.25/aboutus.aspx


    this is an awesome script. However, I have run into a small "bug","feature". When the first top level link has no sub links, and another top level does, when you mouse over the first top level link, it expands the 2nd top level sub menu.

    I have tried to work on this, but have not figured it out.

    I would like the menu to do::

    If a top level link has no sub menu, if you mouse over it, it does NOT expand the next sub menu in line, being the next toplevel's submenu.

    Any Ideas? thanks for the help

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

    Default

    Warning: Please include a link to the DD script in question in your post, in this case: http://www.dynamicdrive.com/dynamici...daccordion.htm. See this thread for the proper posting format when asking a question.

    Your URL doesn't work for me. Regarding your question, if a top level link has no sub menus, then just make sure it's not part of an accordion contents group (specified using a shared CSS class name). For example, there are two headers below, the first one not part of the group:

    Code:
    <h3>Dogs</h3>
    
    <h3 class="mypets">Cats</h3>
    <div class="thepet">
    The Cat, also known as the Domestic Cat or House Cat to distinguish it from other felines, is a small carnivorous species of crepuscular mammal that is often valued by humans for its companionship and its ability to hunt vermin. It has been associated with humans for at least 9,500 years.
    </div>

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
  •