Results 1 to 4 of 4

Thread: Close multiple DIVs with the Animated Collapsible DIV script

  1. #1
    Join Date
    Sep 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Close multiple DIVs with the Animated Collapsible DIV script

    1) Script Title:
    Animated Collapsible DIV

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...edcollapse.htm

    3) Describe problem:
    First - the Animated Collapsible DIV script is by far the most smooth running I've seen. BUT it lacks a certain feature, I think: If you have more than one DIV showing on your page - it would be nice if the script checked whether others DIVs had already been shown - and then close all other DIVs before showing the one, you clicked on...

    It CAN be achieved by doing something like this:

    <a href="javascript:collapse_1.slideup();collapse_2.slideup();collapse_3.slideup();collapse_4.slideit();">Show 4</a>

    but that's not a very pretty solution and it ruins the smooth feel of the script...

    Do you guys have a solution? Highly appreciated!!!


    Cheers!
    Bayswater


    ---EDIT---

    I have tried jscheuer1's solution (http://www.dynamicdrive.com/forums/s...ad.php?t=23301) and it seems to do the trick. It would be cool, though, if it animated the closure of the previous layer before opening the next... ah well...

    Strange that some layers start/open from above others from below - it obviously has to do with the order in your code, but it looks a bit funny...
    Last edited by bayswater; 09-09-2007 at 11:06 AM.

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

    Default

    This has been asked a few times. Apart from some hacks (such as the one put together by John), there is curently no built in support for this. It's probably a feature I'll add down the line, so it supports dependance such as in Switch Content script.

  3. #3
    Join Date
    Sep 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by ddadmin View Post
    This has been asked a few times. Apart from some hacks (such as the one put together by John), there is curently no built in support for this. It's probably a feature I'll add down the line, so it supports dependance such as in Switch Content script.
    Thanks for your reply. That sounds awesome - can't wait!

    /Bays

  4. #4
    Join Date
    Aug 2005
    Posts
    54
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    So when can we expect this?

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
  •