前端设计

常用QQ在线客服代码

2022-09-01

1. http://is.qq.com/cgi-bin/webpresence/wpa_code?uin=+你的QQ号码;

         <a target=blank href=tencent://message/?uin=99536247&&Site=www.asdfasd.com&Menu=yes><img border="0" SRC=http://wpa.qq.com/pa?p=1:99536247:11 alt="点击这里给我发消息"></a>;

     <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=换成自己的QQ号&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:换成自己的QQ号:41" alt="点击这里给我发消息" title="点击这里给我发消息"></a>

 <a href="tencent://message/?uin=515153841 &Site=www.asdfasd.com&Menu=yes">

                <img border="0" src="http://wpa.qq.com/pa?p=2:515153841  :41"

                    alt="点击这里给我发消息" title="点击这里给我发消息"></a>

2. QQ在线客服代码:


<script language=javascript>

suspend2="<DIV id=love2 style='right:5px;POSITION:absolute;TOP:1px;'><table border='0' width='110' cellspacing='0' cellpadding='0'><tr><td width='110'><img border='0' src="/qq/kefu_up.gif"></td></tr><tr><td valign='middle'     background="/qq/kefu_middle.gif"> <img src="/qq/QQonline.gif" border='0' align='middle'> <a class='qqa' target='blank' href='http://wpa.qq.com/msgrd?V=1&Uin=99536247&Site=在线咨询& Menu=no' title='在线即时交谈'>在线客服①</a></td></tr><tr><td valign='middle' background="/qq/kefu_middle.gif"> <img src="/qq/QQonline.gif" border='0' align='middle'> <a class='qqa' target='blank' href='http://wpa.qq.com/msgrd?V=1&Uin=99536247&Site=在线咨询& Menu=no' title='在线即时交谈'>在线客服②</a></td></tr></table> </div>"

document.write(suspend2);

lastScrollY12=-150;

function heartBeat12(){

diffY12=document.body.scrollTop;

percent12=.1*(diffY12-lastScrollY12);

if(percent12>0)percent12=Math.ceil(percent12);

else percent12=Math.floor(percent12);

document.all.love2.style.pixelTop+=percent12;

lastScrollY12=lastScrollY12+percent12;

}

window.setInterval("heartBeat12()",1);

</script>


例子:http://wpa.qq.com/msgrd?V=1&Uin=99536247&Site=www.5z5.cn&Menu=yes


3.     <a target=blank href=http://wpa.qq.com/msgrd?V=1&Uin=99536247&Site=诺亚CN-工作室& Menu=yes><img border="0" SRC=http://wpa.qq.com/pa?p=1:50018889:5 alt="客户服务"></a>


4.     样式一:

< a target=blank href=http://wpa.qq.com/msgrd?V=1&Uin=99536247&Site=http://www.mudiao.com&Menu=yes ><img SRC=http://wpa.qq.com/pa?p=1:120995507:7 alt="技术支持" border="0" align="absmiddle" ></a >

样式二:

<a target=blank href=http://wpa.qq.com/msgrd?V=1&Uin=99536247&Site=http://www.mudiao.com&Menu=yes><img border="0" SRC=http://wpa.qq.com/pa?p=1:50858745:4 alt="技术支持"></a>


5.     QQ在线客服代码:


<script language=javascript>

suspend2="<DIV id=love2 style='right:5px;POSITION:absolute;TOP:1px;'><table border='0' width='110' cellspacing='0' cellpadding='0'><tr><td width='110'><img border='0' src="/qq/kefu_up.gif"></td></tr><tr><td valign='middle'     background="/qq/kefu_middle.gif"> <img src="/qq/QQonline.gif" border='0' align='middle'> <a class='qqa' target='blank' href='http://wpa.qq.com/msgrd?V=1&Uin=99536247&Site=在线咨询& Menu=no' title='在线即时交谈'>在线客服①</a></td></tr><tr><td valign='middle' background="/qq/kefu_middle.gif"> <img src="/qq/QQonline.gif" border='0' align='middle'> <a class='qqa' target='blank' href='http://wpa.qq.com/msgrd?V=1&Uin=99536247&Site=在线咨询&Menu= no' title='在线即时交谈'>在线客服②</a></td></tr></table> </div>"

