Java滤镜特效图片应用一例
?牐牐糷tml>
?牐牐糷ead>
?牐牐紅itle>图像效果</title>
?牐牐約cript language=“JavaScript”>
?牐爁unction high(image)//高亮显示
?牐牓焮
?牐爐heobject=image
?牐爃ighlighting=setInterval(“highlightit(theobject)”,50)??
?牐牓爙
?牐爁unction low(image)//模糊显示
?牐牓焮
?牐燾learInterval(highlighting)??
?牐爄mage.filters.alpha.opacity=20
?牐牓爙
?牐爁unction highlightit(cur2)//改变图像光照效果
?牐牓焮
?牐爄f (cur2.filters.alpha.opacity<100)??
?牐燾ur2.filters.alpha.opacity+=5
?牐爀lse if (window.highlighting)??
?牐燾learInterval(highlighting)??
?牐牓爙
?牐牐?/script>
?牐牐?/head>
?牐牐糱ody bgcolor=“#FFFFFF” text=“#000000”>
?牐牐糳iv align=“center”>
?牐牐紁><a href=#> <img border=“0” src=“*.gif” style=“filter:alpha(opacity=40)”
?牐爋nMouseover=“high(this)” onMouseout=“low(this)”></a> </p>
?牐牐紁>当鼠标移到模糊的图上,图像慢慢地变清晰,移走后,图又变模糊。</p>
?牐牐?/div>
?牐牐?/body>
?牐牐?/html>