lse if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE7.0") { $('.iet').show(); }else if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE8.0") { $('.iet').show(); }else if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE9.0") { $('.iet').hide(); } else { $('.iet').hide(); } // 客服 $('.kf .kf-side').click(function(){ //$('.kf').animate({ right: '-208'}, "slow"); var rt=$('.kf').css("right"); //alert(rt); var num=parseInt(rt); //alert(num); if(num < 0){ $('.kf').animate({ right: '20px'}, "slow"); $('.kf .kf-side span.arrow').addClass('on'); }else{ $('.kf').animate({ right: '-208px'}, "slow"); $('.kf .kf-side span.arrow').removeClass('on'); } }); $('.kt-top span.close').click(function(){ $('.kf').animate({ right: '-208px'}, "slow"); }); //返回顶部 $('.kf .backTop').click(function() { $("html,body").stop().animate({ scrollTop: '0'}, 500); });