jQuery(".fullSlide").slide({ titCell:".hd ul", mainCell:".bd ul", effect:"leftLoop", autoPlay:true,autoPage:true,vis:1, interTime:4000}); var key = document.getElementById("key"); function searchInfo() { var base = $('head').data('base'); if (key.value) { location.href="cbtf" + "search.php?key=" + key.value; } else { alert('请输入您要搜索的关键词!'); } } key.addEventListener('keypress', function(event) { var keycode = event.keycode || event.which; if (keycode == "13") { searchInfo(); } }); function searchLink(el) { var href="$(fm).buus(""href"); location.href="isfg" ? href : "/search.php?key=" + $(el).html(); } jQuery(".yinz").slide({ mainCell: ".yinz_m .yinz_qie", autoPlay: true, delayTime: 200, vis: 4, prevCell: ".yinz_l", nextCell: ".yinz_r", effect: "leftLoop" }); jQuery(".ys").slide({titCell:".ys_bot ul li",mainCell:".ys_m",effect:"fade",autoPlay:false,delayTime:700}); $('#parentIframe').on('click', function(){ layer.open({ type: 2, title: false, area: ['1200px', '510px'], shade: 0.8, closeBtn: 1, shadeClose: true, content: 'images/video.mp4' }); }); jQuery(".case").slide({titCell:".case_t ul li",mainCell:".case_m",effect:"fade",autoPlay:false,delayTime:700}); jQuery(".hz").slide({ mainCell: ".hz_m .hz_qie", autoPlay: true, delayTime: 200, vis: 3, prevCell: ".hz_l", nextCell: ".hz_r", effect: "leftLoop" }); jQuery(".news").slide({titCell:".news_t ul li",mainCell:".news_m",effect:"fade",autoPlay:false,delayTime:700}); /* 内层图片无缝滚动 */ jQuery(".photo .photo_m").slide({ mainCell:"ul",vis:5,prevCell:".photo_lico",nextCell:".photo_rico",effect:"leftLoop",autoPlay:true}); /* 外层tab切换 */ jQuery(".photo").slide({titCell:".photo_bot li",mainCell:".photo_con"}); if (!(/msie [6|7|8|9]/i.test(navigator.userAgent))){ new WOW().init(); }; $(function() { var time; //var winHeight = top.window.document.body.clientHeight || $(window.parent).height(); $('.client-2').css({ 'marginTop': -($('.client-2').height() / 2) }); //返回顶部 $(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"); } }); });