Results 1 to 3 of 3

Thread: trembling text script

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

    Default trembling text script

    http://dynamicdrive.com/dynamicindex10/tremble.htm

    this is a link for the trembling text link, is there any way i can time this thing, as in make it tremble only for 5 seconds and then make i stop trembling ????

    by improving the head section of the code ..... someone ..... maybe it can work .... i would really appreciate this help

    thank you soooo much!

  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

    Sure, very near the end of the head code you will see a block of code that looks like this:
    Code:
    if (customcollect.length==1)
    setInterval("jiggleit(0)",80)
    else if (customcollect.length>1)
    for (y=0;y<customcollect.length;y++){
    var tempvariable='setInterval("jiggleit('+y+')",'+'100)'
    eval(tempvariable)
    }
    }
    Just replace it with this:
    Code:
    if (customcollect.length==1){
    jig=setInterval("jiggleit(0)",80)
    setTimeout("clearInterval(jig)",5000)
    }
    else if (customcollect.length>1)
    for (y=0;y<customcollect.length;y++){
    var tempvariable='jig'+y+'=setInterval("jiggleit('+y+')",100)'
    eval(tempvariable)
    tempvariable='setTimeout("clearInterval(jig'+y+')",5000)'
    eval(tempvariable)
    }
    }
    The numbers 5000 stand for how many milliseconds the effect will last for. In this case, 5 seconds.
    - John
    ________________________

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

  3. #3
    Join Date
    Jul 2005
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    awesome, thank 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
  •