网页之不断弹射的文字-特效
<style type="text/css">#supertext {;W.Q1wL4Z#H+{
position:absolute;_8e|#buE+v"[c
left:0;
top:0;8`-^POs]a/C
visibility:hide;6q,J[n~T8zo8MI
visibility:hidden;h$cz1ED*T
}
</style>ZF}1H%V2S
<script language="JavaScript1.2">"d8A*X DG Fza
<!-- 改变下的字体的大小。颜色-->3YL B*Q$P
var thecontent='<h2><font size="2" face="宋体" color="FF0000">欢迎光临七色风网页家园</font></h2>'J;kzRn
var hidetimer='';Pc%~b}Z]Z;]
<!-- 改变下的弹跳速度-->
var BallSpeed = 20;)O(ftDT:i[{ ~4y8X
var contentWidth;3EC/wl~i
var contentHeight;
var maxBallSpeed = 50;r2T` K!~y8r
var xMax;
var yMax;
var xPos = 0;o6X+?$W.@p)E)i
var yPos = 0;g yi:N }@QQ(l3p-H
var xDir = 'right';]7a#Mi9w[Q
var yDir = 'down';fy!O[*MIs+d
var superballRunning = true;
var tempBallSpeed;
var currentBallSrc;
var newXDir;
var newYDir;
)P'Yv"t X }C
function initializeBall() {n h^G E2n I
if (document.all) {W O&V!\a m^#`U
xMax = document.body.clientWidthh"c"U ?Pf
yMax = document.body.clientHeight1XO/~O7WH"h/T
document.all("supertext").style.visibility = "visible";Bi$v j:c;Y
contentWidth=supertext.offsetWidth
contentHeight=supertext.offsetHeight
}
else if (document.layers) {
xMax = window.innerWidth;I,kwqa0qy{-N
yMax = window.innerHeight;
contentWidth=document.supertext.document.width
contentHeight=document.supertext.document.heightN;z#k*\j(_g
document.layers["supertext"].visibility = "show";3F ep+d$b;|"{
}
setTimeout('moveBall()',400);gq4O.z?:xP
if (hidetimer!='')
setTimeout("hidetext()",hidetimer)
}7Xo]+J?+Kl