Ever.
Number of posts : 14 Registration date : 2009-04-10 Age : 28 Location : Cavite, PH
| Subject: TYPEWRITTER EFFECT IN UR SHOUTOUT BOX Fri Apr 10, 2009 11:55 pm | |
| SHARIN.SHARIN.SHARIN. LOL CREDITS: HCG AND ME FOR THE READY TO PASTE CODE XD
JUST COMPILE IT WITH UR JS FILES.
- Quote :
- //shout
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() } } *NO NEED TO EDIT. :)
PREVIEW: JUST COPY THIS DIRECT LINK AND PASTE IN THE PREVIEWER. (1ST BOX) DIRECT LINK: - Code:
-
http://www.stormpages.com/basqog24/typewritter.js previewer here *LOOK AT THE SHOUTOUT BOX :D
READY TO PASTE CODE: - Code:
-
<script src="http://www.stormpages.com/basqog24/typewritter.js">"</script> THEN, THATS IT xDD | |
|