</script>
<style>
.over { background-color:#77DDFF;} //定义鼠标滑过的颜色
</style>
<script type="text/javascript">
$(function(){
$("#table1 tr").hover(function(){ //table1 指的是一个table的ID
$(this).addClass("over");
},function(){
$(this).removeClass("over");
});
});
</script>javascript