var obj=document.getElementById("ad") obj.innerHTML='' document.write ('
'+ '
'+ ''+ ' '+ ' '+ '
  在线客服
  您好! 我是网站客服人员,有什么可能帮你的?
'+ '   
  说明:此对话来自您正在浏览的网站,您可以随时与客服人员交流
'); var x = 50,y = 60 var xin = true, yin = true var step = 1 var delay = 50 var doc = window.frames["im"].document; function complete() { if(doc.readyState=="complete") { window.frames["im"].resizeTo(doc.body.scrollWidth,doc.body.scrollHeight+20); } } doc.onreadystatechange= complete; function floatAD() { var L=T=0 var R= screen.availWidth-100-obj.offsetWidth var B = screen.availHeight-100-obj.offsetHeight obj.style.left = x + document.body.scrollLeft obj.style.top = y + document.body.scroll x = x + step*(xin?1:-1) if (x < L) { xin = true; x = L} if (x > R){ xin = false; x = R} y = y + step*(yin?1:-1) if (y < T) { yin = true; y = T } if (y > B) { yin = false; y = B } } var itl= setInterval("floatAD()", delay) obj.onmouseover=function(){clearInterval(itl)} obj.onmouseout=function(){itl=setInterval("floatAD()", delay)} function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true);