|    
			
				24/11/2012, 09:16
			
			
			  | 
  |   |  | Colaborador |  |  Fecha de Ingreso: junio-2008 
						Mensajes: 5.032
					 Antigüedad: 17 años, 4 meses Puntos: 1012 |  | 
  |  Respuesta: Texto parpadeante javascript para I.E. y Firefox  
  en caso que sean más de dos colores  Cita:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es">
 <head>
 <meta http-equiv="Content-Type" content="application/xhtml; charset=utf-8" />
 <title></title>
 <script type="text/javascript">
 var colores = ['yellow', 'green', 'red', 'blue', 'orange', 'navy', 'cyan'];
 window['posColor'] = 0;
 function fnc(){
 color = colores[posColor++ % colores.length];
 for (var i = 0, elementos = document.getElementsByTagName('h1'); i < elementos.length; i++){
 elementos[i].style.color = color;
 }
 setTimeout('fnc()', 5000);
 }
 
 window.onload = function(){fnc();};
 </script>
 </head>
 <body>
 
 <h1>un texto</h1>
 
 <h1>otro texto</h1>
 
 </body>
 </html>
    |