function search(){var key = document.getElementById('key').value;location.href ="search.php?key="+ key;} jQuery(".fullSlide").slide({ titCell:".hd li", mainCell:".bd ul", effect:"fold", autoPlay:true, delayTime:700 }); jQuery(".pro").slide({ targetCell: ".pro_nav .more span",titOnClassName:'cur', titCell: ".pro_nav ul li", mainCell: ".pro_nr", autoPlay: false,effect:"fade" }); $(function() { $(".pro_nr1 .pro1").slide({ mainCell: ".pro_c1 ul", vis: 1, prevCell: ".p_z", nextCell: ".p_y", effect: "leftLoop" }); $(".pro_bj").slide({ titOnClassName: 'cur', titCell: ".list ul li", mainCell: ".pro_nr1", autoPlay: false, effect: "fade" }); }) jQuery(".case").slide({targetCell: ".c_nav .more1 span", titOnClassName:'cur', titCell: ".c_nav ul li", mainCell: ".case_nr", autoPlay: false,effect:"fade" }); jQuery(".case2").slide({targetCell: ".c_nav2 .more1 span", titOnClassName:'cur', titCell: ".c_nav2 ul li", mainCell: ".case_nr2", autoPlay: false,effect:"fade" }); jQuery(".ys").slide({ mainCell:".ys_nr",autoPlay:true,vis:1,prevCell:".ys_z",nextCell:".ys_y",effect:"leftLoop"}); jQuery(".news").slide({ targetCell: ".n_nav .more2 span",titOnClassName:'cur', titCell: ".n_nav ul li", mainCell: ".news_nr", autoPlay: false,effect:"fade" }); $(function () { $('.fancybox').fancybox(); }); $(function() { var time; //var winHeight = top.window.document.body.clientHeight || $(window.parent).height(); $('.client-2').css({ 'marginTop': -($('.client-2').height() / 2) }); $('#client-2 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('.my-kefu-weixin-pic'); if (pic.length > 0) { pic.show(); } }); }, 100) }, 'mouseleave': function() { var pic = $(this).find('.my-kefu-weixin-pic'); var divDom = $(this).children('div'); var maxWidth = divDom.width(); if (pic.length > 0) { pic.hide(); } clearTimeout(time); var divDom = $(this).children('div'); $(this).stop().animate({ left: 0 }, "normal", function() {}); } }); //返回顶部 $(window).scroll(function() { var scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop; var eltop = $("#client-2").find(".my-kefu-ftop"); if (scrollTop > 0) { eltop.show(); } else { eltop.hide(); } }); $("#client-2").find(".my-kefu-ftop").click(function() { var scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop; if (scrollTop > 0) { $("html,body").animate({ scrollTop: 0 }, "slow"); } }); });