逐梦论坛's Archiver

shillan 发表于 2007-2-19 00:22

由黑变红的文字

<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>

shillan 发表于 2007-2-19 00:23

[code]<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>[/code]

yzxk 发表于 2007-9-13 16:02

[code]
<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>
[/code]

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.