//加入收藏 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 !") } } $(".banner").slide({ titOnClassName: "cur", autoPlay: true, effect:'fold', titCell: ".hd li", trigger: 'click', interTime:8000, }); var key = document.getElementById("key"); function searchInfo() { var base = $('head').data('base'); if (key.value) { location.href = base + "search.htmp?key=" + key.value; } else { alert('请输入您要搜索的关键词!'); } } /* $(".fen01").slide({titCell:"h3", targetCell:"ul",defaultIndex:1,effect:"slideDown",delayTime:300,returnDefault:true});*/ $(".pro01").slide({titOnClassName:'cur', titCell: ".prot ul li", mainCell: ".pro2", autoPlay: false,effect:"fade" }); $(".changj2").slide({ mainCell:".changj3 ul",vis:4,prevCell:".arr1",nextCell:".arr2",autoPlay:true,effect:"leftLoop"}); $(document).ready(function(){ $(".tech li").mouseover(function () { $(this).addClass("cur"); }) $(".tech li").mouseout(function () { $(this).removeClass("cur"); }) }); jQuery(".news").slide({titOnClassName:'cur', titCell: ".news_nav ul li", mainCell: ".news_nr", autoPlay: false,effect:"fade" }); $(".newleft").slide({ titCell: ".newhd li", mainCell: ".newlbd", autoPlay: false, titOnClassName: "on", effect: "fold", vis: 1 }); jQuery(".newright").slide({ mainCell:".m_zs ul",vis:1,prevCell:".u_ljt",nextCell:".u_rjt",autoPlay:true,effect:"leftLoop"}); $(".topWrap h2,.tit").fadeThis({speed:800}); $(window).fadeThis(); $(function() { var time; $('.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"); } }); });