PDA

View Full Version : Accordion Menu wont close all by default



carterj
11-04-2008, 10:21 PM
1) Script Title: Accordion Bullet script

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

3) Describe problem: I want all menus to be closed upon opening the website, but whatever I do, the first menu with subcategories (About Us) expands by default. Ive tried persistance on and off, and default expanded is set to 0

Im using JS v1.2.6 and viewing in IE7

Heres the test site: http://www.kms-cbs.com/home.htm


Any help much appreciated.

Thanks

ddadmin
11-05-2008, 12:07 AM
Looking at your source, you should have the following parameters changed to the below values:


defaultexpanded: [], //index of content(s) open by default [index1, index2, etc]. [] denotes no content
persiststate: false, //retain state of menu (open / closed) within browser session when opening new page?

Everything else should remain the same.

carterj
11-06-2008, 11:05 AM
Problem solved - many thanks :)

We had an erroneous [0] in the defaultexpanded instead of just []

Kind Regards