//加入收藏 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 !") } } jQuery(".fullSlide").slide({ titCell:".hd li", mainCell:".bd ul", effect:"fold", autoPlay:true, delayTime:700 }); function search(){var key = document.getElementById('key').value;location.href ="search.htmp?key="+ key;} $(".cp").slide({titOnClassName:"cur", titCell: ".cp_nav li", mainCell: ".pro_nr", autoPlay: false,effect:"fade",vis:1 }); $(".m_pro").slide({ prevCell: ".cp_prev",nextCell: ".cp_next", mainCell: "ul", autoPlay: true,effect:"leftLoop",vis:4 }); $(".jz_bj").slide({ prevCell: ".jz_prev",nextCell: ".jz_next",mainCell: ".jz_scroll", autoPlay: true,effect:"leftLoop",vis:3 }); $(".hz").slide({ prevCell: ".hz_prev",nextCell: ".hz_next",mainCell: "ul", autoPlay: true,effect:"leftLoop",vis:5,interTime:1500 }); jQuery(".wt").slide({mainCell:".wt_c",autoPlay:true,effect:"topMarquee",vis:4,interTime:60,trigger:"click"}); $(".xc_bj").slide({ targetCell: ".xctit span a",titCell: ".xctit i a",mainCell: ".xc_nr", autoPlay: false,effect:"fade",titOnClassName:"cur"}) $(".xc").slide({ prevCell: ".prev1",nextCell: ".next1",mainCell: "ul", autoPlay: true,effect:"leftLoop",vis:4}) 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"); } }); });