网页之不断弹射的文字-特效
<style type="text/css">4k-a1km|9k%t#supertext {
position:absolute;
left:0; hA;d6qJ!V5P
top:0;
visibility:hide;
visibility:hidden;
}T w5v6l `#w/I;UC\
</style>
<script language="JavaScript1.2">/w0t cd#r
<!-- 改变下的字体的大小。颜色-->'v H%`!C5h"b P
var thecontent='<h2><font size="2" face="宋体" color="FF0000">欢迎光临七色风网页家园</font></h2>'
var hidetimer='';
<!-- 改变下的弹跳速度-->
var BallSpeed = 20;!h)X;~-K-lbV
var contentWidth;!Z;V#S]yU}
var contentHeight;
var maxBallSpeed = 50;:RY-g]O-N:w8~4}g/k"fK'f
I4X%Ea)hy Ce
var xMax;
var yMax;
var xPos = 0;
var yPos = 0;
var xDir = 'right';
var yDir = 'down';~/\9jY4rSN%I8~_
var superballRunning = true;@e1M;ApF6F~8f
var tempBallSpeed; Wtj9z0z
var currentBallSrc;
var newXDir;
var newYDir;
function initializeBall() {5[#hfi lC:E O
if (document.all) {
xMax = document.body.clientWidth
yMax = document.body.clientHeight
document.all("supertext").style.visibility = "visible";*q*L4r7W&y+b9e]:G:o
contentWidth=supertext.offsetWidth
contentHeight=supertext.offsetHeight
}4\Zp$Os1B
else if (document.layers) {
xMax = window.innerWidth;wsrF`:K
yMax = window.innerHeight;
contentWidth=document.supertext.document.width
contentHeight=document.supertext.document.heightGE `B}$D#h
document.layers["supertext"].visibility = "show";:w { BP8p4F&xx
}
setTimeout('moveBall()',400);
if (hidetimer!='')
setTimeout("hidetext()",hidetimer)
}
function moveBall() {
if (superballRunning == true) {
calculatePosition();!Gdu6at_G
if (document.all) {0Sy'agI&P6g*h7\ D
document.all("supertext").style.left = xPos + document.body.scrollLeft;