function addfavorite2() { var url = window.location; var title = document.title; var ua = navigator.useragent.tolowercase(); if (ua.indexof("360se") > -1) { alert("由于360浏览器功能限制,请按 ctrl+d 手动收藏!"); } else if (ua.indexof("msie 8") > -1) { window.external.addtofavoritesbar(url, title); //ie8 } else if (document.all) { try { window.external.addfavorite(url, title); } catch (e) { alert('您的浏览器不支持,请按 ctrl+d 手动收藏!'); } } else if (window.sidebar) { window.sidebar.addpanel(title, url, ""); } else { alert('您的浏览器不支持,请按 ctrl+d 手动收藏!'); } } jquery(".banner").slide({ titcell: ".ban_t em", maincell: ".ban_p ul", effect: "fold", autoplay: true, delaytime: 700 }); function search(){ var key = document.getelementbyid('keyword').value; location.href="search/index.html?keyword="+keyword; } $(function() { $(".plan").slide({ titcell: ".plantil li", maincell: ".plan_c", titonclassname: "cur", vis: 1, scroll: 1, effect: "leftloop" }); $(".plan_c1").slide({ maincell: "ul", vis: 3, scroll: 1, effect: "toploop", autoplay: "true" }); }) $(function() { $(".pro_list").slide({ maincell: ".pro_lt ul", vis: 3, scroll: 1, effect: "leftloop", autoplay: "true" }); $(".pro_lc").slide({ maincell: "ul", vis: 1, scroll: 1, effect: "leftloop", nextcell: '.pro_next' }); }) $(function() { $(".team").slide({ titcell: ".teamtil li", maincell: ".team_c", titonclassname: "cur", vis: 1, scroll: 1, effect: "leftloop", prevcell: '.prev1', nextcell: '.next1' }); }) $(function() { $(".news1").slide({ titcell: ".newtil li", maincell: ".new_c", titonclassname: "cur", vis: 1, scroll: 1, effect: "leftloop" }); }) if (!(/msie [6|7|8|9]/i.test(navigator.useragent))) { new wow().init(); }; $(function() { $(".pro_lt li").hover(function() { $(this).addclass("cur"); }, function() { $(this).removeclass("cur"); }) $(".plan_c1l li").hover(function() { $(this).addclass("cur"); }, function() { $(this).removeclass("cur"); }) $(".serv_c dl").hover(function() { $(this).addclass("cur"); }, function() { $(this).removeclass("cur"); }) $(".new2_c dl").hover(function() { $(this).addclass("cur"); }, function() { $(this).removeclass("cur"); }) }); $(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"); } });*/ });