Js文字背景行如流水特效

  作者:bea

<title>行如流水的Js文字背景特效</title> <script>var message="是一个专业的收集各类脚本学习资料的网站 " var n=0; if (document.all){ document.write('<font size="12px" color="#006666">') for (m=0;m<message.length;m++) document.write('<span id=


<title>行如流水的Js文字背景特效</title>
<script>var message="是一个专业的收集各类脚本学习资料的网站 "
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)+'</span>')
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>




[Ctrl+A 全选 注:
如需引入外部Js需刷新才能执行]



有用  |  无用

猜你喜欢