1 TYPEWRITTER EFFECT SHOUTOUT.. Wed Nov 19, 2008 11:49 pm
anthony
Guest
- Spoiler:
- /* TYPEWRITER EFFECT FOR SHOUTOUT */
x1=0;c1=0;cache=new Array()
setTimeout('clearIt()',4000)
function clearIt(){
tSpan3 = document.getElementById('cpShoutoutBox')
cSpan3 = tSpan3.getElementsByTagName('Span')
for(p=0;p<cSpan3.length;p++){
cache[p]=cSpan3[p].innerHTML
cSpan3[p].innerHTML=''
}
toSpan3()
}
function toSpan3(){
if(x1<cSpan3.length){
typeIn = cache[x1]
tp=setInterval('typeIt()', 40)
}else{
p=0;x1=0;c=0;setTimeout('clearIt()', 500)
}
}
function typeIt(){
if(cSpan3[x1]!=null && c1<=typeIn.length){
cSpan3[x1].innerHTML = typeIn.substring(0,c1++)
}else{
clearInterval(tp);x1++; c1=0;toSpan3()
}
}
-COMPLILE THIS TO UR JS EXTENSION.
-save it to WHO I WANT TO MEET SECTION OR ABOUT ME
credits: fstalk : fs tutz
Last edited by anthony on Thu Dec 04, 2008 6:52 pm; edited 1 time in total