$(function () { $(".weixin img").hide(); $(".weixin").hover(function () { $(this).find("img").show(); }, function () { $(this).find("img").hide(); }); }) $(function () { $("#nav_ul > li").hover(function () { $(this).find("ul").slideDown(300); }, function () { $(this).find("ul").stop(true, true).slideUp(); }); }) var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?99f7bcd90aad1b2e608767210a7cefed8f"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); $(function(){ $('#gNavi li:has(div)').hover(function(){ $(this).children('div').stop().slideDown(); },function(){ $(this).children('div').stop().slideUp(); }); $('#header .menu a').click(function(){ $('.menuBox').fadeIn(); return false; }); $('.menuBox .close a').click(function(){ $('.menuBox').fadeOut(); return false; }); $("#main .o2o04 .box .abtn span").on('click', function() { $(this).stop(true,false).addClass('act').siblings().stop(true,false).removeClass('act'); $("#main .o2o04 .box .ul1 li").eq($(this).index()).stop(true,false).show().siblings().stop(true,false).hide(); }); $("#main .ma2 .box .mlt span").on('click', function() { $(this).stop(true,false).addClass('act').siblings().stop(true,false).removeClass('act'); $("#main .ma2 .box .mrt li").eq($(this).index()).stop(true,false).show().siblings().stop(true,false).hide(); }); $("#main .net4 .abtn span").on('click', function() { $(this).stop(true,false).addClass('act').siblings().stop(true,false).removeClass('act'); $("#main .net4 .ul1 li").eq($(this).index()).stop(true,false).show().siblings().stop(true,false).hide(); }); $("#main .ma5 .box .ul1 li").hover(function() { $(this).stop(true,false).addClass('act').siblings().stop(true,false).removeClass('act'); }); $(".nec1 .box .nert .abtn>span").hover(function() { $(this).find('.sbox').stop(true,false).slideDown(); }, function() { $(this).find('.sbox').stop(true,false).slideUp(); }); setTimeout("$('.tanchuang').fadeOut()",1000); setTimeout("$('#gNavi').addClass('act')",100); $(".a_top").click(function(){ $("html,body").animate({scrollTop:0}, 1000); }); $(".btmBox .ul2").hide(); $("#main .abtn a.a_pinguo").hide(); if (!$(window).width()<1200) { var userAgent = navigator.userAgent; function myBrowser(){ var userAgent = navigator.userAgent; //取得浏覽器的userAgent字符串 var isOpera = userAgent.indexOf("Opera") > -1; if (isOpera) { return "Opera" }; //判斷是否Opera浏覽器 if (userAgent.indexOf("Firefox") > -1) { return "FF"; } //判斷是否Firefox浏覽器 if (userAgent.indexOf("Chrome") > -1){ return "Chrome"; } if (userAgent.indexOf("Safari") > -1) { return "Safari"; } //判斷是否Safari浏覽器 if (userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1 && !isOpera) { return "IE"; } //判斷是否IE浏覽器 } //以下是調用上面的函數 var mb = myBrowser(); if ("Safari" == mb) { $(".btmBox .ul2").show(); $(".btmBox .ul1").hide(); $("#main .abtn a.a_pinguo").show(); $("#main .abtn a.a_anzhuo").hide(); } } $(window).resize(function() { $(".menuBox").hide(); }); }); !function(a){a.fn.slide=function(b){return a.fn.slide.defaults={type:"slide",effect:"fade",autoPlay:!1,delayTime:500,interTime:2500,triggerTime:150,defaultIndex:0,titCell:".hd li",mainCell:".bd",targetCell:null,trigger:"mouseover",scroll:1,vis:1,titOnClassName:"on",autoPage:!1,prevCell:".prev",nextCell:".next",pageStateCell:".pageState",opp:!1,pnLoop:!0,easing:"swing",startFun:null,endFun:null,switchLoad:null,playStateCell:".playState",mouseOverStop:!0,defaultPlay:!0,returnDefault:!1},this.each(function(){var c=a.extend({},a.fn.slide.defaults,b),d=a(this),e=c.effect,f=a(c.prevCell,d),g=a(c.nextCell,d),h=a(c.pageStateCell,d),i=a(c.playStateCell,d),j=a(c.titCell,d),k=j.size(),l=a(c.mainCell,d),m=l.children().size(),n=c.switchLoad,o=a(c.targetCell,d),p=parseInt(c.defaultIndex),q=parseInt(c.delayTime),r=parseInt(c.interTime);parseInt(c.triggerTime);var Q,t=parseInt(c.scroll),u=parseInt(c.vis),v="false"==c.autoPlay||0==c.autoPlay?!1:!0,w="false"==c.opp||0==c.opp?!1:!0,x="false"==c.autoPage||0==c.autoPage?!1:!0,y="false"==c.pnLoop||0==c.pnLoop?!1:!0,z="false"==c.mouseOverStop||0==c.mouseOverStop?!1:!0,A="false"==c.defaultPlay||0==c.defaultPlay?!1:!0,B="false"==c.returnDefault||0==c.returnDefault?!1:!0,C=0,D=0,E=0,F=0,G=c.easing,H=null,I=null,J=null,K=c.titOnClassName,L=j.index(d.find("."+K)),M=p=-1==L?p:L,N=p,O=p,P=m>=u?0!=m%t?m%t:t:0,R="leftMarquee"==e||"topMarquee"==e?!0:!1,S=function(){a.isFunction(c.startFun)&&c.startFun(p,k,d,a(c.titCell,d),l,o,f,g)},T=function(){a.isFunction(c.endFun)&&c.endFun(p,k,d,a(c.titCell,d),l,o,f,g)},U=function(){j.removeClass(K),A&&j.eq(N).addClass(K)};if("menu"==c.type)return A&&j.removeClass(K).eq(p).addClass(K),j.hover(function(){Q=a(this).find(c.targetCell);var b=j.index(a(this));I=setTimeout(function(){switch(p=b,j.removeClass(K).eq(p).addClass(K),S(),e){case"fade":Q.stop(!0,!0).animate({opacity:"show"},q,G,T);break;case"slideDown":Q.stop(!0,!0).animate({height:"show"},q,G,T)}},c.triggerTime)},function(){switch(clearTimeout(I),e){case"fade":Q.animate({opacity:"hide"},q,G);break;case"slideDown":Q.animate({height:"hide"},q,G)}}),B&&d.hover(function(){clearTimeout(J)},function(){J=setTimeout(U,q)}),void 0;if(0==k&&(k=m),R&&(k=2),x){if(m>=u)if("leftLoop"==e||"topLoop"==e)k=0!=m%t?(0^m/t)+1:m/t;else{var V=m-u;k=1+parseInt(0!=V%t?V/t+1:V/t),0>=k&&(k=1)}else k=1;j.html("");var W="";if(1==c.autoPage||"true"==c.autoPage)for(var X=0;k>X;X++)W+="
wjpiwchqwh
t |