滚动变色的文字
<script>var message="欢迎来到中画网"var n=0;
if (document.all){
document.write('<font size="12px" color="#00ff00">')
for (m=0;m<message.length;m++)
document.write('<span id="neonlight" style="font-size:28px">'+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.style.color="#006666"
}
tempref.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><br><br><script>var message=\"欢迎来到中画网\"
var n=0;
if (document.all){
document.write('<font size=\"12px\" color=\"#00ff00\">')
for (m=0;m<message.length;m++)
document.write('<span id=\"neonlight\" style=\"font-size:28px\">'+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.style.color=\"#006666\"
}
tempref.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>
[ 本帖最后由 祝福 于 2007-12-14 18:18 编辑 ] 这个有用!以后做帖子好用啊!感谢祝福老师啊! 我就跟在后面收藏就行了 会不会使用,只要是好的我都收藏了。谢谢。 学习
。 <script>var message=\"欢迎来到中画网\" var n=0; if (document.all){ document.write(\'<font size=\"12px\" color=\"#00ff00\">\') for (m=0;m<message.length;m++) document.write(\'<span id=\"neonlight\" style=\"font-size:28px\">\'+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.style.color=\"#006666\" } tempref.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> <script>var message=\"欢迎来到中画网\" var n=0; if (document.all){ document.write(\'<font size=\"12px\" color=\"#00ff00\">\') for (m=0;m<message.length;m++) document.write(\'<span id=\"neonlight\" style=\"font-size:28px\">\'+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.style.color=\"#006666\" } tempref.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>
怎么不显示呢?请问老师
[ 本帖最后由 faruyun 于 2008-4-10 18:10 编辑 ] 谢谢,很有用.收藏了 <script>var message=\"欢迎来到中画网\" var n=0; if (document.all){ document.write(\'<font size=\"12px\" color=\"#00ff00\">\') for (m=0;m<message.length;m++) document.write(\'<span id=\"neonlight\" style=\"font-size:28px\">\'+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.style.color=\"#006666\" } tempref.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>
[ 本帖最后由 碎影舞斜阳 于 2008-4-16 19:40 编辑 ]