PDA

View Full Version : Animated Collapsible DIV v2.4



ethann
11-01-2011, 03:03 PM
1) Script Title: Animated Collapsible DIV v2.4

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

3) Describe problem: I want that images from example 1, example 2, example 3 to behave exactly like the ones from example 4, 5, 6

ddadmin
11-02-2011, 05:08 PM
If you mean have the toggler image when clicked on collapse the other contents before expanding the current (and visa versa), you can do this by "grouping" those contents when initializing them. Example:


animatedcollapse.addDiv('cat', 'fade=0,speed=400,group=pets')
animatedcollapse.addDiv('dog', 'fade=0,speed=400,group=pets,persist=1,hide=1')
animatedcollapse.addDiv('rabbit', 'fade=0,speed=400,group=pets,hide=1')

By adding the string "group=somegroup" to certain contents, those contents will behave as a group, so expanding one will simultaneously collapse the others as well. See he documentation for "group=groupname" on the main script page for more info.

ethann
11-03-2011, 06:11 AM
so expanding one will simultaneously collapse the others as well.


But i don't want that the others to collapse, so i delete the 'group=pet' and the problem is that when i refresh the page all the divs are collapsed.




animatedcollapse.addDiv('cat', 'fade=0,speed=200')
animatedcollapse.addDiv('cat1', 'fade=0,speed=200')


probably because i use one more div of the same type ?