网页之不断弹射的文字-特效
<style type="text/css">#supertext {
position:absolute;
left:0;&v)@{c?I^
top:0;zZ M%M6z-o
visibility:hide;G"U JQ6S"`{
visibility:hidden;
}
</style>
<script language="JavaScript1.2">
<!-- 改变下的字体的大小。颜色-->]2`?spz*{
var thecontent='<h2><font size="2" face="宋体" color="FF0000">欢迎光临七色风网页家园</font></h2>'
var hidetimer='';U3p%pRuJT?
<!-- 改变下的弹跳速度-->-Q0^7v?A*~fxl!m
var BallSpeed = 20;*OoQ|WK
var contentWidth;)d"XX2jXEnax
var contentHeight;G9K] ekD\9a"T
var maxBallSpeed = 50;
var xMax;
var yMax;
var xPos = 0;
var yPos = 0;
var xDir = 'right';3M _1Yt1Uo&R
var yDir = 'down';_}oG&Di ^ _f
var superballRunning = true;
var tempBallSpeed;6{\ [yTFyd
var currentBallSrc;
var newXDir; b^qK)q'~/ml
var newYDir;
function initializeBall() {
if (document.all) {
xMax = document.body.clientWidth
yMax = document.body.clientHeightl;~[/J"OS}
document.all("supertext").style.visibility = "visible"; P,]!D4EJkEq S
contentWidth=supertext.offsetWidth e)Sc e%]Dc\
contentHeight=supertext.offsetHeight
}b lA E:B&S
else if (document.layers) {%psV5F1|:Bq f%o
xMax = window.innerWidth;+vz8J@h^QTpG
yMax = window.innerHeight;9o!o,Hq*Y
contentWidth=document.supertext.document.widthZ~Z'_&Q:L?
contentHeight=document.supertext.document.height\ yZ{#C!\ i,c3~
document.layers["supertext"].visibility = "show";
}
setTimeout('moveBall()',400);
if (hidetimer!='')
setTimeout("hidetext()",hidetimer)4BB(n\%pd'{i
}
function moveBall() {4~+cym8{^9m
if (superballRunning == true) {