PDA

View Full Version : Accordion Navigation Open/Close Problem



jswain
10-05-2011, 03:34 PM
Accordion Navigation

http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-bullet.htm

I'm currently using the accordion navigation and when the page loads the first navigation item is open. I need them to be all closed. Then , obviously, when you click on one of the links, it slides open.

This is my example. http://staging.awp2008.com/formservices.com/

The first tab "Concrete Forming and Shoring" should be closed when the page loads.

Any help would be much appreciated.

rangana
10-05-2011, 04:16 PM
On menu.js, remove the defaultExpanded setting:


defaultexpanded: [0], //index of content(s) open by default [index1, index2, etc]. [] denotes no content

jswain
10-05-2011, 04:22 PM
I had already done this and navigation still displayed in the open position.

rangana
10-05-2011, 04:38 PM
Do a CTRL + F5. It works pefectly now:
http://staging.awp2008.com/formservices.com/

djr33
10-05-2011, 07:27 PM
I just loaded the page for the very first time (using Firefox 6, Mac) and the first menu was open.
After refreshing, it was closed. I'm not sure why, but something complicated is going on.

jswain
10-05-2011, 08:27 PM
Yah I know. I've been all over the script that controls the functions and I can't get it straight.