网页之不断弹射的文字-特效
<style type="text/css">#supertext {
position:absolute;
left:0;3kgxB'n;O[
top:0;YVak@Ti5m/AvG
visibility:hide;o'XbL5uc)@^vh$\g
visibility:hidden;
}
</style>tPgy ck1G
<script language="JavaScript1.2">#h3sf5qd
<!-- 改变下的字体的大小。颜色-->
var thecontent='<h2><font size="2" face="宋体" color="FF0000">欢迎光临七色风网页家园</font></h2>'
var hidetimer=''; p Y`W/byC
<!-- 改变下的弹跳速度-->
var BallSpeed = 20;
var contentWidth;)s}C4T;pjS-r
var contentHeight;'NDN6]U1^;i3L
var maxBallSpeed = 50;
,O~*caqHLZkdp
var xMax;
var yMax;.c(P;Z9\iVB
var xPos = 0; fKp#r SP
var yPos = 0;I[l0OY0h9j
var xDir = 'right';
var yDir = 'down';
var superballRunning = true;`eLW+Dg#[5Z
var tempBallSpeed;
var currentBallSrc;
var newXDir;)]'?;Cy8~Dtc}"h
var newYDir;1HR7^1O3o`i7q
9d+FxGoT
function initializeBall() {6s5^%xU3c'i
if (document.all) {
xMax = document.body.clientWidth
yMax = document.body.clientHeight/l@4_"p$Z]3H^
document.all("supertext").style.visibility = "visible";v-d.G5q'c&J6t KIU
contentWidth=supertext.offsetWidth:}0Al AX6[
contentHeight=supertext.offsetHeight
},|-j&J;r0b5I:K7C
else if (document.layers) {
xMax = window.innerWidth;T N2F.R7])B C!{M9jV
yMax = window.innerHeight;5Bac;wCR2@*L
contentWidth=document.supertext.document.width|8V7[8Si#g+\#nt
contentHeight=document.supertext.document.height
document.layers["supertext"].visibility = "show";]5@t!h~0A5d yR&S
},td9d [F&|3\ z
setTimeout('moveBall()',400);Y{}3[3[)H3jxW
if (hidetimer!='')2N,{%GR+uxH
setTimeout("hidetext()",hidetimer)
}
function moveBall() {