【www.gdgbn.com--微信】
代码
<script>var delta=0.15
var collection;
function floaters() {
this.items = [];
this.additem = function(id,x,y,content)
{
document.write(""+content+"");
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[i].object.style.display = "none";
}
return;
}
for(var i=0;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,"");
thefloaters.additem("followdiv2",6,80,"");
thefloaters.play();</script>
qq在线客服 代码二
左侧漂浮qq客服代码演示_shatoujiao.com
<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>
<script language="javascript1.2">
if (document.all)
document.write("")
</script>
网站留言
http://amos1.taobao.com/msg.ww?v=2&uid=123456789&s=1" target="_blank">
<script language="javascript1.2">
</script>
<script language="javascript1.2">
if (document.all)
document.write("")
</script>