document.write(suspend2);

lastScrollY12=-150;

function heartBeat12(){

diffY12=document.body.scrollTop;

percent12=.1*(diffY12-lastScrollY12);

if(percent12>0)percent12=Math.ceil(percent12);

else percent12=Math.floor(percent12);

document.all.love2.style.pixelTop+=percent12;

lastScrollY12=lastScrollY12+percent12;

}

window.setInterval("heartBeat12()",1);

</script>


6. 流行QQ在线客服代码:


<html>

<head>

<title>网页教学网在线联系</title>

<script language=javascript>

function picsize(obj,MaxWidth){

     img=new Image();//新建一个Image对象,用这个对象的width就不会出现width为0的现象

     img.src="/fk/blog/obj.src";

     if (img.width>MaxWidth)

     {

         return MaxWidth;

     }

     else

     {

         return img.width;

     }

}

</script>

<link href="/fk/blog/style.css" rel="stylesheet" type="text/css" />

<!--在这里加上一个CSS来控制字体-->

</head>

<body>

<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="/fk/blog/026_kefu_up.gif>";</td></tr>

<script src="http://webpresence.qq.com/getonline?Type=1&5400112:5361273:"></script><!--设置两个QQ号码-->

<tr><td valign=middle     background="/fk/blog/026_kefu_middle.gif>";

<script>

if (online[0]==0)

document.write("     <div align=center><img src="/fk/blog/026_QQoffline.gif" border=0 align=middle><a class='qqb' target=blank href='http://wpa.qq.com/msgrd?V=1&Uin=99536247&Site=在线咨询& Menu=no' title='客服不在线,请留言'>管理1</a></div>");

else

document.write("     <div align=center><img src="/fk/blog/026_QQonline.gif" border=0 align=middle><a class='qqa' target=blank href='http://wpa.qq.com/msgrd?V=1&Uin=99536247&Site=在线咨询& Menu=no' title='在线即时交谈'>管理1</a></div>");

</script >

</td></tr>

<tr><td valign=middle     background="/fk/blog/026_kefu_middle.gif>";

<script>

if (online[1]==0)

document.write("     <div align=center><img src="/fk/blog/026_QQoffline.gif" border=0 align=middle><a class='qqb' target=blank href='http://wpa.qq.com/msgrd?V=1&Uin=99536247&Site=在线咨询& Menu=no' title='客服不在线,请留言'>管理2</a></div>");

else

document.write("     <div align=center><img src="/fk/blog/026_QQonline.gif" border=0 align=middle><a class='qqa' target=blank href='http://wpa.qq.com/msgrd?V=1&Uin=99536247&Site=在线咨询&Menu= no' title='在线即时交谈'>管理2</a></div>");

</script >

</td></tr>

<tr><td width="110"><img border=0 src="/fk/blog/026_kefu_down.gif>";</td></tr>

</table>

<script type="text/javascript">

//Enter "frombottom" or "fromtop"

var verticalpos="frombottom"

if (!document.layers)

document.write('</div>')

function JSFX_FloatTopDiv()

//more javascript:http://www.webjx.com

