<div class="htmlarea"> <textarea id="runcode83494"> <title>上下跳动的文本</title> <div id="napis" style="position: absolute; top: 159px; width: 400px; height: 78px; left: 215px"> <font size="5"><font face="华文行楷"> <b>脚本之家</b> </font></font> </div> </textarea> <br> <input onclick="runEx('runcode83494')" type="button" value="运行代码"><input onclick="doCopy('runcode83494')" type="button" value="复制代码"><input onclick="doSave(runcode83494)" type="button" value="保存代码"> <a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank"> </a>[Ctrl A 全选 注:</div>如需引入外部Js需刷新才能执行<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+')', 10); } 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=280; anim(60,document.body.offsetHeight - 60) } } //--> </script>]<script language="JavaScript"> <!-- setTimeout('start()',10); //--> </script>