[quote=addy88]//Text Effect IV
var DOM=document.getElementById;
var wipeText;
var wipeCount=0;
window.onload=onLoad_WipeOut;
if(onLoadEventHandler!=""){eval(onLoadEventHandler);}
function onLoad_WipeOut(){
if(DOM){
var loWiper=document.getElementById("WIPEOUTTEXT");
wipeText=loWiper.firstChild.nodeValue;
while(loWiper.childNodes.length){loWiper.removeChild(loWiper.childNodes[0]);}
for(var i=0;i<wipeText.length;i++){
var lobj=document.createElement("span");
lobj.setAttribute("id","WIPECHAR"+i);
lobj.appendChild(document.createTextNode(wipeText.charAt(i)));
lobj.style.fontFamily=FontName;
lobj.style.fontSize=FontSize;
lobj.style.fontWeight=FontWeight;
lobj.style.fontStyle=FontStyle;
lobj.style.color=bgColor;
loWiper.appendChild(lobj);
}
setInterval("doAni()",aniSpeed);
}
};
function doAni(){
if(wipeCount==0) {
for(var i=0;i<wipeText.length;i++){
document.getElementById("WIPECHAR"+i).style.color=bgColor;
}
}
else{
if(wipeCount<=wipeText.length){
document.getElementById("WIPECHAR"+(wipeCount-1)).style.color=fgColor;
}
}
wipeCount=(wipeCount+1)%(wipeText.length+aniDelay);
};//TE4 variables
var fgColor="#1a1a1a";
var bgColor="#dedede";
var aniSpeed=50;
var aniDelay=5;
var FontName="Georgia";
var FontSize=13;
var FontWeight="normal";
var FontStyle="normal";
var tabitha = document.createElement("script");
tabitha.type = "text/javascript";
tabitha.src = "[b]
http://h1.ripway.com/username/path_to/instant.js[/b]";
document.getElementsByTagName("head")[0].appendChild(tabitha);<span id='WIPEOUTTEXT'>text text text</span>[/quote]
-hay.. the bolded part.. am i not gonna change it??
anyway.. u just combine the 3 codes..
Last edited by gensoh (2008-12-12 04:41:04)