{

var startX =6,

startY = 150;

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>

<br><br>

</body>

</html>


7. 流行QQ在线客服代码:


<!--首页QQ开始-->

<!-- QQ层 -->

<SCRIPT>

     var online= new Array();

     if (!document.layers)

             document.write('<div id="divStayTopLeft" style="position:absolute;width:115;" >')

</SCRIPT>

<SCRIPT

src="QQ/getonline.htm"></SCRIPT>

<TABLE border=0 cellPadding=0 cellSpacing=0 id=adv width=110>

<TBODY>

<TR>

<TD width=110><IMG border=0 height=28

     src="QQ/QQ1.jpg"

     useMap=#Map101 width=110></TD></TR>

<TR>

<TD><IMG height=11

     src="QQ/QQ11.jpg"

     width=110></TD></TR>

<TR>

<TD><IMG height=41

     src="QQ/QQ12.jpg"

     width=110></TD></TR>

<TR>

<TD align=middle

background="QQ/QQ2.jpg"

vAlign=center width=110>

     <SCRIPT>

                     if (online[0]==0)

                             document.write("<img src=QQ/QQoffline.gif border=0 align=middle><a class='qqb' target=blank href='http://wpa.qq.com/msgrd?V=1&Uin=99536247&Site=华夏数据&Menu=yes' title='业务咨询(QQ:75519283),请留言'> 在线客服</a>");

                     else

                             document.write("<img src=QQ/QQonline.gif border=0 align=middle><a class='qqa' target=blank href='http://wpa.qq.com/msgrd?V=1&Uin=99536247&Site=华夏数据& Menu=yes' title='业务咨询(QQ:75519283)'> 在线客服</a>");

             </SCRIPT>

</TD></TR>

<TR>

<TD align=middle

background="QQ/QQ2.jpg"

vAlign=center width=110>

     <SCRIPT>

                     if (online[1]==0)

                             document.write("<img src=QQ/QQoffline.gif border=0 align=middle><a class='qqb' target=blank href='http://wpa.qq.com/msgrd?V=1&Uin=99536247&Site=华夏数据&Menu=yes' title='业务咨询(QQ:41051665),请留言'> 在线客服</a>");

                     else

                             document.write("<img src=QQ/QQonline.gif border=0 align=middle><a class='qqa' target=blank href='http://wpa.qq.com/msgrd?V=1&Uin=99536247&Site=华夏数据& Menu=yes' title='业务咨询(QQ:41051665)'> 在线客服</a>");

             </SCRIPT>

</TD></TR>

<TR>

<TD align=middle

background="QQ/QQ2.jpg"

vAlign=center width=110>

     <SCRIPT>

                     if (online[2]==0)

                             document.write("<img src=QQ/QQoffline.gif border=0 align=middle><a class='qqb' target=blank href='http://wpa.qq.com/msgrd?V=1&Uin=99536247&Site=华夏数据&Menu=yes' title='渠道合作(QQ:75519283),请留言'> 渠道合作</a>");

                     else

                             document.write("<img src=QQ/QQonline.gif border=0 align=middle><a class='qqa' target=blank href='http://wpa.qq.com/msgrd?V=1&Uin=99536247&Site=华夏数据& Menu=yes' title='渠道合作(QQ:75519283)'> 渠道合作</a>");

             </SCRIPT>

     <BR><FONT color=#666666>点击在线交谈 <BR>值班8:00-18:00</FONT></TD></TR>

<TR>

<TD width=110><IMG

     src="QQ/QQ3.jpg"

     width=110></TD></TR></TBODY></TABLE><!--</layer>-->

<SCRIPT type=text/javascript>

     //Enter "frombottom" or "fromtop"

     var verticalpos="frombottom"

     if (!document.layers)

             document.write('</div>')

     function JSFX_FloatTopDiv()

     {

             var startX =0,

             startY = 400;

             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();

     //隐藏和显示QQ在线咨询

     function showadv(){

             if (adv.style.display=="none"){adv.style.display = "";//openwin("/QQ/online.asp");

             }

             }

     function hiddadv(){

             if (adv.style.display==""){adv.style.display = "none";//openwin("/QQ/offline.asp");

             }

             }

     function openwin(url)

             {

                     msgwin=window.open(url,"msg","left=10000,top=1000,width=1,height=1,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no,location=no");

                     //msgwin.opener.focus();msgwin.focus();

                     //return false;

                     return true;

             }

</SCRIPT>

<MAP name=Map101><AREA coords=102,11,8 οnclick=javascript:hiddadv();

shape=CIRCLE ref="#"></MAP></BODY></HTML>

<!--首页QQ结束-->