// javascript document $(document).ready(function() { // ------------------------------------------------------------------fatnav $.fatnav(); // ------------------------------------------------------------------fatnav $("#banner").owlcarousel({ //autoplay: true, //autoplay : 5000, autoplay : false, lazyload: true, slidespeed : 300, paginationspeed : 400, singleitem:true, transitionstyle : "fade" }); $("#in_service_mobile").owlcarousel({ //autoplay: true, //autoplay : 5000, autoplay : false, lazyload: true, slidespeed : 300, paginationspeed : 400, pagination: false, navigation: true, singleitem:true, navigationtext: ["",""] }); $('.news_detail img,.case_alxx img').addclass('am-img-responsive'); // ------------------------------------------------------------------in_customer_mobile $(window).resize(function() { // window.innerwidth ie9+浏览器支持 if (window.innerwidth <= 1600) { // 普屏处理 $("#in_customer_mobile .list").each(function(i){ $("#in_customer_mobile .list").slice(i*12,i*12+12).wrapall('
'); }); } else { //宽屏处理 $("#in_customer_mobile .list").each(function(i){ $("#in_customer_mobile .list").slice(i*12,i*12+12).wrapall('
'); }); } }).trigger('resize'); $("#in_customer_mobile").owlcarousel({ itemscustom : [ [0, 1], [640, 2], [1600, 2] ], autoplay : false, lazyload: true, slidespeed : 300, paginationspeed : 400, pagination: false, navigation: true, navigationtext: ["",""] }); // ------------------------------------------------------------------in_customer_mobile // ------------------------------------------------------------------float-right-box begin $(window).scroll(function() { if ($(window).scrolltop() > 0 && !$(".float-right-box").hasclass('show')) { $(".float-right-box").addclass('show'); $(".float-right-box").stop(true,true).addclass('on'); } }); $(".float-right-box").hover(function() { $(this).stop(true,true).removeclass('on'); }, function() { var _this = $(this); if ($(window).scrolltop() > 0) { _this.stop(true,true).addclass('on'); }else{ $(".float-right-box").removeclass('show'); } }); $(".return-webtop").on('click', function() { $("body,html").stop().animate({scrolltop: 0}, 500); }); // ------------------------------------------------------------------float-right-box end });