function addBookmark(_this) { try { var _title = document.title; var url = document.URL; if (window.sidebar) { var ua = navigator.userAgent.toLowerCase(); if (ua.indexOf("firefox") > -1 && ua.match(/firefox\/([\d.]+)/)[1] == "23.0") { _this.setAttribute("title", _title) } else { window.sidebar.addPanel(_title, url, "") } } else if (window.opera && window.print) { var __mbm = document.createElement("a"); __mbm.setAttribute("rel", "sidebar"); __mbm.setAttribute("href", url); __mbm.setAttribute("title", _title); __mbm.click() } else if (document.all) { window.external.AddFavorite(url, _title); return } else { alert("浏览器不支持该操作,尝试快捷键 Ctrl + D !") } } catch (e) { alert("浏览器不支持该操作,尝试快捷键 Ctrl + D !") } } $(function() { $(".h_nav li").hover(function() { $(this).find('.erji').show(); },function(){ $(this).find('.erji').hide(); }) }) $(document).ready(function () { $('.banner_m').slick({ autoplay: true, autoplaySpeed: 4000, dots: true }); }); var key = document.getElementById("key"); function searchInfo() { var base = $('head').data('base'); if (key.value) { location.href = base + "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 = $(el).attr("href"); location.href = href ? href : "/search.php?key=" + $(el).html(); } jQuery(".pro_btn01").slide({titCell:"a",titOnClassName:"cur"}); jQuery(".pro01_r").slide({ mainCell: ".pro_qie ul", autoPlay: true, delayTime: 200, vis: 1, prevCell: ".pro_prev", nextCell: ".pro_next", effect: "leftLoop" }); jQuery(".pro_btn02").slide({titCell:"a",titOnClassName:"cur"}); jQuery(".pro02_l").slide({ mainCell: ".gui_qie ul", autoPlay: true, delayTime: 200, vis: 1, effect: "leftLoop" }); jQuery(".pro03").slide({ mainCell: ".pro03_m .pro03_qie", autoPlay: true, delayTime: 200, vis: 3, prevCell: ".pro03_prev", nextCell: ".pro03_next", effect: "leftLoop" }); jQuery(".quality").slide({titCell:".qua01",titOnClassName:"cur"}); jQuery(".case_nav").slide({titCell:"li",titOnClassName:"cur"}); $(function(){ jQuery(".case_r").slide({mainCell:".case_rm .case_qie",autoPage:true,effect:"top",vis:3,pnLoop:false}); jQuery(".case").slide({titCell:".case_r dl",mainCell:".case_m",effect:"left",vis:1,titOnClassName:"cur",pnLoop:false}); }) var wind var wen = 1 window.onload = function(){ wind = $(".fanw").width() $(".serv_c li").css("width",wind/4) wen = parseFloat(wind) - 733 } $(window).resize(function(){ wind = $(".fanw").width() $(".serv_c li").css("width",wind/4) wen = parseFloat(wind) - 733 }); $(".serv_c li").mouseenter(function(){ var wen = $(".fanw").width()-733 $(".serv_c li").stop().animate({ "width":250 }) $(this).stop().animate({ "width":wen }) $(".serv_c li").find(".mo").stop().animate({ "opacity":1 },200) $(this).find(".mo").stop().animate({ "opacity":0 },200) $(this).find(".shu2").hide() $(".serv_c li").find(".bock").stop().animate({ "opacity":0, "bottom":-100 },200) $(this).find(".bock").stop().animate({ "opacity":1, "bottom":0 },800) }) $(".serv_c li").mouseleave(function(){ $(".serv_c li").stop().animate({ "width":wind/4 }) $(".serv_c li").find(".mo").stop().animate({ "opacity":1 },200) $(".serv_c li").find(".bock").stop().animate({ "opacity":0, "bottom":-170 },200) $(".serv_c li").find(".shu2").show() }) jQuery(".news03").slide({mainCell:".news_qie ul",autoPlay:true,effect:"topMarquee",vis:3,interTime:35,trigger:"click"}); jQuery(".news_r").slide({mainCell:".wd_m .wd_qie",autoPlay:true,effect:"topMarquee",vis:3,interTime:35,trigger:"click"}); $('#parentIframe').on('click', function(){ layer.open({ type: 2, title: false, area: ['960px', '540px'], shade: 0.8, closeBtn: 1, shadeClose: true, content: 'images/video.mp4' }); }); $(".slidebox").click(function () { $(this).hide(); $(".demand_con").slideToggle(); }); $(".close_it").click(function () { $(".slidebox").fadeIn(); $(".demand_con").slideToggle(); }); 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) }); $('#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"); } }); });