.tr1{ border: solid 1px red; cursor:crosshair; color: red;}
<script type="text/javascript">
window.onload = function(){
var trArray = document.getElementsByTagName("tr");
//alert(trArray.length+"wowo");
for(var i=0;i<trArray.length;i++){
if(trArray[i].addEventListener){
alert("wowo");
break;
}else if(trArray[i].attachEvent){
var event = arguments[0] ? arguments[0]:window.event;
trArray[i].attachEvent("onmouseover",changeCSS);
}
}
}
function changeCSS(){
var event = arguments[0]?arguments[0]:window.event;
//alert(event.srcTarget.tagName);
//if(event.srcElement.tagName == "TR"){
event.srcElement.parentNode.className = "tr1";
//alert(event.srcElement.parentNode.tagName);
//}
}
</script>