网页之不断弹射的文字-特效
<style type="text/css">#supertext {
position:absolute;,f` c$UP!Feb
left:0;B!M6_y$c^@*aC
top:0;
visibility:hide;
visibility:hidden;
}#OoQx1U"o0s
</style>
<script language="JavaScript1.2">/K$Y1q)\"H
<!-- 改变下的字体的大小。颜色-->8bVD#j#~&nxiD'`
var thecontent='<h2><font size="2" face="宋体" color="FF0000">欢迎光临七色风网页家园</font></h2>'
var hidetimer='';
<!-- 改变下的弹跳速度-->5A1j7c&Bq-g
var BallSpeed = 20;
var contentWidth;
var contentHeight;K/~m"q3s5]U
var maxBallSpeed = 50;
,\%G5yH#iR'gu
+D@ f8RS j
var xMax;6y:{`(D$V!~.q^Pr;YJ
var yMax;
var xPos = 0;
var yPos = 0;aPVoJQ7f'i
var xDir = 'right';dH y[z9_/N#~
var yDir = 'down';4Ev+d+j$du4B
var superballRunning = true;f L0s?3QFF9@l
var tempBallSpeed;`E1PbZz9N&bH
var currentBallSrc;"K(Z1]3sT'o9O.V
var newXDir;
var newYDir;{T9a? K4A$f+rY
function initializeBall() {v9Q8`@Gc;vL
if (document.all) {.Pn*S$F [$W'dqJ
xMax = document.body.clientWidth
yMax = document.body.clientHeight
document.all("supertext").style.visibility = "visible";Bx"c#a8yTQMW;O
contentWidth=supertext.offsetWidth1am5Ll1r!nB
contentHeight=supertext.offsetHeight6A0B.G$Pn
}
else if (document.layers) {3igyYjjQ+f
xMax = window.innerWidth;
yMax = window.innerHeight;
contentWidth=document.supertext.document.width6d"X'J"R*|TE5j/w
contentHeight=document.supertext.document.heightz v1` SzgkE
document.layers["supertext"].visibility = "show";/C)K^"jU }ti)V1D7^0x%t
}
setTimeout('moveBall()',400);J/]+h]\W;@0d
if (hidetimer!=''),opvz@[Xiq+f'O
setTimeout("hidetext()",hidetimer)
}