网页之不断弹射的文字-特效
<style type="text/css">#_T-C8mg#@#supertext {
position:absolute;
left:0;(M8h5z9tj7|"Y
top:0;#TI-NV Fi&\)f
visibility:hide;
visibility:hidden;7~?4n2l!}.M'D }U
}
</style>
<script language="JavaScript1.2">
<!-- 改变下的字体的大小。颜色-->
var thecontent='<h2><font size="2" face="宋体" color="FF0000">欢迎光临七色风网页家园</font></h2>'t_~?bf
var hidetimer='';c} ]4gs*Gs5\Z
<!-- 改变下的弹跳速度-->
var BallSpeed = 20;rM1@zE)Y7x
var contentWidth;
var contentHeight;
var maxBallSpeed = 50;5f`UX-j_^HC
? ?RF'Uo-r~L~
(h.AIi*|:wo3e5?nX
var xMax;
var yMax;$Y6rF\$WC$P*J
var xPos = 0;A } b7k;@B^b
var yPos = 0;x*x{/P"mI8J0UB
var xDir = 'right';Q2NB.s~'Y_)B u
var yDir = 'down';
var superballRunning = true;&i-{D&tBT+JMZ2S
var tempBallSpeed;e+CG7i iIv5|
var currentBallSrc;!c#^~;c]
var newXDir;:U$M)[b0j G
var newYDir;
function initializeBall() {@$r)HL8C/@ u
if (document.all) {
xMax = document.body.clientWidth:^;`q%vRn!s
yMax = document.body.clientHeight
document.all("supertext").style.visibility = "visible";AYDC Bw&x
contentWidth=supertext.offsetWidth5` C};D#nVJd!ah
contentHeight=supertext.offsetHeight#q:MA|:G D{,L*@
}lkBJ#aV"G
else if (document.layers) {
xMax = window.innerWidth;:CiOL6fIyd
yMax = window.innerHeight;R.reW_f
contentWidth=document.supertext.document.width
contentHeight=document.supertext.document.height
document.layers["supertext"].visibility = "show";.Li M)W*[,gw8\$P
}g0bD,OI ?
setTimeout('moveBall()',400);