网页之不断弹射的文字-特效
<style type="text/css">#supertext {SH&_7mfP
position:absolute;c CV:n&|C T
left:0;
top:0;
visibility:hide;
visibility:hidden;
}
</style>
<script language="JavaScript1.2">
<!-- 改变下的字体的大小。颜色-->p$K;H'W-|Cnq'sS:[v
var thecontent='<h2><font size="2" face="宋体" color="FF0000">欢迎光临七色风网页家园</font></h2>'
var hidetimer='';3Z,d,s%lTA
<!-- 改变下的弹跳速度-->
var BallSpeed = 20;
var contentWidth;jr/|p Ia
var contentHeight;
var maxBallSpeed = 50;
?,a(Y?J{E'E/J
var xMax;
var yMax;
var xPos = 0;
var yPos = 0;2k,_;gH"O2p
var xDir = 'right';
var yDir = 'down';
var superballRunning = true;!m`Z+R*`? `*FQ
var tempBallSpeed;| y9k0l-vd}/~0bo
var currentBallSrc;
var newXDir;OpT+]rO}p%Y
var newYDir;C y{X f(S
function initializeBall() {tLB-SYr cF)s9y
if (document.all) {)E'M2eB'`7G
xMax = document.body.clientWidth
yMax = document.body.clientHeight
document.all("supertext").style.visibility = "visible";-f/b8[1~ W8ZisJ2P
contentWidth=supertext.offsetWidth`6y.c7M3h;E
contentHeight=supertext.offsetHeight
}
else if (document.layers) {&{)q2E$|?.C g3U
xMax = window.innerWidth;
yMax = window.innerHeight;6SG\8Bz-L8VA.z
contentWidth=document.supertext.document.width1y"g6hK])s7qY'S!}_C
contentHeight=document.supertext.document.height
document.layers["supertext"].visibility = "show";5@bu)}*mu6w4s
};M$@/A v.y:r_E}x
setTimeout('moveBall()',400);
if (hidetimer!='')o~)lyl bC D+[
setTimeout("hidetext()",hidetimer))K5TA$e WaC
}
E7E/J3~+r#g
function moveBall() {4PTn){1gK
if (superballRunning == true) {T~B F2n-vS9o
calculatePosition();
if (document.all) {