日期:2014-05-16 浏览次数:20355 次
var roots = $(".index_left li.root"); for(var i=0;i<roots.length;i++){ $("#"+roots[i].id).children("a:eq(0)").hover( function() { $(this).css("background-image","url(images/list_2.jpg)").animate({ opacity: '1'},100); }, function() { $(this).css("background-image","url(images/list_1.jpg)").animate({ opacity: '0.8'},100); } ); }