WebApp/js/qqfly.js
(完整代码) 1KB var delta=0.05
var collection;
function floaters() {
this.items = [];
this.addItem = function(id,x,y)
{
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()
{
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.documentElement.scrollLeft+followObj_x)) {
var dx=(document.documentElement.scrollLeft+followObj_x-followObj.offsetLeft)*delta;
dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx));
followObj.style.left=(followObj.offsetLeft+dx) + "px";
}
if(followObj.offsetTop!=(document.documentElement.scrollTop+followObj_y)) {
var dy=(document.documentElement.scrollTop+followObj_y-followObj.offsetTop)*delta;
dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));
followObj.style.top=(followObj.offsetTop+dy) + "px";
}
followObj.style.display = '';
}
}
var theFloaters = new floaters();
document.getElementById("divMenu").style.left=(document.body.clientWidth-90) + "px";
document.getElementById("divMenu").style.top="50px";
document.getElementById("divMenu2").style.left="2px";
document.getElementById("divMenu2").style.top="50px";
theFloaters.addItem('divMenu','document.body.clientWidth-90',50);
theFloaters.addItem('divMenu2',2,50);
theFloaters.play();
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。