程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 網頁編程 >> ASP編程 >> 關於ASP編程 >> 網頁qq客服代碼

網頁qq客服代碼

編輯:關於ASP編程

    <%

    adm_qq="123,456456"
    QQ=split(adm_qq,",")
    for N=0 to UBound(QQ)
    MyQQ=MyQQ+QQ(N)+":"
    next
    %>

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <link rel="stylesheet" href="images/qq.css" type="text/css">
    </head>

    <script>
    var online= new Array();
    if (!document.layers)
    document.write('<div id="divStayTopLeft" style="position:absolute">')
    </script>
    <layer id="divStayTopLeft">

    <table border="0" width="110" cellspacing="0" cellpadding="0">
    <tr><td width="110"><img border=0 src=images/kefu_up.gif></td></tr>
    <script src="http://webpresence.qq.com/getonline?Type=1&<%=Myqq%>"></script>

    <% for N=0 to UBound(QQ) %>

    <tr><td valign=middle  background=images/kefu_middle.gif>
    <script>
    if (online[<%=n%>]==0)
    document.write("&nbsp;&nbsp;<img src=images/QQoffline.gif border=0 align=middle><a class='qqb' target=blank href='http://wpa.qq.com/msgrd?V=1&Uin=<%=QQ(n)%>&Site=網4主機&Menu=no' title='客服不在線,請留言'><%=QQ(n)%></a>");
    else
    document.write("&nbsp;&nbsp;<img src=images/QQonline.gif border=0 align=middle><a class='qqa' target=blank href='http://wpa.qq.com/msgrd?V=1&Uin=<%=QQ(n)%>&Site=網4主機&Menu=no' title='在線即時交談'><%=QQ(n)%></a>");
    </script >
    </td></tr>
    <%next%>
    <tr><td width="110"><img border=0 src=images/kefu_down.gif></td></tr>
    </table>
    </layer>
    <script type="text/javascript">
    //Enter "frombottom" or "fromtop"
    var verticalpos="frombottom"
    if (!document.layers)
    document.write('</div>')
    function JSFX_FloatTopDiv()
    {
     var startX =3,
     startY = 250;
     var ns = (navigator.appName.indexOf("Netscape") != -1);
     var d = document;
     function ml(id)
     {
      var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
      if(d.layers)el.style=el;
      el.sP=function(x,y){this.style.left=x;this.style.top=y;};
      el.x = startX;
      if (verticalpos=="fromtop")
      el.y = startY;
      else{
      el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
      el.y -= startY;
      }
      return el;
     }
     window.stayTopLeft=function()
     {
      if (verticalpos=="fromtop"){
      var pY = ns ? pageYOffset : document.body.scrollTop;
      ftlObj.y += (pY + startY - ftlObj.y)/8;
      }
      else{
      var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
      ftlObj.y += (pY - startY - ftlObj.y)/8;
      }
      ftlObj.sP(ftlObj.x, ftlObj.y);
      setTimeout("stayTopLeft()", 10);
     }
     ftlObj = ml("divStayTopLeft");
     stayTopLeft();
    }
    JSFX_FloatTopDiv();
    </script>
    </html>

    1. 上一頁:
    2. 下一頁:
    Copyright © 程式師世界 All Rights Reserved