Home  >  Article  >  Web Front-end  >  Js text background line like running water special effect_text special effect

Js text background line like running water special effect_text special effect

WBOY
WBOYOriginal
2016-05-16 18:44:112222browse

[Ctrl A select all Note: If you need to introduce external Js, you need to refresh to execute
]<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>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn