PDA

View Full Version : Animated Collapsible Div - already collapsed when page loads



toolman
11-19-2007, 10:33 PM
Hi there,

I am using the Animated Collapsible Div (http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm) but it seems to be already collapsed when the page loads. Is there a way I can make it stay closed until the link is clicked?

Many thanks!

codeexploiter
11-20-2007, 03:17 AM
You can make the animated collapsible div stay closed until you want it that way. Plz checkout the first and second examples in the demo page.

The syntax for calling the function is as follows:

//Syntax: var uniquevar=new animatedcollapse("DIV_id", animatetime_milisec, enablepersist(true/fase), [initialstate] )

If you look at the last argument it describes the collapsible div's initial state. If you do not provide any value at all then it will be collapsed. If you give a value "block" then it will be displayed.

I don't know what is the exact problem troubling you..