Jquery实现光棒效果

<script type="text/javascript">
    $(function () {
       var $bac;
       $("#d1 tr").hover(function () {
           $bac = $(this).css("background-color");
           $(this).css("background-color", "red");
       }, function () {
           $(this).css("background-color", $bac);
       });
    });
</script>

说明:table的Id是d1.