View Full Version : Accordion Content

08-16-2008, 08:35 AM
1) Script Title:
Accordion Content script (v1.5.1)

2) Script URL (on DD):
Right over here (http://dynamicdrive.com/dynamicindex17/ddaccordion.htm)

3) Describe problem:
The script is functioning properly in all manners except for one. I cannot seem to figure out how to ensure the top item/content is the one expanded when the page is first loaded. It always seems to open with the second item expanded. I've looked through the script and whatnot and can see where it says:
defaultexpanded: [], //index of content(s) open by default [index1, index2, etc]. [] denotes no content.
...but no matter what I try I can't get it to work. Does anyone know how to dictate which tab is expanded by default?

Thanks in advance.

08-16-2008, 04:57 PM
Turn off persistence in the config code, then set the 1st content to be expanded by default:

defaultexpanded: [0],

08-17-2008, 10:38 AM
Works perfectly, thanks so much for your help!