Instruction:
-copy and paste the following in notepad
-save as a js file "filename.js"
/* 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()
}
}
/* AUTO FONT COLOR CHANGER */
var naMe;
var newColay = new Array(5);
var curColay= 0;
newColay[0] = '#6600cc';
newColay[1] = '#990000';
newColay[2] = '#ccff00';
newColay[3] = '#00ff00'
newColay[4] = '#cc3399';
function chanColay() {
if (curColay == 4)
curColay = 0; else
++curColay;
document.getElementById('cpShoutoutBox').getElementsByTagName('span')[0].style.color= newColay[curColay];
}
function startChange() {
if (naMe != null)
clearInterval(naMe);
naMe = setInterval("chanColay()", 500);
}window.onload = startChange();