jQuery的表格隔行变色效果

要求:表格隔行变色,鼠标移上去高显。我们的列表使用了统一的规范,以前还使用了prototype的库,避免和jquery冲突
var $j=jQuery.noConflict();
$j(document).ready(function() {

   $j("#listBody table tr").hover(function(){$j(this).addClass("over");},function(){$j(this).removeClass("over");});
   
  $j("#listBody table tr:odd").addClass("alt");
});

你可能感兴趣的:(java,jquery,prototype,J#)