Quote:
Originally Posted by xelawho
Code:
var therows=document.getElementById("mytable").rows;
for (var i = 0; i < therows.length; i++) {
therows[i].onmouseover=function(){
this.style.backgroundColor="red";
}
therows[i].onmouseout=function(){
this.style.backgroundColor="white";
}
}
|
Thnx man but it doesn't working. And i also prefer to do it with event listener.