| |
|
| |
| 浮动代码:向汶川大地震遇难的同胞志哀 |
|
[ 2008-5-19 14:39:00 | By: manage ] |
<DIV id=img style="LEFT: 100px; WIDTH: 100px; POSITION: absolute; TOP: 100px; HEIGHT: 100px"><SPAN id=LbGoSignUpLink><A title=向汶川大地震遇难的同胞志哀 href="/u/manage/archives/2008/26407.html" target=_blank><IMG style="WIDTH: 206px; HEIGHT: 159px" height=120 alt=向汶川大地震遇难的同胞志哀 src="/UploadFiles/2008-5/519678495.jpg" width=206 border=0></A></SPAN></DIV> <SCRIPT language=javascript> //document.write('<div id="img" style="position: absolute; left: 100; top: 100; width: 100; height: 100"><a href="#" target="_self"><img width=100 height=100 border=0 src="/images/GoSignUp.jpg"></a></div>\n'); <!-- Begin var xPos = 300; 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; img.style.top = yPos; function changePos() { width = document.body.clientWidth; height = 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 + 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() { img.style.visibility = "visible"; interval = setInterval('changePos()', delay); } function Close() { img.style.visibility="hidden"; } start(); // End --> ; </SCRIPT> |
| 发表评论:

吉林省教师博客精华日志
管理员博客最新日志
| |