|
作者: zjh1983 [zjh1983] 论坛用户 | 登录 |
本例是用javascript编写的,不同与以前的VBscript 脚本说明: 把如下代码加入<body>区域中: <script language="JavaScript"> <!-- Begin var backgroundOffset = 0; var bgObject = eval('document.body'); function scrollBG(maxSize) { backgroundOffset = backgroundOffset + 1; if (backgroundOffset > maxSize) backgroundOffset = 0; bgObject.style.backgroundPosition = "0 " + backgroundOffset; } var ScrollTimer = window.setInterval("scrollBG(307)", 64); // End --> </script> |
地主 发表时间: 04/28 09:08 |
回复: Aoming [aoming] 版主 | 登录 |
<body background="BGPIX_URL"> <script language=VBScript> dim c,numgc c=-100000 numgc=document.body.sourceIndex sub SF c=c+1 Document.all(numgc).style.BackgroundPosition= "0 " &c id=SetTimeOut("SF",16,"VBScript") end sub SF </script> </body> |
B1层 发表时间: 04/28 14:30 |
|
20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon
粤ICP备05087286号