Pages: 1

  2008-12-22 05:12:59

bobskie
» FTalkAddict
FTalk Level: zero
596
0
1969-12-31

i've got this typewriter thingy on my shoutout. . . but the thing is that its too fast. . . how would i slow it down???:(:( here's the code i used. . .pls help me edit the speed of the typewriter eff

adjust the red part into a higher number,change it to 500 [spoiler]x1=0;c1=0;cache=new Array() setTimeout('clearIt()',4000) function clearIt(){ tSpan = document.getElementById('cpShoutoutBox') cSpan = tSpan.getElementsByTagName('span') for(p=0;p<cSpan.length;p++){ cache[p]=cSpan[p].innerHTML cSpan[p].innerHTML='' } toSpan() } function toSpan(){ if(x1<cSpan.length){ typeIn = cache[x1] tp=setInterval('typeIt()', [color=red][b]40[/b][/color]) }else{ p=0;x1=0;c=0;setTimeout('clearIt()', 500) } } function typeIt(){ if(cSpan[x1]!=null && c1<=typeIn.length){ cSpan[x1].innerHTML = typeIn.substring(0,c1++) }else{ clearInterval(tp);x1++; c1=0;toSpan() } }[/spoiler]

Last edited by bobskie (2008-12-22 05:14:03)

Pages: 1

Board footer

© 2025 F Talk

Current time is 07:39

[ 12 queries - 0.016 second ]
Privacy Policy