Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Animated Collapsible DIV Problem.

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

    Default Animated Collapsible DIV Problem.

    1) Script Title:
    Animated Collapsible DIV
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...edcollapse.htm
    3) Describe problem:
    The script works fine but in the box where it asks to insert content I've added a flash movie and the flash movie aren't hiding under it in Firefox it is okay in internet explorer, I've used <param name="wmode" value="transparent"> command but it still aren't working. Can someone help me with this problem?

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

    Default

    One thing worth trying is to put the Flash movie on on a separate page, then use an IFRAME that references this page as the content to collapse/expand inside your animated DIV. Then modify the script to also animate the height of the IFRAME as the DIV itself is expanding/ collapsing. There's a thread here that talks about doing this with a pdf file: http://www.dynamicdrive.com/forums/s...ad.php?t=29774

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

    Default

    how can I insted more than 1 slidder on the same page have to change something anywhere in the script?

    Example:
    Song 1
    Rate this (script implemented)
    Song 2
    Rate this (now here next to song 1 I need another slidder but when I put the coding given in DD is slides the song1 slidder =S)

    Anyone can help me?

  4. #4
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    Could you show us your code
    Ideally, the name of the div should be identical:
    Code:
    var collapse1=new animatedcollapse("divname", 1000, false)
    The one in highlight should refer to the div that you want to expand
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  5. #5
    Join Date
    Sep 2007
    Posts
    172
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    This is the code:
    Code:
    <script type="text/javascript">
    
    //Syntax: var uniquevar=new animatedcollapse("DIV_id", animatetime_milisec, enablepersist(true/fase), [initialstate] )
    var collapse2=new animatedcollapse("cat", 800, true)
    
    </script>
    which code I've to add to make another animated collaspible DIV on the same page?

  6. #6
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    As it says at the top where the comments are:
    Code:
    //Syntax: var uniquevar=new animatedcollapse("DIV_id", animatetime_milisec, enablepersist(true/fase), [initialstate])
    If this is to complicated, just make a var that hasn't be created yet, in there the first " ". should have your div_id, the secont just be how fast with milisec and the enablepepersist, I don't know what that means.
    Hope this helps.
    Jeremy | jfein.net

  7. #7
    Join Date
    Sep 2007
    Posts
    172
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    can you show me two examples with different DIV Id's so I'll get to know easily?

  8. #8
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Div:
    Code:
    <div id="cl1">
    This will collapse
    </div>
    <div id="cl2">
    This will collapse too
    </div>
    Js:
    Code:
    var cl1=new animatedcollapse("cl1", 800, true);
    var cl2=new animatedcollapse("cl2", 1000, false)
    So, what ever you give the div id just put it in that slot. That should work.
    Jeremy | jfein.net

  9. #9
    Join Date
    Sep 2007
    Posts
    172
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    No it isn't working :s I've attached an image please check if I did it correctly.

  10. #10
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Give the div a height:
    Code:
    <div id="cl1" style="height: 110px;background-color:#660000;width:250px;">
    Testing
    </div>
    Jeremy | jfein.net

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
  •