新闻中心
公司新闻
行业动态

function changeOnline(num) { if (isNaN(num) && num == "") return; for (var i = 1; i <=6 ; i++) { if (i == num) { document.getElementById("onlineSort" + i).className = "online_bar expand"; document.getElementById("onlineType" + i).style.display = "block"; } else { document.getElementById("onlineSort" + i).className = "online_bar collapse"; document.getElementById("onlineType" + i).style.display = "none"; } } } $(document).ready(function(){ $("#floatShow").bind("click",function(){ $('#onlineService').animate({width: 'show', opacity: 'show'}, 'normal',function(){ $('#onlineService').show(); });$('#floatShow').attr('style','display:none');$('#floatHide').attr('style','display:block'); return false; }); $("#floatHide").bind("click",function(){ $('#onlineService').animate({width: 'hide', opacity: 'hide'}, 'normal',function(){ $('#onlineService').hide(); });$('#floatShow').attr('style','display:block');$('#floatHide').attr('style','display:none'); }); $(document).bind("click",function(event){ if ($(event.target).isChildOf("#online_qq_layer") == false) { $('#onlineService').animate({width: 'hide', opacity: 'hide'}, 'normal',function(){ $('#onlineService').hide(); });$('#floatShow').attr('style','display:block');$('#floatHide').attr('style','display:none'); } }); jQuery.fn.isChildAndSelfOf = function(b){ return (this.closest(b).length > 0); }; jQuery.fn.isChildOf = function(b){ return (this.parents(b).length > 0); }; //$(window).scroll(function(){ //$('#online_qq_layer').stop().animate({top:$(document).scrollTop() + $("#online_qq_layer").height()}, 100) //}); });