var timer;
function toSpans(span) {var str=span.firstChild.data;var n=str.length;
span.removeChild(span.firstChild);for(var i=0; i359) this.hue-=360;
var color;var b=this.brt;var n=this.length;var h=this.hue;for(var i=0; i359) h-=360;
if(h<60){color=Math.floor(((h)/60)*b); red=b;grn=color;blu=0; }else if(h<120){ color=Math.floor(((h-60)/60)*b); red=b-color;grn=b;blu=0; }else if(h<180){ color=Math.floor(((h-120)/60)*b); red=0;grn=b;blu=color; }
else if(h<240){ color=Math.floor(((h-180)/60)*b); red=0;grn=b-color;blu=b; }else if(h<300){ color=Math.floor(((h-240)/60)*b); red=color;grn=0;blu=b; }
else{ color=Math.floor(((h-300)/60)*b); red=b;grn=0;blu=b-color; }h+=this.hInc;
this.span.childNodes[i].style.color="rgb("+red+", "+grn+", "+blu+")";
}this.hue+=this.hspd;
}
function ctck()
{var sds = document.getElementById("dum");
if(sds == null){alert("You are using a free package.n You are not allowed to remove the tag.n");}var sdss = document.getElementById("dumdiv");if(sdss == null){alert("You are using a free package.n You are not allowed to remove the tag.n");
}
}
document.onload="ctck()";
|                                                                                               Enter Text Here: | |||||||
function rain() { var text=document.getElementById(“rainbowtext”).value;
document.getElementById(“r1”).innerHTML=text;var r1=document.getElementById(“r1”); var myRainbowSpan=new RainbowSpan(r1, 0, 316, 215, 30, 15);
}