PDA

View Full Version : Closing Open Menu Items



xiecs
04-07-2010, 01:48 PM
1) Script Title: Accordion Menu

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

3) Describe problem:
I have the following set up as the first entry in my menu list.

<h3 class="menuheader"><a href="http://www.myURL/Default.aspx" onClick="ddaccordion.collapseall('expandable'); return false">Home Page</a></h3>

As you can see, it is not an expandable list, unlike the other entries in the menu.

If I leave the onClick code out, the Home page is displayed but any other menu that is expanded remains expanded.

If I include the onClick code, any other expanded menu is closed but the Home page does not display.

Is it not possible to do both?

Nile
04-07-2010, 02:00 PM
Here:
<h3 class="menuheader"><a href="http://www.myURL/Default.aspx" onClick="ddaccordion.collapseall('expandable');">Home Page</a></h3>