유동 가능 한 온라인 qq 상담 고객 센터 코드


  
  
  
  
  1. <html> 
  2. <head> 
  3. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> 
  4. <meta name="Copyright" content=" JavaScript  http://www.ijavascript.cn/" /> 
  5. <meta name="description" content="QQ " /> 
  6. <meta content=" JavaScript " name="keywords" /> 
  7. <title>QQ  -  JavaScript </title> 
  8. </head> 
  9.      
  10. <BODY> 
  11. <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> 
  12. <!-- QQ  --> 
  13. <script> 
  14. var delta=0.15 
  15. var collection; 
  16. function floaters() { 
  17.     this.items  = []; 
  18.     this.addItem    = function(id,x,y,content) { 
  19.         document.write('<DIV id='+id+' style="Z-INDEX: 10; POSITION: absolute;width:80px; height:30px;left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'">'+content+'</DIV>'); 
  20.          
  21.         var newItem = {}; 
  22.         newItem.object = document.getElementById(id); 
  23.         newItem.x = x; 
  24.         newItem.y = y; 
  25.  
  26.         this.items[this.items.length]       = newItem; 
  27.     } 
  28.     this.play = function() { 
  29.         collection = this.items 
  30.         setInterval('play()',10); 
  31.     } 
  32.  
  33. function play() { 
  34.     if(screen.width<=800) { 
  35.         for(var i=0;i<collection.length;i++) { 
  36.             collection[i].object.style.display  = 'none'
  37.         } 
  38.         return; 
  39.     } 
  40.     for(var i=0;i<collection.length;i++) { 
  41.         var followObj       = collection[i].object; 
  42.         var followObj_x     = (typeof(collection[i].x)=='string'?eval(collection[i].x):collection[i].x); 
  43.         var followObj_y     = (typeof(collection[i].y)=='string'?eval(collection[i].y):collection[i].y); 
  44.  
  45.         if(followObj.offsetLeft!=(document.body.scrollLeft+followObj_x)) { 
  46.             var dx=(document.body.scrollLeft+followObj_x-followObj.offsetLeft)*delta; 
  47.             dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx)); 
  48.             followObjfollowObj.style.left=followObj.offsetLeft+dx; 
  49.             } 
  50.  
  51.         if(followObj.offsetTop!=(document.body.scrollTop+followObj_y)) { 
  52.             var dy=(document.body.scrollTop+followObj_y-followObj.offsetTop)*delta; 
  53.             dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy)); 
  54.             followObjfollowObj.style.top=followObj.offsetTop+dy; 
  55.             } 
  56.         followObj.style.display = ''
  57.     } 
  58.  
  59. var theFloaters = new floaters(); 
  60.     theFloaters.addItem('followDiv1','document.body.clientWidth-106',80,'<a href=#target=_blank> <A href="http://wpa.qq.com/msgrd?V=1&amp;Uin=83744378&amp;Site=www.ijavascript.cn&amp;Menu=yes" target=blank><img src=http://www.ijavascript.cn/tools/codedemo/float-drag-js-for-qqonline-30/images/QQoffline.gif alt= QQ border=0></a>QQ <br><br><A href="http://wpa.qq.com/msgrd?V=1&amp;Uin=125146711&amp;Site=www.ijavascript.cn&amp;Menu=yes" target=blank><img src=http://www.ijavascript.cn/tools/codedemo/float-drag-js-for-qqonline-30/images/QQoffline.gif alt=QQ  border=0></a>QQ '); 
  61. theFloaters.addItem('followDiv2',6,80,'<A href="http://wpa.qq.com/msgrd?V=1&amp;Uin=19325450&amp;Site=www.ijavascript.cn&amp;Menu=yes" target=blank><img src=http://www.ijavascript.cn/tools/codedemo/float-drag-js-for-qqonline-30/images/QQoffline.gif alt= QQ border=0></a>QQ <br><br><a href=http://wpa.qq.com/msgrd?V=1&amp;Uin=121929982&amp;Site=www.ijavascript.cn&amp;Menu=yes"target=_blank><img src=http://www.ijavascript.cn/tools/codedemo/float-drag-js-for-qqonline-30/images/QQoffline.gif alt=QQ  border=0></a>QQ <br>'); 
  62. theFloaters.play(); 
  63. </script> 
  64. <!-- QQ  --> 
  65.  
  66. </BODY> 
  67. </HTML> 

좋은 웹페이지 즐겨찾기