tr光棒效果

var tempColor;
    $(".listTable tr:even").css("backgroundColor", "#B3D59A");
    $(".listTable tr:odd").css("backgroundColor", "#9AB3D5");
    $(".listTable tr").mouseover(function () {
        tempColor = $(this).css("backgroundColor");
        $(this).css("backgroundColor", "#D59ABF"); 
    }).mouseout(function () {
        $(this).css("backgroundColor", tempColor);
    });

 

posted @ 2012-11-13 17:31  一千零一夜  阅读(198)  评论(0编辑  收藏  举报