Im just gonna tell this to those who dont understand the explanation above.
Create as many DIV's as you want but in each DIV find this line
Code:
<a style="text-decoration:none" href="javascript:collapse2.slideit()">
The piece of code marked with red corresponds to this DIV and it must be unique for each DIV you create, otherwise they wont work correctly. To make 'em work simply change the number in that piece of code to next in line. For example you have 3 DIV's on you're page then they should look like this:
Code:
<a style="text-decoration:none" href="javascript:collapse2.slideit()">
<a style="text-decoration:none" href="javascript:collapse3.slideit()">
<a style="text-decoration:none" href="javascript:collapse4.slideit()">
As u can see I just changed the numbers. But its not all, at the end of final DIV there will be a line:
Code:
//Syntax: var uniquevar=new animatedcollapse("DIV_id", animatetime_milisec, enablepersist(true/fase), [initialstate] )
var collapse2=new animatedcollapse("cat", 800, true)
You must edit it so the other 2 DIV's will work. Its easy - just add this line
Code:
var collapse2=new animatedcollapse("cat", 800, true)
as many times as you have DIV's on you're page but changing the number in highlighted piece of coding to numbers that u gave to you're DIV's. In our case it will look like this:
Code:
//Syntax: var uniquevar=new animatedcollapse("DIV_id", animatetime_milisec, enablepersist(true/fase), [initialstate] )
var collapse2=new animatedcollapse("cat", 800, true)
var collapse3=new animatedcollapse("cat", 800, true)
var collapse4=new animatedcollapse("cat", 800, true)
Now all you're DIV's will work correctly.
Bookmarks