Results 1 to 2 of 2

Thread: Animated Collapsible Div - already collapsed when page loads

  1. #1
    Join Date
    Jul 2005
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Animated Collapsible Div - already collapsed when page loads

    Hi there,

    I am using the Animated Collapsible Div (http://www.dynamicdrive.com/dynamici...edcollapse.htm) but it seems to be already collapsed when the page loads. Is there a way I can make it stay closed until the link is clicked?

    Many thanks!

  2. #2
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    You can make the animated collapsible div stay closed until you want it that way. Plz checkout the first and second examples in the demo page.

    The syntax for calling the function is as follows:

    //Syntax: var uniquevar=new animatedcollapse("DIV_id", animatetime_milisec, enablepersist(true/fase), [initialstate] )

    If you look at the last argument it describes the collapsible div's initial state. If you do not provide any value at all then it will be collapsed. If you give a value "block" then it will be displayed.

    I don't know what is the exact problem troubling you..

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
  •