function highlight(){
var tbody=document.getElementById("table").lastChild;
var trs=tbody.getElementsByTagName("tr");
for(i=1;i<trs.length;i++){
trs[i].onmouseover=function(){
this.style.backgroundColor="#f2f2f2";
}
trs[i].onmouseout=function(){
this.style.backgroundColor="#ffffff";
}
}
}
nickylau82
相关分类