WebContent/js/cloud.js
(完整代码) 1005B
// Cloud Float...
var $main = $cloud = mainwidth = null;
var offset1 = 450;
var offset2 = 0;
var offsetbg = 0;
$(document).ready(
function () {
$main = $("#mainBody");
$body = $("body");
$cloud1 = $("#cloud1");
$cloud2 = $("#cloud2");
mainwidth = $main.outerWidth();
}
);
/// 飘动
setInterval(function flutter() {
if (offset1 >= mainwidth) {
offset1 = -580;
}
if (offset2 >= mainwidth) {
offset2 = -580;
}
offset1 += 1.1;
offset2 += 1;
$cloud1.css("background-position", offset1 + "px 100px")
$cloud2.css("background-position", offset2 + "px 460px")
}, 70);
setInterval(function bg() {
if (offsetbg >= mainwidth) {
offsetbg = -580;
}
offsetbg += 0.9;
$body.css("background-position", -offsetbg + "px 0")
}, 90 );
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
