Results 1 to 3 of 3

Thread: Animated Collapsible DIV v2.4

  1. #1
    Join Date
    Nov 2011
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Animated Collapsible DIV v2.4

    1) Script Title: Animated Collapsible DIV v2.4

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...edcollapse.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

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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:

    Code:
    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.
    DD Admin

  3. #3
    Join Date
    Nov 2011
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by ddadmin View Post
    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.


    Code:
    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 ?
    Last edited by ethann; 11-03-2011 at 06:26 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •