Friday, 2024-04-19, 11:25 AM
MaLuFeT Layouts
Main | Typewriter Effect on your shoutoutBox!! - Forum | Registration | Login
[ New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
Forum moderator: malufet  
Forum » Tips and Tricks » Friendster Non-CrossOver CSS Profiles » Typewriter Effect on your shoutoutBox!!
Typewriter Effect on your shoutoutBox!!
niloDate: Thursday, 2009-01-01, 8:16 AM | Message # 1
Colonel general
Group: ML` Members
Messages: 15
Reputation: 4
Status: Offline
Save it to ur External JS

Code

//shout - by: MaLuFeT
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()
}
}

For The Newbie

Just Copy Tht Code Below and Paste it On Your MediaBox!!

Code

<script src='http://malufet.ucoz.net/typewriter.js '></script>

by: Mr. MaLuFeT


 
Forum » Tips and Tricks » Friendster Non-CrossOver CSS Profiles » Typewriter Effect on your shoutoutBox!!
  • Page 1 of 1
  • 1
Search:

Copyright MyCorp © 2024