PDA

View Full Version : DD accordion with no sublink



tpilgrim
07-11-2008, 08:42 PM
ddaccordion


http://www.209.12.23.25/aboutus.aspx (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:confused:

ddadmin
07-11-2008, 09:20 PM
Warning: Please include a link to the DD script in question in your post, in this case: http://www.dynamicdrive.com/dynamicindex17/ddaccordion.htm. See this thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) 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:


<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>