<div class="htmlarea"> <textarea id="runcode92533"> <style> *{border:1px solid blue} a{display:block;font-size:10px}; </style> <div id="d" style="width:300px;height:200px;"> <a href="javascript:">1,河北,</a> <a href="javascript:">2,辽宁 </a> <a href="javascript:">3,山东,</a> <a href="javascript:">4,河南</a> </div> <script> var t=setInterval(myfunc,1000) function myfunc(){ d.appendChild(d.firstChild)} d.onmouseover=function(){clearInterval(t)} d.onmouseout=function(){t=setInterval(myfunc,1000)} </script> </textarea><br><input onclick="runEx('runcode92533')" type="button" value="运行代码"> <input onclick="doCopy('runcode92533')" type="button" value="复制代码"> <input onclick="doSave(runcode92533)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</div> <br>具体美化,大家可以自己做下。