中文(繁体)
<!-- http://www.downcodes.com --> <!-- bbs http://bbs.downcodes.com --> <!-- 把下面程式碼加到<body>區域--> <div id="img" style="position:absolute;; 左:27px; 上:1115px"> <a href="http://www.downcodes.com/ad.htm"; target="_blank"><img src="/u/info_img/2009-06/20/5546_logo.gif" width="150" height="89" border="0" alt="廣告服務!">< /a> </div> <script language="javascript"> <!-- 開始var xPos = 20; var yPos = document.body.clientHeight;變數步長= 1;無功延遲 = 30;變數高度=0; var 霍夫塞特 = 0; var 偏移量 = 0; var = 0; var xon = 0; var 暫停 = true;變數間隔; img.style.top = yPos;函數changePos() { width = document.body.clientWidth;高度 = document.body.clientHeight; Hoffset = img.offsetHeight; Woffset = img.offsetWidth; img.style.left = xPos + document.body.scrollLeft; img.style.top = yPos + document.body.scrollTop; if (yon) { yPos = yPos + 步驟; } else { yPos = yPos - 步驟; } if (yPos < 0) { yon = 1; y 位置 = 0; } if (yPos >= (高度 - Hoffset)) { yon = 0; yPos =(高度 - 霍夫塞特); } if (xon) { xPos = xPos + 步驟; } else { xPos = xPos - 步驟; } 如果 (xPos < 0) { xon = 1; x位置 = 0; } if (xPos >= (寬度 - Woffset)) { xon = 0; xPos = (寬度 - Woffset); } } 函數 start() { img.visibility = "visible";間隔 = setInterval('changePos()', 延遲); } 開始(); // 結束 --> </script> <span id="superball"></span>