PDA

View Full Version : Glossy Accordion Menu Help



houdashelt1
08-12-2008, 07:08 PM
1) Script Title: Glossy Accordion Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-glossy.htm

3) Describe problem:
I am working with Dynamic Drive's Glossy Accordion Menu and I am having trouble getting the expanding menu to close when I click on a header menu item that doesn't have an expanding menu. (Ex: My CSS Examples expanded menu won't close when I click on the Dynamic Drive tab. )

Does anybody have any suggestions how I can get an expanded accordion menu to close when I click on a single header menu that will take me to another Website?

Thanks for your help!

ddadmin
08-12-2008, 07:58 PM
You'll need to manually call the available functions for expanding/ collapsing a menu item if you're talking about menu items with no sub menus associated with them (ie: the "Dynamic Drive" item), as technically, they are not associated with the script in any way. You may do something like the below instead to manually collapse all the contents:


<a class="menuitem" href="http://www.dynamicdrive.com/" onClick="jQuery('.categoryitems').hide()">Dynamic Drive</a>

where "categoryitems" should be the shared CSS class name of your contents. There's a similar discussion here: http://www.dynamicdrive.com/forums/showthread.php?p=154368

houdashelt1
08-12-2008, 08:52 PM
Thank you for the script. It does help collapse the expanded menus if I am linking to a page that will open in the parent window.

Is there something I can do along the same lines that will collapse the expanded accordion menu if I target the menu items with no sub menus to open the associated link in a new window (target="_blank")?

Thanks again for all of your help!