Ver Mensaje Individual
  #6 (permalink)  
Antiguo 22/06/2010, 15:29
Avatar de masterojitos
masterojitos
 
Fecha de Ingreso: julio-2008
Ubicación: Lima Callao Chucuito
Mensajes: 1.931
Antigüedad: 15 años, 8 meses
Puntos: 105
Respuesta: Como hago este método en una tabla

Algo asi intenta ^^

Código HTML:
Ver original
  1.     <tbody>
  2.         <tr style="background-color:#FFFFFF" onmousemove="this.style.backgroundColor='CCCCCC'" onmouseout="this.style.backgroundColor='#FFFFFF'">
  3.             <td>.....</td>
  4.             <td>.....</td>
  5.             <td>.....</td>
  6.         </tr>
  7.         <tr style="background-color:#FFFFFF" onmousemove="this.style.backgroundColor='CCCCCC'" onmouseout="this.style.backgroundColor='#FFFFFF'">
  8.             <td>.....</td>
  9.             <td>.....</td>
  10.             <td>.....</td>
  11.         </tr>
  12.         <tr style="background-color:#FFFFFF" onmousemove="this.style.backgroundColor='CCCCCC'" onmouseout="this.style.backgroundColor='#FFFFFF'">
  13.             <td>.....</td>
  14.             <td>.....</td>
  15.             <td>.....</td>
  16.         </tr>
  17.     </tbody>

con jquery, lo harias mas sencillo poniendole una clase al tr ejemplo <tr class="trListado"> y haciendo asi:
Código Javascript:
Ver original
  1. $('.trListado').hover(function(){
  2.         $colorActual = $(this).css('backgroundColor');
  3.         $otroColor = '#CCCCCC';
  4.         $(this).css('backgroundColor', $otroColor);
  5.     },function(){
  6.         $(this).css('backgroundColor', $colorActual);
  7.     });

Suerte
__________________
Atte. MasterOjitos :ojotes:
Todo sobre Programación Web
Las ultimas tendencias en Efectos y Recursos Web: MasterOjitos Blog