www.gusucode.com > 【T91】高端大气婚纱影楼网站源码程序 > 【T91】高端大气婚纱影楼网站源码/skins/js/zzweb/nav.js
$(document).ready(function() { $(".leftNav 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() { $(".leftNav>ul>li").hover(function() { $(this).addClass("hover") }, function() { $(this).removeClass("hover") }); }); function shoucang(sTitle,sURL) { try { window.external.addFavorite(sURL, sTitle); } catch (e) { try { window.sidebar.addPanel(sTitle, sURL, ""); } catch (e) { alert("加入收藏失败,请使用Ctrl+D进行添加"); } } }