回複:我的硬盤怎麽啦?

來源: 血月 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”