Ver Mensaje Individual
  #3 (permalink)  
Antiguo 13/02/2005, 04:35
cacerola
 
Fecha de Ingreso: noviembre-2004
Mensajes: 22
Antigüedad: 19 años, 5 meses
Puntos: 0
Tengo el siguiente código, si pongo el ratón sobre la celda cambia de color, ¿cómo puedo hacer para que al estar activo el enlace después de haber llegado a el con la tecla TAB la celda también cambie de color?

Código:
<SCRIPT LANGUAGE="javascript">
 function encima(obj)
 {
  obj.style.cursor='active';
  obj.style.backgroundColor='#C1C1C1';
 }
 function fuera(obj)
 {
  obj.style.backgroundColor='#FFFFFF';
 }
</SCRIPT> 

<table>
 <TR>

<table cellpadding=0 cellspacing=0 width="50%">
<tr onmouseover="encima(this)" onmouseout="fuera(this)">
<td><a href="http://asdf">dato1</a></td>
<td>dato2</td>
<td>dato3</td>
<td>dato4</td>
</tr>
<tr onmouseover="encima(this)" onmouseout="fuera(this)">
</tr>
</table>
Muchas gracias de nuevo