El sitio más completo sobre programación, recursos web y herramientas online para Webmasters
Fecha: 20/01/2003

text effects fade javascript

este codigo javascript, aplica un efecto de degradee a las letras de un cierto texto que nosotros le indiquemos.

Código Javascript


<html><title>text effects fade javascript</title>
<head>
<script type="text/javascript">
/* Fading Text
copyright Mike McGrath (website.lineone.net/~mike_mcgrath
Add more shock to your site, visit www.DHTMLShock.com
*/
var loop = true; // Palanca on/off
var xpos = "20"; // Distancia desde la izquierda
var ypos = "30"; // Distancia desde arriba
var wide = "395"; // Ancho del layer
var rate = "250"; // Cambia la velocidad
var tnum = "1";
var t = new Array();
t[1] = ".....Bienvenido a Gamarod.com.ar .....";
t[2] = ".... Rutinas JavaScript Gratuitas ....";
t[3] = "...... en Castellano ...!";
var cnum = "1";
var c = new Array();
c[1] = "black";
c[2] = "gray";
c[3] = "silver";
c[4] = "whitesmoke";
c[5] = "white";
c[6] = "white";
c[7] = "white";
c[8] = "whitesmoke";
c[9] = "silver";
c[10] = "gray";
c[11] = "black";
c[12] = "black";

if(document.layers)document.write("<layer name='hi' Left='"+xpos+"' Top='"+ypos+"' Width='"+wide+"'></layer>");
if(document.all)document.write("<div id='hi' style='position:absolute;left:"+xpos+";top:"+ypos+";width:"+wide+"'>");
function glow()
{
if(document.layers)
{
if(tnum < t.length)
{
if(cnum < c.length-1)
{
document.layers["hi"].document.write("<font size=5 color='"+c[cnum]+"'>"+t[tnum]+"</font>");
document.layers["hi"].document.close();
cnum++;
}
else
{
cnum = 1;
tnum++;
if(loop)
{
if(tnum == t.length) tnum = 1;
}
}
setTimeout("glow()",rate);
}
else
{
document.layers["hi"].document.write("");
document.layers["hi"].document.close();
}
}
if(document.all)
{
if(tnum < t.length)
{
if(cnum < c.length-1)
{
document.all("hi").innerHTML = "<font size=5 color='"+c[cnum]+"'>"+t[tnum]+"</font>";
cnum ++;
}
else
{
cnum = 1;
tnum ++;
if(loop)
{
if(tnum == t.length) tnum = 1;
}
}
setTimeout("glow()",rate);
}
else document.all("hi").innerHTML = "";
}
}
</SCRIPT>
</head>
<BODY onLoad='glow()'>
<br><br><br>
</body>
</html>

text effects fade javascript Categoría: Javascript, Efectos texto

Compartir text effects fade javascript en Facebook Twitter MySpace del.icio.us fresqui Meneame


Scripts Similares:

» script random javascript frases
» text effects watermark javascript
» text blinker javascript
» text effects wave javascript
» Away Box javascript
» javascript Fondo en movimiento
Ver el perfil de Gabriel Marcelo Rodriguez en LinkedIn

Privacidad ּ Publicidad ּ Prensa ּ Premios ּ Colaborar ּ Enlazarnos ּ Mapa del Sitio ּ Aviso legal ּ Boletín ּ Contacto
2001 - 2011 | Sitio Sitio creado y mantenido por Gabriel Marcelo Rodriguez
Hosting de alta calidad a bajo costo Neolo.com.ar