// goToTop jQuery.fn.goToTop = function(){ if($(window).scrollTop() < 0){ $('#goToTop').hide(); } $(window).scroll(function(){ if($(this).scrollTop() > 1){ $('#goToTop').fadeIn(); }else{ $('#goToTop').fadeOut(); } }); this.bind('click',function(){ $('html ,body').animate({scrollTop: 0},500); return false; }); }; // QQ header-up $(function(){ $("#divQQbox").hover( function(){ $(this).stop(true,false); $(this).animate({left:0},200); }, function(){ $(this).animate({left:-220},149); } ) $('#goToTop').goToTop();//璋冪敤杩欎釜鎻掍欢 $(".headerup").hover(function (){ $(".header-up").show(); },function (){ $(".header-up").hide(); }); }); // banner var intwidth=$(window).width(); var mySwiper = new Swiper ('.swiper-container', { direction: 'horizontal', // 鍨傜洿鍒囨崲閫夐」 speed:300, autoplay : { delay:3000 }, loop: true, // 寰幆妯″紡閫夐」 // 濡傛灉闇€瑕佸垎椤靛櫒 pagination: { el: '.swiper-pagination', }, // 濡傛灉闇€瑕佸墠杩涘悗閫€鎸夐挳 navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, // 濡傛灉闇€瑕佹粴鍔ㄦ潯 scrollbar: { el: '.swiper-scrollbar', }, }); // product-up jQuery(".h-product-slider").slide({mainCell:".bd",titCell:".hd ul",autoPlay:true,autoPage:true,effect:"left",switchLoad:"_src",scroll:4,vis:4,defaultIndex:0,interTime:6000}); jQuery(".texing-slider").slide({mainCell:".bd",titCell:".hd ul",autoPlay:true,autoPage:true,effect:"left",switchLoad:"_src",scroll:3,vis:3,defaultIndex:0,interTime:6000}); jQuery(".kaiye-slider").slide({mainCell:".bd",titCell:".hd ul",autoPlay:true,autoPage:true,effect:"left",switchLoad:"_src",scroll:4,vis:4,defaultIndex:0,interTime:6000}); jQuery(".about-slider").slide({mainCell:".bd",titCell:".hd ul",autoPlay:true,autoPage:true,effect:"left",switchLoad:"_src",scroll:3,vis:3,defaultIndex:0,interTime:12000,pnLoop:false}); jQuery(".service-slider").slide({mainCell:".bd",titCell:".hd",autoPlay:true,autoPage:true,effect:"fade",switchLoad:"_src",scroll:1,vis:1,defaultIndex:0,interTime:6000}); jQuery(".zhaoshang-slider").slide({mainCell:".bd",titCell:".hd",autoPlay:true,autoPage:true,effect:"left",switchLoad:"_src",scroll:1,vis:1,defaultIndex:0,interTime:8000}); jQuery(".baoming-list").slide({mainCell:".bd",titCell:".hd",autoPlay:true,effect:"topLoop",scroll:1,vis:4,defaultIndex:0,interTime:5000}); jQuery(".timeline").slide({ titCell:".timeline-hd li", mainCell:".timeline-bd .box", effect:"fold", autoPlay:false, delayTime:200, interTime:12000, pnLoop:false, startFun:function(i,p){ if(i<8){ jQuery(".timeline-hd .sPrev").click() } else if( i>7 ){ jQuery(".timeline-hd .sNext").click()} } });