请javescript脚本语言高手来解释下,追送分,谢谢

来源:百度知道 编辑:UC知道 时间:2024/06/07 02:25:48
<style>

<!--

#glowtext{

filter:glow(color=blue,strength=2);

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 (glo

<style>

<!--

#glowtext{

filter:glow(color=blue,strength=2);

width:100%;

}

-->

</style>

这是css样式 不是javascript
===================================

这个整个的都是,通过控制CSS来达到文字的闪烁。

从你的面页一加载完就调用了startglowing 方法开始实现文字闪烁,