<title>模糊文字效果</title><html>
<head>
<title>javascriptboy</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<script>
<!--
var thissize=10
var textfont="tahoma"
var textcolor= new Array()
textcolor[0]="FFFFFF"
textcolor[1]="CCCCCC"
textcolor[2]="999999"
textcolor[3]="666666"
textcolor[4]="333333"
textcolor[5]="000000"
var message = new Array()
message[0]="javascriptBOY"
message[1]="javascript AND DYNAMIC HTML"
message[2]="WWW.HOT4.ORG/JAVA"
message[3]="WELCOME TO JAVA HOME" [转自:711网络工作室 http://www.tc711.com]
var i_blurstrength=20
var i_message=0
var i_textcolor=0 [转自:711网络工作室 http://www.tc711.com]
function blurtext() {
if(document.all) {
if (i_blurstrength >=-2) {
if (i_textcolor >=textcolor.length-1) {i_textcolor=textcolor.length-1}
blurthis.innerHTML="<span id='blurpit1' style='position:absolute;visibility:visible;width:600px; top:5px;left:5px;filter:blur(add=0,strength="+i_blurstrength+",direction=90);font-family:"+textfont+";font-size:"+thissize+"pt;color:"+textcolor[i_textcolor]+"'>"+message[i_message]+"</span>";
document.close()
i_blurstrength=i_blurstrength-2
i_textcolor++
var timer=setTimeout("blurtext()",50)
}
else {
if (i_textcolor >=textcolor.length-1) {i_textcolor=textcolor.length-1}
blurthis.innerHTML="<span id='blurit1' style='position:absolute;visibility:visible;width:600px; top:5px;left:5px;filter:blendTrans(duration=4.2);font-family:"+textfont+";font-size:"+thissize+"pt;color:000000'>"+message[i_message]+"</span>";
i_message++
if (i_message>=message.length){i_message=0}
i_blurstrength=20
i_textcolor=0
clearTimeout(timer)
var timer=setTimeout("blurtext()",2000)
}
}
}
window.onload=blurtext
//-->
</script>
<div id=mainbod
style="LEFT: 10px; VISIBILITY: visible; POSITION: absolute; TOP: 180px"></div>
<div id=blurthis
style="VISIBILITY: visible; POSITION: absolute"></div>
</body>
</html>