- <script>var message="逐梦论坛祝大家新春快乐!猪年好运!"
- var n=0;
- if (document.all){
- document.write('<font size="12px" color="red">')
- for (m=0;m<message.length;m++)
- document.write('<span id="neonlight" style="font-size:12px">'+message.charat(m)+'</span>')
- document.write('</font>')
- 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="#000000"
- }
- tempref[n].style.color="red"
- if (n<tempref.length-1)
- n++
- else{
- n=0
- clearinterval(flashing)
- settimeout("beginneon()",1000)
- return
- }
- }
- function beginneon(){
- if (document.all)
- flashing=setinterval("neon()",50)
- }
- beginneon()
- </script>
复制代码 |