<div class="htmlarea"> <textarea id="runcode47829"> <title>行如流水的Js文字背景特效</title> <script>var message="脚本之家是一个专业的收集各类脚本学习资料的网站 jb51.net" var n=0; if (document.all){ document.write('<font size="12px" color="#006666">') for (m=0;m<message.length;m++) document.write('<span id="neonlight" style="font-size:12px">'+message.charAt(m)+'') document.write('') var tempref=document.all.neonlight } else document.write(message) function neon(){ if (n==0){ for (m=0;m<message.length;m++) tempref[m].style.color="#006666" } tempref[n].style.color="#3fadc7" if (n<tempref.length-1) n++ else{ n=0 clearInterval(flashing) setTimeout("beginneon()",1500) return } } function beginneon(){ if (document.all) flashing=setInterval("neon()",23) } beginneon() </script> </textarea><br><input onclick="runEx('runcode47829')" type="button" value="运行代码"> <input onclick="doCopy('runcode47829')" type="button" value="复制代码"> <input onclick="doSave(runcode47829)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</div>