qq線上客服漂浮代碼

來源:互聯網
上載者:User

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<title>代碼</title>
<meta name="generator" content="editplus">
<meta name="author" content="">
</head>

<body>
   <script>

     var delta=0.15
     var collection;
     function floaters() {
         this.items     = [];
         this.additem     = function(id,x,y,content)
                   {
                     document.write('<div id='+id+' style="z-index: 10; position: absolute;   width:80px; height:60px;left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'">'+content+'</div>');
                   
                     var newitem                 = {};
                     newitem.object             = document.getelementbyid(id);
                     newitem.x                 = x;
                     newitem.y                 = y;

                     this.items[this.items.length]         = newitem;
                   }
         this.play     = function()
                   {
                     collection                 = this.items
                     setinterval('play()',10);
                   }
         }
         function play()
         {
             if(screen.width<=800)
             {
                 for(var i=0;i<collection.length;i++)
                 {
                     collection[i].object.style.display     = 'none';
                 }
                 return;
             }
             for(var i=0;i<collection.length;i++)
             {
                 var followobj         = collection[i].object;
                 var followobj_x         = (typeof(collection[i].x)=='string'?eval(collection[i].x):collection[i].x);
                 var followobj_y         = (typeof(collection[i].y)=='string'?eval(collection[i].y):collection[i].y);

                 if(followobj.offsetleft!=(document.body.scrollleft+followobj_x)) {
                     var dx=(document.body.scrollleft+followobj_x-followobj.offsetleft)*delta;
                     dx=(dx>0?1:-1)*math.ceil(math.abs(dx));
                     followobj.style.left=followobj.offsetleft+dx;
                     }

                 if(followobj.offsettop!=(document.body.scrolltop+followobj_y)) {
                     var dy=(document.body.scrolltop+followobj_y-followobj.offsettop)*delta;
                     dy=(dy>0?1:-1)*math.ceil(math.abs(dy));
                     followobj.style.top=followobj.offsettop+dy;
                     }
                 followobj.style.display     = '';
             }
         }   
       
     var thefloaters         = new floaters();
         thefloaters.additem('followdiv1','document.body.clientwidth-106',80,'<a target=blank href=tencent://message/?uin=41476811&site=www.xy280.com&menu=yes><img border="0" src=images/qq.gif alt="線上諮詢"></a>');
     thefloaters.additem('followdiv2',6,80,'<a target=blank href=tencent://message/?uin=41476811&site=www.xy280.com&menu=yes><img border="0" src=images/qq.gif alt="線上諮詢"></a>');
     thefloaters.play();

</script>
<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>

</body>
</html>

qq線上客服 代碼二

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<title>左側漂浮qq客服代碼示範_shatoujiao.com</title>
</head>
<body>

<!-- 左隱藏菜單開始 -->
<script language="網頁特效1.2">
function move(x, y) {
if (document.all) {
object1.style.pixelleft += x;
object1.style.pixeltop += y;}
else
if (document.layers) {
document.object1.left += x;
document.object1.top += y;
}};
function position() {
document.object1.left += -200;
document.object1.top += 0;
document.object1.visibility = "show"
};
function makestatic() {
if (document.all) {object1.style.pixeltop=document.body.scrolltop+100}
else {eval('document.object1.top=eval(window.pageyoffset+20)');}
settimeout("makestatic()",0);}
</script>
<!-- 左隱藏菜單結束 -->
<!-- 左隱藏菜單big -->
<layer class="ns" onmouseo教程ver="move(580,0)" onmouseout="move(-580, 0)" top="20" visibility="hide" name="object1" left="0">
<script language="javascript1.2">
if (document.all)
document.write('<div id="object1" style="position : absolute ;left : -125px ;top : 20px ;width : 0px ;z-index : 20">')
</script>
<table onmouseover="move(120,0)" onmouseout="move(-120, 0)" cellspacing="1" cellpadding="2" border="0">
<tr>
   <td>
   <table cellspacing="0" cellpadding="0" width="118" align="center" border="0">
    <tr>
     <td>
     <img height="160" alt="" src="img/left_2.jpg" width="118" border="0" name="servicepic_01"></td>
    </tr>
    <tr>
     <td>
     <table cellspacing="0" cellpadding="0" width="118" align="left" border="0">
      <tr>
       <td background="img/left_l_1.jpg">
       <img height="25" alt="" src="img/left_l_1.jpg" width="14" border="0" name="servicepic_02"></td>
       <td align="middle" width="89" bgcolor="#f8f6f7" height="25">
       <a target="blank" href="tencent://message/?uin=751082&site=深海資料&menu=yes">
       <img border="0" ddc="http://wpa.qq.com/pa?p=1:751082:10" alt="點擊這裡給我發訊息"></a></td>
       <td background="img/left_r_1.jpg">
       <img height="25" alt="" src="img/left_r_1.jpg" width="15" border="0" name="servicepic_04"></td>
      </tr>
     </table>
     </td>
    </tr>
    <tr>
     <td>
     <img height="17" alt="" src="img/left_3.jpg" width="118" border="0" name="servicepic_05"></td>
    </tr>
    <tr>
     <td>
     <table cellspacing="0" cellpadding="0" width="118" align="left" border="0">
      <tr>
       <td background="img/left_l_1.jpg"><img src="img/left_l_1.jpg" alt="" name="servicepic_02" width="14" height="25" border="0" id="servicepic_02" /></td>
       <td align="center" width="89" bgcolor="#f8f6f7" height="24">
         <a href="guestbook">網站留言</a><br /><br />
         <a href="http://amos1.taobao.com/msg.ww?v=2&uid=123456789&s=1" target="_blank">
       <img alt="點擊這裡給我發訊息" src="img/wangwang_off.gif" border="0"></a></td>
       <td background="img/left_r_1.jpg"><img src="img/left_r_1.jpg" alt="" name="servicepic_04" width="15" height="25" border="0" id="servicepic_04" /></td>
      </tr>
     </table>
     </td>
    </tr>
    <tr>
     <td>
     <img height="22" alt="" src="img/left_4.gif" width="118" border="0" name="servicepic_09"></td>
    </tr>
   </table>
   </td>
   <td valign="top" align="middle" width="12" rowspan="100">
   <img height="109" src="img/left_1.gif" width="20"> </td>
</tr>
<script language="javascript1.2">
<!--
if (document.all||document.layers)
makestatic();
if (document.layers) {
window.onload=position;
}
var sitems=new array();
var sitemlinks=new array();
function hl(n) {
n.classname='hl'}
function n(h) {
h.classname='n'}
//--></script>
</table>
<script language="javascript1.2">
if (document.all)
document.write('</div>')
</script>
</layer>
<!-- 左隱藏菜單end -->
</body>
</html>

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.