Ver Mensaje Individual
  #2 (permalink)  
Antiguo 20/01/2003, 12:35
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 22 años, 2 meses
Puntos: 772
Hola, Nizam.

No se si he entendido bien tu pregunta pero a ver si esto te ayuda:
Código PHP:
<html>
<
head>
<
script>
  function 
cambiaColor(objeto) {
      
objeto.style.backgroundColor="#0000ff";
    }
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000">
<table width="200" border="1" cellspacing="1">
  <tr>
    <td onClick="cambiaColor(this)">&nbsp;</td>
    <td onClick="cambiaColor(this)">&nbsp;</td>
  </tr>
  <tr>
    <td onClick="cambiaColor(this)">&nbsp;</td>
    <td onClick="cambiaColor(this)">&nbsp;</td>
  </tr>
</table>
</body>
</html> 
Saludos,