马赛克效果显示图片
<p><img id=img1 style="filter: ; visibility: visible" src="http://www.toto369.net/txtx/1.jpg"></p><p>加入如下代码到head区域<br><textarea class=yk9 name=source rows=12 cols=100><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></textarea> <br><input onclick=source.select() type=button value=选取代码 name=b2>
<script language=javascript>
<!--
function closeclk() {
another=close();
}
//-->
</script>
<input onclick=closeclk() type=button value=关闭窗口 name=b22> </p>
<p>加入如下代码到body区域<br><textarea class=yk9 id=source1 name=source1 rows=12 cols=100><img id=img1 style="filter: progid:dximagetransform.microsoft.pixelate(maxsquare=50); visibility: hidden" src="1.jpg"></textarea> <br><input onclick=source1.select() type=button value=选取代码 name=b23>
<script language=javascript>
<!--
function closeclk() {
another=close();
}
//-->
</script>
<input onclick=closeclk() type=button value=关闭窗口 name=b222> </p>
<p>3.把<body>改为<body onload="img1.style.visibility='visible';chfilter()"></p> 最近正在学,试试[EM03] 呵呵
正在学
页:
[1]