天天看點

打字效果代碼

 <script language="JavaScript" type="text/javascript">

document.writeln("<SCRIPT>");

document.writeln("var message=\"懶人圖庫 * 學會偷懶,并懶出境界是提高工作效率最有效的方法!\"");

document.writeln("var n=0;");

document.writeln("if (document.all){");

document.writeln("document.write(\'<font size=\"12px\" color=\"#EFEFEF\">\')");

document.writeln("for (m=0;m<message.length;m++)");

document.writeln("document.write(\'<span id=\"neonlight\" style=\"font-size:12px\">\'+message.charAt(m)+\'<\/span>\')");

document.writeln("document.write(\'<\/font>\')");

document.writeln("var tempref=document.all.neonlight");

document.writeln("}");

document.writeln("else");

document.writeln("document.write(message)");

document.writeln("function neon(){");

document.writeln("if (n==0){");

document.writeln("tempref[m].style.color=\"#ffffff\"");

document.writeln("tempref[n].style.color=\"#d50000\"");

document.writeln("if (n<tempref.length-1)");

document.writeln("n++");

document.writeln("else{");

document.writeln("n=0");

document.writeln("clearInterval(flashing)");

document.writeln("setTimeout(\"beginneon()\",2500)");

document.writeln("return");

document.writeln("function beginneon(){");

document.writeln("if (document.all)");

document.writeln("flashing=setInterval(\"neon()\",30)");

document.writeln("beginneon()");

document.writeln("<\/SCRIPT>");

</script>

<p>查找更多代碼,請通路:<a href="http://www.lanrentuku.com" target="_blank">懶人圖庫</a></p>

繼續閱讀