Results 1 to 3 of 3

Thread: DD: Autumn Leaves question

  1. #1
    Join Date
    Oct 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DD: Autumn Leaves question

    DD Autumn Leaves
    http://www.dynamicdrive.com/dynamicindex3/leaves.htm

    Is there a way to make this turn itself off after a set amout of time?

    thanks
    Devin

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    The modified script here is just about what you need, just add this line:

    Code:
    setTimeout("stop_leaves();", 1000)
    after this one at the end of the script:

    Code:
    fall()
    1000 is the number of milliseconds the effect will last.

    And, get rid of this line:

    Code:
    document.getElementById('stpbut').value='Start Leaves';
    and this button:

    HTML Code:
    <form>
    <input id="stpbut" type="button" value="Stop Leaves" onClick="stop_leaves();">
    </form>
    Oh, you can get rid of this bit too:

    Code:
    if (parent.location.href==location.href)
    document.write(parent.location.href)
    if(-1 != document.URL.indexOf('leaves'))
    document.write('<br>'+document.URL)
    and this:

    Code:
     onload="if(window.parent.resize){window.parent.resize('fred',100,450,500)}"
    from the body tag.
    Last edited by jscheuer1; 10-04-2005 at 08:56 PM.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Oct 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default thanks

    Thanks I'll give that a try!

    Devin

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
  •