Ver Mensaje Individual
  #11 (permalink)  
Antiguo 21/11/2003, 14:11
Avatar de Kaopectate
Kaopectate
Colaborador
 
Fecha de Ingreso: diciembre-2001
Ubicación: Curaçao (Antillas Holandesas)
Mensajes: 3.179
Antigüedad: 23 años, 2 meses
Puntos: 38
Hecho de cero:

Código PHP:
<html>
 <
head>
  <
script language="JavaScript">

   var 
nColor 0;

   function 
changeColor(){
    if (
nColor == 0)
     
document.getElementById("blink").style.backgroundColor "blue";
    else
     
document.getElementById("blink").style.backgroundColor "white";
    
nColor = (nColor == 010);
    
setTimeout("changeColor()"500);
   }

   
setTimeout("changeColor()"500);
  
</script>
 </head>
 <body>
  <table border="1">
   <tr>
    <td>
     1
    </td>
    <td>
     <div id="blink">
      2
     </div>
    </td>
   </tr>
   <tr>
    <td>
     3
    </td>
    <td>
     4
    </td>
   </tr>
  </table>
 </body>
</html> 
Saludos.