Results 1 to 4 of 4

Thread: Loading mechanics for collapsible divs script**

  1. #1
    Join Date
    May 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Loading mechanics for collapsible divs script**

    1) Script Title: Animated Collapsible DIV -- animatedcollapse.js

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

    3) Describe problem:

    Hey there. I'm quite the beginner at ajax and hardcore javascript, but I know my way around HTML and CSS pretty well.

    The problem I am having with this script is the loading mechanics. You'll see that everytime the page is refreshed, the divs are loading in an expanded state, but then they collapse once everything is fully loaded. I have tried numerous different tweaks to get them to load in the collapsed state (i.e. no fixed height, persist set to true/false, adding/removing tables), but to no avail.

    You can view the page here: http://360designstudio.net/Clients/c...i/members.html

    Just keep hitting refresh on Firefox or IE, and you'll see what I mean.

    Any ideas? I'm open to all suggestions that you think could improve the loading functions of my page.

    Thanks!

  2. #2
    Join Date
    May 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Anyone?

  3. #3
    Join Date
    Jul 2007
    Location
    Amsterdam NL
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The code at the bottom of the script's description page says to add:

    Code:
    <div id="jason" style="width: 300px; background: #FFFFCC; display:none">
    <b>Content inside DIV!</b>
    </div>
    to force the div to stay hidden. Don't know this will solve your problem, hopefully it does.

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

    Default

    Yep, adding an inline or global CSS that targets the elements in question with "display:none" should do it.

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
  •