Ver Mensaje Individual
  #6 (permalink)  
Antiguo 28/11/2008, 12:24
Avatar de ACX_POISON
ACX_POISON
 
Fecha de Ingreso: abril-2008
Ubicación: Talca-Chile
Mensajes: 750
Antigüedad: 16 años, 1 mes
Puntos: 7
Respuesta: colores de celdas

bueno me resulto esta funcion
Cita:
<script language="javascript">
function mostrar(id1,id2,id3)
{
document.getElementById(id1).style.backgroundColor ='#EfFAC5'
document.getElementById(id2).style.backgroundColor ='#EfFAC5'
document.getElementById(id3).style.backgroundColor ='#EfFAC5'
}
function ocultar(id1,id2,id3)
{
document.getElementById(id1).style.backgroundColor =''
document.getElementById(id2).style.backgroundColor =''
document.getElementById(id3).style.backgroundColor =''
}
</script>
EJ

Cita:
<table width="300" border="1">
<tr id="f1" onmouseover="mostrar('f1','f2','f3')" onmouseout="ocultar('f1','f2','f3')">
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr id="f2" onmouseover="mostrar('f1','f2','f3')" onmouseout="ocultar('f1','f2','f3')">
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr id="f3" onmouseover="mostrar('f1','f2','f3')" onmouseout="ocultar('f1','f2','f3')">
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
si hay alguna sugerencia para mejorarla no vendria mal
__________________
Me junto con los que Saben, Queriendo Saber.