css動態(tài)模糊效果

第一步:把下面的腳本插入<head>與</head>之間:
<script>
function on(she){
girl=she
move=setInterval("moving(girl)",50)}
function off(she){
clearInterval(move)
she.filters.blur.strength=2 }
function moving(s){
if (s.filters.blur.strength<110)
s.filters.blur.strength+=5
else clearInterval(move)}
</script>
第二步:把下面的腳本插入<body>與</body>之間:
<p><a href="../index.htm"><img src="c.jpg" width="200" height="138"
style="position:absolute;top:70;left:390;filter:blur(add=1,direction=80,strength=2)"
onMouseOver="on(this)" onMouseOut="off(this)" width="337" height="87" border="0"></a> </p>
相關(guān)文章
驚現(xiàn)學(xué)習(xí)CSS應(yīng)該注意的方法
驚現(xiàn)學(xué)習(xí)CSS應(yīng)該注意的方法...2007-09-09為什么要建立web標(biāo)準(zhǔn)與web標(biāo)準(zhǔn)的好處
為什么要建立web標(biāo)準(zhǔn)與web標(biāo)準(zhǔn)的好處...2007-03-03解決CSS中 display 與 visibility 的區(qū)別
查CSS手冊后發(fā)現(xiàn)了隱藏內(nèi)容原來是有區(qū)別的,一種是保留對象的物理空間,一種是不保留2007-03-03