网页之不断弹射的文字-特效
<style type="text/css">#supertext {
position:absolute;k ~vS];_!rs$yQZ
left:0;
top:0;fu*zs%y
visibility:hide;s8bPz3G1B;Sn
visibility:hidden;
}
</style>)}Kn7YG
<script language="JavaScript1.2">F*R%i*\xqC9d3Z
<!-- 改变下的字体的大小。颜色-->5qb)Z ?3[4l#J
var thecontent='<h2><font size="2" face="宋体" color="FF0000">欢迎光临七色风网页家园</font></h2>'G,P~6e&ve(i/l
var hidetimer='';;XCBI(\9L{w
<!-- 改变下的弹跳速度-->
var BallSpeed = 20;.p [U8pgp&g!M
var contentWidth;XrZ}L/m%_$V0_k
var contentHeight;6u`*RX%[W?{[j
var maxBallSpeed = 50;"VNI(K"D1\.j
var xMax;
var yMax;
var xPos = 0;
var yPos = 0;x2^^~T:xY(P
var xDir = 'right';
var yDir = 'down';
var superballRunning = true;
var tempBallSpeed;K4X9@6Sd3S
var currentBallSrc;IU\#L+Bn!ll
var newXDir;
var newYDir;4Odc2r Tac!G
.O3ek6l%NK(R
function initializeBall() {h\ yV|
if (document.all) {
xMax = document.body.clientWidth
yMax = document.body.clientHeight
document.all("supertext").style.visibility = "visible";
contentWidth=supertext.offsetWidth
contentHeight=supertext.offsetHeight
}
else if (document.layers) {iIkf$w#~5K^
xMax = window.innerWidth;d{#S})z;a-s5?|Qc
yMax = window.innerHeight;kM] vBH9V-I
contentWidth=document.supertext.document.width
contentHeight=document.supertext.document.height
document.layers["supertext"].visibility = "show";
}