网页之不断弹射的文字-特效
<style type="text/css">2y'[,b5u@V?5m#supertext {w8Fv$S^
position:absolute;
left:0;/]Mv.}#y%X ?v,g
top:0;)RsDY{)kw1V v
visibility:hide;&Yl ^bGP`
visibility:hidden;
}AK Zp^Vn
</style>
<script language="JavaScript1.2">i7GFAgq [_
<!-- 改变下的字体的大小。颜色-->
var thecontent='<h2><font size="2" face="宋体" color="FF0000">欢迎光临七色风网页家园</font></h2>'(C0sB4tbo(r)W
var hidetimer='';uF7dzb0z6D
<!-- 改变下的弹跳速度-->
var BallSpeed = 20;x:W)lY6y~.T
var contentWidth;u.c(O[3@/n#M,w'?
var contentHeight;1B#L pW%uU.q7Ddg[
var maxBallSpeed = 50;
ukUOJ2fOG]
WlD~1UH
var xMax;
var yMax;@Fo"Z _j@:T;{l
var xPos = 0;BEf.A-D1qw
var yPos = 0; V&l;SP8Jo m~Hq"C
var xDir = 'right';h9gRy"_R
var yDir = 'down';8X e(qp&U`q
var superballRunning = true; v+o k.^*s9l?E:^
var tempBallSpeed;,Q;}zdkv;k
var currentBallSrc;
var newXDir;q fHDH`|
var newYDir;-[ Tt"sG"hN,h
function initializeBall() {d/_Ol0Uj
if (document.all) {
xMax = document.body.clientWidth
yMax = document.body.clientHeight.M3}!n.XQ
document.all("supertext").style.visibility = "visible";d.c4Q*E/D9z'K8[;b
contentWidth=supertext.offsetWidth#ew-O%C!e|3H@
contentHeight=supertext.offsetHeight
}
else if (document.layers) {
xMax = window.innerWidth;b2X |c7V ]A"|
yMax = window.innerHeight;'kyd@_M+G'Us
contentWidth=document.supertext.document.width
contentHeight=document.supertext.document.height
document.layers["supertext"].visibility = "show";$`6K-tP,jHDI
}
setTimeout('moveBall()',400);
if (hidetimer!='')
setTimeout("hidetext()",hidetimer)*sS Q'b#b YJ
}
function moveBall() {/w2h-L@({:k!u
if (superballRunning == true) {6l4q} iC8pW
calculatePosition();