网页之不断弹射的文字-特效
<style type="text/css">u)T7Mk'w/D$B:r#supertext {
position:absolute;"pim~d
left:0;j'y3l1K%N(O&H!z
top:0;FG(zc)D7Ts`7?K
visibility:hide;
visibility:hidden;1O7G[R ho@w:y
}
</style>
<script language="JavaScript1.2">Hvh{z;qI*Q o[
<!-- 改变下的字体的大小。颜色-->'n ~+}|%Nh;x5h9g A
var thecontent='<h2><font size="2" face="宋体" color="FF0000">欢迎光临七色风网页家园</font></h2>'I&]1~GY"iwO
var hidetimer='';#o-Z6eO!u1W7zLW8~7WV
<!-- 改变下的弹跳速度-->2~2U%u5t-dvm
var BallSpeed = 20;
var contentWidth; B*X,Qi8dON cz
var contentHeight;
var maxBallSpeed = 50;
m-n q.G6`*eV.g(WH
var xMax;
var yMax;
var xPos = 0;3r,x L[ P?|
var yPos = 0;~Yytyp M~
var xDir = 'right';
var yDir = 'down';BpZ6@n8J9j
var superballRunning = true;,uD%F6s6hzH
var tempBallSpeed;
var currentBallSrc;
var newXDir;}^ z:U`3\e\}0\
var newYDir;
function initializeBall() {
if (document.all) {
xMax = document.body.clientWidth1h X T,C)Of`7G
yMax = document.body.clientHeight
document.all("supertext").style.visibility = "visible";M4E.ngN U&\
contentWidth=supertext.offsetWidthCUOcOa*Rn
contentHeight=supertext.offsetHeight)sOeLB8v8@|\
}p+E)rm/P [,b-I
else if (document.layers) {
xMax = window.innerWidth;LmoF"n,HV)D
yMax = window.innerHeight;