QQ Online customer service floating Code

Source: Internet
Author: User
Tags abs eval visibility

<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.0 transitional//en" >
<title> Code </title>
<meta name= "generator" content= "EditPlus" >
<meta name= "Author" content= "" >

<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 ', '), ' <a Target=blank href=tencent://message/? Uin=41476811&site=www.xy280.com&menu=yes></a> ');
Thefloaters.additem (' Followdiv2 ', 6,80, ' <a target=blank href=tencent://message/?uin=41476811&site= Www.xy280.com&menu=yes></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>

QQ Online customer Service code two

<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<title> left floating QQ customer Service code demo _shatoujiao.com</title>
<body>

<!--left-hide menu starts-->
<script language= "Web Effects 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>
<!--left-hide menu End-->
<!--left hidden menu Big-->
<layer class= "ns" Onmouseo tutorials ver= "Move (580,0)" onmouseout= "Move ( -580, 0)" top= "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>
</td>
</tr>
<tr>
<td>
<table cellspacing= "0" cellpadding= "0" width= "118" align= "left" border= "0" >
<tr>
&LT;TD background= "Img/left_l_1.jpg" >
</td>
&LT;TD align= "Middle" width= "bgcolor=" "#f8f6f7" height= ">"
<a target= "blank" href= "tencent://message/?uin=751082&site= deep Sea data &menu=yes" >
</a></td>
&LT;TD background= "Img/left_r_1.jpg" >
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td>
<table cellspacing= "0" cellpadding= "0" width= "118" align= "left" border= "0" >
<tr>
&LT;TD background= "img/left_l_1.jpg" ></td>
&LT;TD align= "center" width= "bgcolor=" "#f8f6f7" height= ">"
<a href= "Guestbook" > website message </a><br/><br/>
<a href= "Http://amos1.taobao.com/msg.ww?v=2&uid=123456789&s=1" target= "_blank" >
</a></td>
&LT;TD background= "img/left_r_1.jpg" ></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
</td>
&LT;TD valign= "Top" align= "Middle" width= "rowspan=" >
</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>
<!--left-hide menu End-->
</body>

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.