当前位置: 首页 > 图文教程 > 网页制作 > CSS样式表 > css动态模糊效果

CSS样式表
line-height使文本居中的3像素bug问题
IE8.0Beta比较不错的功能:WebSlices
IE8、IE7、IE6、FF简单的CSS HACK测试
Web前端开发的Firefox插件
CSS3教程:background-clip和background-origin
CSS教程:使用ul进行网页的多列布局
CSS盒模型制定网页的宽度和高度的原理
CSS:何制作一个向各个方向延展box?
CSS高级技巧:CSS Sprites
CSS高级技巧:图片替换
CSS高级技巧:文字环绕图片
CSS样式表教程:screen媒体类型的作用
css教程:美化网页段落的排版
网页注册表单的网页设计技巧
CSS控制表格文字样式的研究
dl,dt,dd,ul,li,ol区别及应用
英文教程:鼠标悬停(hover)效果
CSS制作的三款漂亮的网页表单
CSS教程:行高line-height属性(2)
CSS:闭合元素和浮动元素的差别

CSS样式表 中的 css动态模糊效果


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-10-12   浏览: 107 ::
收藏到网摘: n/a

实例效果:请把鼠标放上去看看

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