【DOM编程艺术】滑过高亮显示 highLightRows

function highLightRows(){
     var rows=document.getElementsByTagName('tr');
    for(var i=0;i<rows.length;i++){
        rows[i].onmouseover=function(){
            this.style.fontWeight='bold';
        }
        rows[i].onmouseout=function(){
            this.style.fontWeight='normal';
        }
        
    }
}
原文地址:https://www.cnblogs.com/positive/p/3678825.html