日期:2014-05-16 浏览次数:20597 次
<script type="text/javascript"> var name; window.onload=function (){ var trNode=document.getElementsByTagName("tr")[0]; for(var i=0;i<trNode.cells.length;i++){ var tdNode=trNode.cells[i]; trNode.cells[i].onmouseover=function (){ name=tdNode.className; tdNode.className="over"; } tdNode.onmouseout=function(){ tdNode.className=name; } } } </script>