简单的JS滤镜特效

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body >
<!--把如下代码加入<body>区域中--><SCRIPT  LANGUAGE=javascript>
 function cc(){
     document.getElementById("image1").filters[0].apply();
    
       document.getElementById("image1").style.visibility = "";
    document.getElementById("image1").filters[0].transition = 23;
     document.getElementById("image1").filters[0].play(2.0);
  }
  window.onload=cc;
</SCRIPT>


<img src="images/http_imgload.jpg" width="500" height="323" border=5 id="image1"
style="visibility:hidden; filter:revealTrans(Duration=2.0, Transition=23);" tppabs="http://www.chinaz.com/1.gif" />
</body>
</html>

原文地址:https://www.cnblogs.com/yeye518/p/2231735.html