Results 1 to 2 of 2

Thread: Animated Collapsible DIV v2.4 shrink when close and go to main page

  1. #1
    Join Date
    Feb 2013
    Posts
    15
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Animated Collapsible DIV v2.4 shrink when close and go to main page

    1) Script Title:
    Animated Collapsible DIV v2.4
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...edcollapse.htm
    3) Describe problem:

    no problem great code thank you, system works fine

    i just wish for some extra function
    my problem is i use it with a form for get new password . when form is ended it says mail with new password is send, then if user refresh the page, firefox pop up some info about there is a running script (my password script) and if they click ok it sends new password and keep saying script is running until main page is loaded,

    so i like a function so when click the link it shrink the div and go to the main page index.php

  2. #2
    Join Date
    Aug 2004
    Posts
    9,911
    Thanks
    3
    Thanked 969 Times in 957 Posts
    Blog Entries
    15

    Default

    The script does support dynamically showing or hiding a collapsible DIV. See the section "Available functions" on the script page for documentation on that. With that said, the code to collapse a DIV and redirect to another page after x seconds might look something like:

    Code:
    animatedcollapse.hide('jason')
    setTimeout("window.location='http://www.google.com'", 600)
    Where 600 = 600 milliseconds, and should coincide roughly with the time it takes to collapse the DIV (default is 500 milliseconds, see "speed" attribute when initializing the script).
    DD Admin

Similar Threads

  1. Animated Collapsible DIV error on page
    By Shaman in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 02-24-2009, 11:05 PM
  2. Resolved Animated Collapsible DIV v2.01/ Close all open DIVs before a new opens
    By Agioz in forum Dynamic Drive scripts help
    Replies: 6
    Last Post: 01-05-2009, 12:15 AM
  3. Animated Collapsible DIV (auto close???)
    By urbancool in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 05-25-2008, 02:52 AM
  4. Animated Collapsible DIV & page anchors
    By cassie99 in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 03-29-2008, 08:46 AM
  5. Close multiple DIVs with the Animated Collapsible DIV script
    By bayswater in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 10-03-2007, 04:45 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
  •