有什么问题请到<a href='/bbs/forums.php?fid=21'>论坛</a>中发表<br>
<!-- http://www.webjx.com/ -->
<!-- http://bbs.webjx.com/ -->
<!--完整HTML代码如下:-->
<html>
<head>
<title>网页教学网-特效代码->>动感文字特效展示</title>
</head>
<body>
<script language="JavaScript1.2">
var message="欢迎光临网页教学网 www.webjx.com"
var neonbasecolor="gray"
var neontextcolor="000000"
var flashspeed=100
var n=0
if (document.all){
document.write('<font size="2" face="宋体" color="'+neonbasecolor+'">')
for (m=0;m<message.length;m++)
document.write('<span id="neonlight">'+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=neonbasecolor
}
tempref[n].style.color=neontextcolor
if (n<tempref.length-1)
n++
else{
n=0
clearInterval(flashing)
setTimeout("beginneon()",1500)
return
}
}
function beginneon(){
if (document.all)
flashing=setInterval("neon()",flashspeed)
}
beginneon()
</script>
</body>
</html>
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]