112、文字阴影的抖动

112、文字阴影的抖动

脚本说明:

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

<style>

<!--

#glowtext{

filter:glow(color=FFaa00,strength=6);

width:100%;

}

-->

</style>

<script language="JavaScript1.2">

function glowit(which){

if (document.all.glowtext[which].filters[0].strength==3)

document.all.glowtext[which].filters[0].strength=2

else

document.all.glowtext[which].filters[0].strength=3

}

 

function glowit2(which){

if (document.all.glowtext.filters[0].strength==3)

document.all.glowtext.filters[0].strength=2

else

document.all.glowtext.filters[0].strength=3

}

 

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">阴影在抖动</span>

 

Write a comment

Comments: 0