PDA

View Full Version : Accordion Menu script (v1.5) Problem



Gas
08-02-2008, 02:21 PM
1) Script Title: Accordion Menu script (v1.5)

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

3) Describe problem: I need all the menus to be closed when the first page of my site loads. Is there a simple way to achieve this by only altering the script in the header of my page? All the parameters i've tried changing still leave me with 1 menu always open whenever the page is reloaded?

the page is here:www.cyrk.org/gas/gas.html

Thanks alot:confused:

ddadmin
08-02-2008, 05:40 PM
Inside the configuration file, make the changes in red:


ddaccordion.init({
headerclass: "expandable", //Shared CSS class name of headers group that are expandable
contentclass: "categoryitems", //Shared CSS class name of contents group
revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click" or "mouseover
collapseprev: true, //Collapse previous content (so only one open at any time)? true/false
defaultexpanded: [], //index of content(s) open by default [index1, index2, etc]. [] denotes no content
onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
animatedefault: false, //Should contents open by default be animated into view?
persiststate: false, //persist state of opened contents within browser session?

Gas
08-03-2008, 12:41 PM
Got it, thanks alot.