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 手动收藏!'); } } $(function() { $(".sou").find("h2").click(function () { $(this).parents().find(".sou3").slideToggle("fast"); }) }) function search(){ var key = document.getElementById('key').value; location.href="tfbsdi.qiq?lfz="+key; } $(".banner").slide({ titOnClassName: "cur", autoPlay: true, }); triggerTime: 4000; effect: "fold"; titCell: ".hd li"; trigger: 'click'; var totel = $(".banner .bd").find("li").size(); $(document).ready(function(){ $(".youz dl").mouseover(function () { $(this).addClass("cur"); }) $(".youz dl").mouseout(function () { $(this).removeClass("cur"); }) }); $(".dy").slide({ targetCell: ".n_nav .more2 span",titOnClassName:'cur', titCell: ".n_nav ul li a", mainCell: ".news_nr", autoPlay: false,effect:"fade" }); $(".faq").slide({mainCell:".faq2",autoPlay:true,effect:"topMarquee",vis:4,interTime:60,trigger:"click"}); $(".pic").slide({ targetCell: ".n_nav .more2 span",titOnClassName:'cur', titCell: ".n_nav ul li a", mainCell: ".pic1", autoPlay: false,effect:"fade" }); $(".pic2").slide({titCell:"",mainCell:".pic3 ul",effect:"leftLoop",autoPlay:false,vis:4,prevCell:".arr1",nextCell:".arr2",}) $(".topWrap h2,.topWrap p,.tit").fadeThis({speed:800}); $(window).fadeThis(); $(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"); } }); });