Intermini di impegno del client e di dati trasmessi, secondo voi conviene usare questo script

Codice PHP:
var rows document.getElementsByTagName('tr');
for (var 
0rows.lengthi++) {
rows[i].onmouseover = function() {
this.className += 'righello';
}
rows[i].onmouseout = function() {
this.className this.className.replace('righello''');
    }

o scrivere (tramite php) l'onmousehover\onmouseout riga per riga?