$(function(){ if(navigator.appname == "microsoft internet explorer"&&parseint(navigator.appversion.split(";")[1].replace(/[ ]/g, "").replace("msie",""))<10){ alert("您的当前浏览器版本过低,请下载ie10以上版本访问本站"); } $("header ul.navlist li").hover(function(){ $("header ul.navlist li .dropdown").stop(false,true); $(this).find(".dropdown").slidedown(); $(this).find("h3 a").addclass("active"); },function(){ $("header ul.navlist li .dropdown").stop(false,true); $(this).find(".dropdown").fadeout(); $(this).find("h3 a").removeclass("active"); }); $(".mobile-bar").click(function() { $("html,body").addclass("over"); $(".mobile_nav").fadein(); }); $(".mobile_nav .nav_close").click(function() { $("html,body").removeclass("over"); $(".mobile_nav").hide(); $(".mobile_nav ul.list li h3").removeclass("cur"); $(".mobile_nav .down").hide(); }); $(".mobile_nav ul.list li h3").click(function() { var index = $(".mobile_nav ul.list li h3").index($(this)); if ($(this).attr("class") == "cur") { $(this).removeclass("cur"); $(this).next(".down").slideup(); } else { $(".mobile_nav ul.list li h3").removeclass("cur"); $(this).addclass("cur"); $(".mobile_nav .down").slideup(); $(this).next(".down").slidedown(); } }); window.onload = function () { var pos = $('header .content').offset(); $(window).scroll(function () { if ($(this).scrolltop() > pos.top ) { $('header .content').addclass("fixed"); } else if ($(this).scrolltop() <= pos.top ) { $('header .content').removeclass("fixed"); } }) }; $(".popnotice .closed").click(function(){ $(".popnotice").fadeout(); }); var wow = new wow({ boxclass: 'wow', animateclass: 'animated', mobile: true, live: true }); wow.init(); });