Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/10/2006, 12:57
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años
Puntos: 772
Hola fermdp

A veces es más fácil hacer el código nuevo que modificar otro:
Código PHP:
<html>
<
head>
<
script type="text/javascript">
function 
ilumina(obj) {
  
obj.style.background = (obj.style.background=='') ? 'red' '';
}
</script>
</head>
<body>
<table border="1">
<tr>
<td onclick="ilumina(this)">Uno</td>
<td onclick="ilumina(this)">dos</td>
<td onclick="ilumina(this)">Tres</td>
</tr>
</table>
</body>
</html> 
Saludos,