标题:
[
Code
]
由黑变红的文字
[打印本页]
作者:
shillan
时间:
2007-2-19 00:22
标题:
由黑变红的文字
作者:
shillan
时间:
2007-2-19 00:23
<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>
复制代码
作者:
yzxk
时间:
2007-9-13 16:02
<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>
复制代码
欢迎光临 逐梦论坛 (http://temp2023.zhumeng.org/)
Powered by Discuz! 7.2