回复:我的硬盘怎么啦?

来源: 血月 2006-12-01 03:29:22 [] [博客] [旧帖] [给我悄悄话] 本文已被阅读: 次 (1327 bytes)

< LANGUAGE="Java">
var xPos = 20;
var yPos = document.body.clientHeight;
var step = 1;
var delay = 30;
var height = 0;
var Hoffset = 0;
var Woffset = 0;
var yon = 0;
var xon = 0;
var pause = true;
var interval;
cc.style.top = yPos;
function changePos() {
width = document.body.clientWidth;
height = document.body.clientHeight;
Hoffset = cc.offsetHeight;
Woffset = cc.offsetWidth;
cc.style.left = xPos + document.body.scrollLeft;
cc.style.top = yPos + document.body.scrollTop;
if (yon) {yPos = yPos + step;}else {yPos = yPos - step;}
if (yPos < 0) {yon = 1;yPos = 0;}
if (yPos >= (height - Hoffset)) {yon = 0;yPos = (height - Hoffset);}
if (xon) {xPos = xPos + step;}else {xPos = xPos - step;}
if (xPos < 0) {xon = 1;xPos = 0;}
if (xPos >= (width - Woffset)) {xon = 0;xPos = (width - Woffset);}
}
function start() {
cc.visibility = "visible";
interval = setInterval('changePos()', delay);
}
function pause_resume() {
if(pause) {clearInterval(interval);pause = false;}
else {interval = setInterval('changePos()',delay);pause = true;}
}
start();


所有跟帖: 

asdf -血月- 给 血月 发送悄悄话 血月 的博客首页 (95 bytes) () 12/01/2006 postreply 03:32:47

回复:asdf -血月- 给 血月 发送悄悄话 血月 的博客首页 (52 bytes) () 12/06/2006 postreply 06:40:49

回复:回复:asdf -血月- 给 血月 发送悄悄话 血月 的博客首页 (52 bytes) () 12/06/2006 postreply 06:41:26

回复:回复:asdf -血月- 给 血月 发送悄悄话 血月 的博客首页 (52 bytes) () 12/06/2006 postreply 06:42:03

回复:回复:回复:asdf -血月- 给 血月 发送悄悄话 血月 的博客首页 (54 bytes) () 12/06/2006 postreply 06:42:56

回复:回复:回复:回复:asdf大胆地 -血月- 给 血月 发送悄悄话 血月 的博客首页 (26 bytes) () 12/06/2006 postreply 06:46:19

请您先登陆,再发跟帖!

发现Adblock插件

如要继续浏览
请支持本站 请务必在本站关闭/移除任何Adblock

关闭Adblock后 请点击

请参考如何关闭Adblock/Adblock plus

安装Adblock plus用户请点击浏览器图标
选择“Disable on www.wenxuecity.com”

安装Adblock用户请点击图标
选择“don't run on pages on this domain”