jQuery(".nav").slide({ type:"menu", titCell:".m", targetCell:"dl", effect:"slideDown", delayTime:300, triggerTime:100,returnDefault:true }); jQuery(".banner").slide({titCell:".hd ul",mainCell:".bd ul",autoPlay:true,autoPage:'
'}); jQuery(".tab-news").slide(); jQuery(".gun-news").slide({ mainCell:"ul",autoPlay:true,effect:"topMarquee",interTime:40,vis:3 }); jQuery(".honor .info").slide({ mainCell: "ul", effect: "leftLoop", vis: 4, scroll: 1, autoPage: true, autoPlay: true}); jQuery(".honor").slide(); //$(".category h3.on").next(".category ul").slideToggle(500); // $(".category h3").click(function(){ // $(this).toggleClass("on").siblings('.category h3').removeClass("on"); // $(this).next(".category ul").slideToggle(500).siblings(".category ul").slideUp(500); // }); $(function () { var time; var $kefu = $('.kefu'); var $c = $kefu.find('#kefu'); $kefu.css({ 'marginTop': -($kefu.height() / 2) }); $c.find('li').on({ 'mouseenter': function () { var scope = this; time = setTimeout(function () { var divDom = $(scope).children('div'); var maxWidth = divDom.width(); $(scope).stop().animate({ left: 77 - maxWidth }, 'normal', function () { var pic = $(scope).find('.kefu-weixin-pic'); if (pic.length > 0) { pic.show(); } }); }, 100); }, 'mouseleave': function () { var pic = $(this).find('.kefu-weixin-pic'); if (pic.length > 0) { pic.hide(); } clearTimeout(time); $(this).stop().animate({ left: 0 }, 'normal', function () { }); } }); $(window).scroll(function () { var scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop; var eltop = $c.find('.kefu-ftop'); if (scrollTop > 0) { eltop.show(); } else { eltop.hide(); } }); $c.find('.kefu-ftop').click(function () { var scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop; if (scrollTop > 0) { $('html,body').animate({ scrollTop: 0 }, 'slow'); } }); }) AOS.init({ easing: 'ease-out-back', duration: 1000 });