ljl 发表于 2007-4-27 11:14:26

***页面特效***在网页中添加上上下滚动的文字(当然也可以是链接)

把下列代码加到网页的<body></body>标签之间 从google下载我的照片管理软件
要完成此效果把如下代码加入到<body>区域中

<script language="javascript">
<!--
done = 0;
step = 1
function anim(yp,yk)
{
if(document.layers) document.layers["napis"].top=yp;
elsedocument.all["napis"].style.top=yp;
if(yp>yk) step = -1
if(yp<60) step = 1

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>
<a href=http://typhoon.500.to>升降文字特效</a>
</p></div>
<script language="javascript">
<!--
settimeout('start()',10);
//-->
</script>
      










--------------------------------------

http://www.huoyue.com.cn 活跃网,活跃人群的论坛,访问活跃网,将给您带来意想不到的收获,还可以免费为您开论坛,让您免费拥有与朋友、网友交流的论坛。你是年轻人吗?你活跃你就上!
页: [1]
查看完整版本: ***页面特效***在网页中添加上上下滚动的文字(当然也可以是链接)