网页之不断弹射的文字-特效
<style type="text/css">#supertext {K6u#rS,BCa
position:absolute;
left:0;w5C'Q~D_
top:0;
visibility:hide;V!_1p4l;o
visibility:hidden;(f3[U?kz#|3a
}
</style>
<script language="JavaScript1.2">/KmW fBo2` wuM
<!-- 改变下的字体的大小。颜色-->
var thecontent='<h2><font size="2" face="宋体" color="FF0000">欢迎光临七色风网页家园</font></h2>'1~y'HO xYHO*u
var hidetimer='';.AcmWRl/]%n'^5v#O
<!-- 改变下的弹跳速度-->
var BallSpeed = 20;.E4|S/Un(J
var contentWidth;
var contentHeight; |4q]6N[D6g-b
var maxBallSpeed = 50;6I*l3p/w,x[d
h8k/C\7}&t|
j{['G)s_%G F!J7K-[C
var xMax;
var yMax; ` }Yp'Y7S#Z Q:Wp
var xPos = 0;t r6FA-C%s0sZ&U
var yPos = 0;
var xDir = 'right';Pn y}5GGX&xrh`"?
var yDir = 'down';(z$?/O7F&K],~L i b2E
var superballRunning = true;*GxY&ZF/cw
var tempBallSpeed;
var currentBallSrc;
var newXDir;
var newYDir;^,m!{wX"e1p`
function initializeBall() {p W/r6JI2xMK
if (document.all) {!~t2i.Av`+_
xMax = document.body.clientWidth2K/Z y6I,f5HqrQ$qO:l
yMax = document.body.clientHeight
document.all("supertext").style.visibility = "visible";(_-x]+g7g(B*d
contentWidth=supertext.offsetWidth:Zw,r5]/_r0T
contentHeight=supertext.offsetHeight
}.U M!@"m,A
else if (document.layers) {~"Hb}"U A$j
xMax = window.innerWidth;1Eu^/d n)i;U
yMax = window.innerHeight;
contentWidth=document.supertext.document.width^!y3N3wCV
contentHeight=document.supertext.document.height
document.layers["supertext"].visibility = "show";Mt1vT0i
}
setTimeout('moveBall()',400);
if (hidetimer!='')
setTimeout("hidetext()",hidetimer)}&Z8xh"jQ9S:^ Pp
}6](R]0EAl$B&Y)k
,U `{rg1U5ul!o
function moveBall() {U `+A%f[;`hY!s R
if (superballRunning == true) { iX2|Vi~$X:C\
calculatePosition();
if (document.all) {
document.all("supertext").style.left = xPos + document.body.scrollLeft;
document.all("supertext").style.top = yPos + document.body.scrollTop;Kzx$|6v_e6]'Lt8f(f
}
else if (document.layers) {Z0}5]:CJ
document.layers["supertext"].left = xPos + pageXOffset;
document.layers["supertext"].top = yPos + pageYOffset;