PDA

View Full Version : trembling text script



lakp
07-07-2005, 10:23 PM
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!

jscheuer1
07-08-2005, 04:42 AM
Sure, very near the end of the head code you will see a block of code that looks like this:

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:

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.

lakp
07-12-2005, 09:46 PM
awesome, thank you