Ver Mensaje Individual
  #4 (permalink)  
Antiguo 01/01/2008, 04:36
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años
Puntos: 772
Re: Fila con color de fondo y texto fijo al hacer clic

Hola paulkees

Prueba este código:

Código PHP:
<html>
<
head>
<
script type="text/javascript">
fondo '#DBEBF6';
frente '#c00';
function 
pulsa(obj) {
  
obj.style.background = (obj.style.background=='') ? fondo '';
  
obj.style.color = (obj.style.background=='') ? frente '';
}
</script>
</head>
<body>
<table>
<tbody>
<tr onclick="pulsa(this)">
<th>%s</th>
<td>%s</td>
<td>%s</td>
</tr>
<tbody>
</table>
</body>
</html> 
Supongo que sabrás que el código Css que has puesto no funciona en IE 6

Saludos,