加入如下代码到head区域<script language=javascript> <!-- var num = 50 function chfilter() { if(num > 2) { num -= 1 img1.style.filter = "progid:dximagetransform.microsoft.pixelate(maxsquare=" + num + ")" settimeout("chfilter()",5) } else { img1.style.filter = "" } } //--> </script>
加入如下代码到body区域<img id=img1 style="filter: progid:dximagetransform.microsoft.pixelate(maxsquare=50); visibility: hidden" src="1.jpg">
3.把<body>改为<body onload="img1.style.visibility='visible';chfilter()">