当前位置: 代码网 > it编程>网页制作>Css > css动态模糊效果

css动态模糊效果

2024年05月18日 Css 我要评论
实例效果:请把鼠标放上去看看 第一步:把下面的脚本插入<head>与</head>之间: <script>function on(she){girl=shemov
实例效果:请把鼠标放上去看看

 

 

 

 

第一步:把下面的脚本插入<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>

(0)

相关文章:

版权声明:本文内容由互联网用户贡献,该文观点仅代表作者本人。本站仅提供信息存储服务,不拥有所有权,不承担相关法律责任。 如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 2386932994@qq.com 举报,一经查实将立刻删除。

发表评论

验证码:
Copyright © 2017-2025  代码网 保留所有权利. 粤ICP备2024248653号
站长QQ:2386932994 | 联系邮箱:2386932994@qq.com