bainsbury
07-22-2010, 05:18 PM
1) Script Title:
Accordian: Want a main menu item with no children, collapse other submenu on click
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ddaccordion.htm
3) Describe problem:
I am trying accordian and I think it is great. I do have one problem. I have a menu where some of the main menu items do not have children. I Know I can add them as static items but .... if one menu item is selected and its submenu is displayed, when a user clicks on a different menu item (that has no children), I want the on-display submenu to collapse and focus to be placed on the newly clicked childless menu item. Make sense? Phew.
You can see a simple example here http://www.ainsbury.com/accordiantest/
Any and all advice is appreciated
Accordian: Want a main menu item with no children, collapse other submenu on click
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ddaccordion.htm
3) Describe problem:
I am trying accordian and I think it is great. I do have one problem. I have a menu where some of the main menu items do not have children. I Know I can add them as static items but .... if one menu item is selected and its submenu is displayed, when a user clicks on a different menu item (that has no children), I want the on-display submenu to collapse and focus to be placed on the newly clicked childless menu item. Make sense? Phew.
You can see a simple example here http://www.ainsbury.com/accordiantest/
Any and all advice is appreciated