Marquesina javascript

Este codigo simplemente lo que hace es desplazar en forma vertical un texto cualquiera, agregandole al final el efecto de degradree de colores.


res=textanim.style.top
for (x=0; xhred)
red-=7;
else
red=hred
redx = convert[red]
}
if (greenhgreen)
green-=7;
else
green=hgreen
greenx = convert[green]
}
if (bluehblue)
blue-=7;
else
blue=hblue
bluex = convert[blue]
}
rgb = «#»+redx+greenx+bluex;
if (brows){
document.layers[‘textanim’].document.linkColor=rgb;
document.layers[‘textanim’].document.vlinkColor=rgb;
if (window.innerHeight!=h || window.innerWidth!=w){
clearTimeout(timer1);
resz()
return;
}
else{
document.layers[‘textanim’].document.write(‘

’)
document.layers[‘textanim’].document.close();
}
}
else{
textanim.style.color=rgb;
if(link)
textanimlink.style.color=rgb;
}
if (z<38){ if (brows) document.layers['textanim'].top-- else textanim.style.posTop-- z++ timer1=setTimeout('up()',dt) } else { updwn=false; down() } } function down(){ if (redered)
red-=7;
else
red=ered
redx = convert[red]
}
if (greenegreen)
green-=7;
else
green=egreen
greenx = convert[green]
}
if (blueeblue)
blue-=7;
else
blue=eblue
bluex = convert[blue]
}
rgb = «#»+redx+greenx+bluex;
if (brows){
document.layers[‘textanim’].document.linkColor=rgb;
document.layers[‘textanim’].document.vlinkColor=rgb;
if (window.innerHeight!=h || window.innerWidth!=w){
clearTimeout(timer2);
resz()
return;
}
else{
document.layers[‘textanim’].document.write(‘

’)
document.layers[‘textanim’].document.close();
}
}
else{
textanim.style.color=rgb;
if(link)
textanimlink.style.color=rgb;
}
if (z<76){ if (brows) document.layers['textanim'].top-- else textanim.style.posTop-- z++ timer2=setTimeout('down()',dt) } else { if (brows){ document.layers['textanim'].document.write('') document.layers['textanim'].document.close(); } else textanim.innerHTML=''; window.clearInterval(timer2); if(msg





[/crayon]