Web QQ Customer Service Code

Source: Internet
Author: User

<%

Adm_qq= "123,456456"


Qq=split (ADM_QQ, ",")
For n=0 to UBound (QQ)
MYQQ=MYQQ+QQ (N) + ":"
Next
%>

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

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

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

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

&LT;TR&GT;&LT;TD Valign=middle background=images/kefu_middle.gif>
<script>
if (online[<%=n%>]==0)
document.write ("&nbsp;&nbsp;<a class= ' QQB ') Target=blank href= ' http://wpa.qq.com/msgrd? V=1&AMP;UIN=&LT;%=QQ (n)%>&site= Network 4 host &menu=no ' title= ' customer service is not online, please leave a message ' &GT;&LT;%=QQ (n)%></a> ');
Else
document.write ("&nbsp;&nbsp;<a class= ' Qqa ') Target=blank href= ' http://wpa.qq.com/msgrd? V=1&AMP;UIN=&LT;%=QQ (n)%>&site= net 4 host &menu=no ' title= ' online instant chat ' ><%=qq (n)%></a> ');
</script >
</td></tr>
<%next%>
&LT;TR&GT;&LT;TD width= "></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>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.