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);
});
转载于:https://www.cnblogs.com/daixingqing/archive/2012/11/13/2768396.html
相关资源:jquery实现表格的光棒效果