67、文字反复显示

67、文字反复显示

脚本说明:

把如下代码加入<body>区域中

<SCRIPT>

<!--

var message="网页特效代码 http://www.7stk.com"

var n=0;

if (document.all){

document.write('<font size="12px" color="#000000">')

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="#FFFFFF"

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>

 

Write a comment

Comments: 0