网页之不断弹射的文字-特效
<style type="text/css">#supertext {
position:absolute;%aXzC.r~-a4[
left:0;
top:0;
visibility:hide;
visibility:hidden;
}5fls7w*kc:@ D8~
</style>
<script language="JavaScript1.2">
<!-- 改变下的字体的大小。颜色-->o&h#|r7K z^{
var thecontent='<h2><font size="2" face="宋体" color="FF0000">欢迎光临七色风网页家园</font></h2>'
var hidetimer='';OaW he,u
<!-- 改变下的弹跳速度-->
var BallSpeed = 20;_%i)n_P0J
var contentWidth;
var contentHeight;0Z2W]&}(iO(v
var maxBallSpeed = 50;
!C*VX\rJY k
var xMax;
var yMax;#x#v2[[0p:P k$g1Z
var xPos = 0;
var yPos = 0;G#HBfo+``5@dH
var xDir = 'right';/o:b lm*oT2e9du
var yDir = 'down';|'mH(TH
var superballRunning = true;-W{k ?$_4|$k}Z
var tempBallSpeed;8]G2urf
var currentBallSrc;'[ dqzB:A;W
var newXDir;R7]n]Xyu"~
var newYDir;
function initializeBall() {
if (document.all) {:ft&D'~Y-n M
xMax = document.body.clientWidth(^r ` atI(PH W
yMax = document.body.clientHeight
document.all("supertext").style.visibility = "visible";-yd%G%v-~yR
contentWidth=supertext.offsetWidth
contentHeight=supertext.offsetHeight
}
else if (document.layers) {
xMax = window.innerWidth;
yMax = window.innerHeight;
contentWidth=document.supertext.document.width0_me^MwS&u6~i(J
contentHeight=document.supertext.document.heightV ?+XX p
document.layers["supertext"].visibility = "show";
}1E!l5R V\4xe)y
setTimeout('moveBall()',400);,q.fL"n.wn{-B
if (hidetimer!='')
setTimeout("hidetext()",hidetimer)
}"T$~'E)n1q&pC K