• ARCHIVES 
  • » 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

Pages: 1

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

mhiecoh
» FTalker
FTalk Level: zero
106
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

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 effect [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()', 40) }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] :P:P thx guys
bobskie
» FTalkAddict
FTalk Level: zero
596
0
1969-12-31

Re: 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)

mhiecoh
» FTalker
FTalk Level: zero
106
0
1969-12-31

Re: 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

:thumbsup: thx bro. . . help appreciated. . .=)=) very much :penguin::penguin::penguin:
  • ARCHIVES 
  • » 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

Pages: 1

Board footer

© 2024 F Talk

Current time is 18:55

[ 10 queries - 0.012 second ]
Privacy Policy