ciao
per quanto riguarda questo
tr:hover {
// codice
}
non funziona nulla.
Per quanto riguarda questo
Dove va messo nella pagina?function setOver () {
// l'id della tabella
var tabella = document.getElementById("id-tabella")
// tutte le celle della tabella
var righe = tabella.getElementsByTagName("td");
for (i=0;i<righe.length;i++) {
righe[i].onmouseover = function () {
this.style.backgroundColor = "#RRGGBB";
};
righe[i].onmouseout = function () {
this.style.backgroundColor = "";
};
}
}
// lo carichi quando la pagina si è caricata
window.onload = function () {
setOver();
};
Dentro tag script?
Nella head?
ecc..
Grazie mille
attendo con ansia e spero di riuscirci

Rispondi quotando