Ver Mensaje Individual
  #3 (permalink)  
Antiguo 13/07/2005, 13:30
Avatar de SiR.CARAJ0DIDA
SiR.CARAJ0DIDA
 
Fecha de Ingreso: junio-2004
Ubicación: Acá
Mensajes: 1.166
Antigüedad: 19 años, 10 meses
Puntos: 4
con javascript se ahorran ese trabajo:

Código PHP:
<head>
    <
script type="text/javascript">
        function 
init_tabla()
        {
            
document.getElementById('t1');
            for (var 
i=0;i<t.rows.length;i++)
            {
                
t.rows[i].onmouseover = new Function("this.style.backgroundColor = '#FF0000';");
                
t.rows[i].onmouseout = new Function("this.style.backgroundColor = '';");
            }
        }
    
</script>
</head>

<body onload="init_tabla()">
<table id="t1">
    <tr>
        <td>ASD</td>
    </tr>
    <tr>
        <td>ASD</td>
    </tr>
    <tr>
        <td>ASD</td>
    </tr>
    <tr>
        <td>ASD</td>
    </tr>
    <tr>
        <td>ASD</td>
    </tr>
</table>
</body>