代碼如下:
1、以下代碼放在html的<body></body>之間[適當(dāng)?shù)奈恢胅:
<script language=javascript>
<!--
done = 0;
step = 4
function anim(yp,yk)
{
if(document.layers) document.layers[napis].top=yp;
else document.all[napis].style.top=yp;
if(yp>yk) step = -4
if(yp<60) step = 4
settimeout('anim('+(yp+step)+','+yk+')', 35);
}
function start()
{
if(done) return
done = 1;
if(navigator.appname==netscape) {
document.napis.left=innerwidth/2 - 145;
anim(60,innerheight - 60)
}
else {
napis.style.left=11;
anim(60,document.body.offsetheight - 60)
}
}
//-->
</script>
<div id=napis style=position: absolute;top: -50;color: #000000;font-family:宋體;font-size:9pt;>
<p>
謝謝您的使用!
</p></div>
<script language=javascript>
<!--
settimeout('start()',10);
//-->
</script>