
12/07/2011, 02:26
|
 | | | Fecha de Ingreso: octubre-2008 Ubicación: Madrid
Mensajes: 495
Antigüedad: 16 años, 3 meses Puntos: 66 | |
Respuesta: Como conseguir este efecto? buenas,
así está mas reducidito, y es para cambiar el color del texto, no el fondo:
-----------------
<script type="text/javascript">
setInterval("colores()",100);
function colores()
{
var r,g,b;
r=Math.round(Math.random()*255);
g=Math.round(Math.random()*255);
b=Math.round(Math.random()*255);
document.getElementById('div_color').style.color=' rgb('+r+','+g+','+b+')';
}
</script>
<body>
<div id="div_color">me llaman el colorines!!!</div>
</body>
--------------------------
saludos |