闪动的文字效果

 

点击这里看效果


在 <head> 与 </head> 之间加入:

<STYLE type=text/css>#glowtext {
FILTER: glow(color=blue,strength=5); WIDTH: 100%
}<!在这里改变颜色>
</STYLE>

<SCRIPT language=JavaScript1.2>
function glowit(which){
if (document.all.glowtext[which].filters[0].strength==2)
document.all.glowtext[which].filters[0].strength=1
else
document.all.glowtext[which].filters[0].strength=2
}
function glowit2(which){
if (document.all.glowtext.filters[0].strength==2)
document.all.glowtext.filters[0].strength=1
else
document.all.glowtext.filters[0].strength=2
}
function startglowing(){
if (document.all.glowtext&&glowtext.length){
for (i=0;i<glowtext.length;i++)
eval('setInterval("glowit('+i+')",150)')
}
else if (glowtext)
setInterval("glowit2(0)",150)
}
if (document.all)
window.onload=startglowing
</SCRIPT>

把文字代码加入颜色部分:

<SPAN id=glowtext>一迪网络JAVA下载区</SPAN>