www.gusucode.com > 大麦网商品分类菜单源码程序 > 大麦网商品分类菜单/damai/js/wwwnet.js
$(document).ready(function() { $(".star-img-list li").each(function() { $(this).find(".cover").css("top", -$(this).height()); $(this).hover(function() { $(this).find(".cover").animate({ top: "0" }, 300) }, function() { $(this).find(".cover").animate({ top: $(this).height() }, { duration: 300, complete: function() { $(this).css("top", -$(this).parent("li").height()) } }) }) }) }); $(document).ready(function() { $(".sort-list>ul>li").hover(function() { $(this).addClass("hover") }, function() { $(this).removeClass("hover") }); });