//导航栏浮动 function _scroll() { var scrollTop = $(window).scrollTop(); if (scrollTop < 180) { $("#navbr").removeClass("fixed-hd"); } else { $("#navbr").addClass("fixed-hd"); } } $(window).on('scroll', function () { _scroll() }); //咨询效果点击向上滚动 jQuery(".list-xiaoguo").slide({titCell:".hd ul",mainCell:".bd ul",autoPage:true,effect:"top",autoPlay:false,scroll:1,vis:7,trigger:"click"}); //专家团队轮动 jQuery(".picScroll-zhuanjia").slide({titCell:".hd ul",mainCell:".bd ul",autoPage:true,effect:"left",autoPlay:false,scroll:1,vis:3,trigger:"click"}); //案例切换 jQuery(".tab-anli").slide({trigger:"click"}); //在线客服 function _scroll2() { var scrollTop = $(window).scrollTop(); if (scrollTop < 98) { $(".kefu").removeClass("fixed-center"); } else { $(".kefu").addClass("fixed-center"); } } $(window).on('scroll', function () { _scroll2() });