<html>
<head>
<script language="JavaScript">
function applyFilter(){
myDiv.style.filter = "progid:DXImageTransform.Microsoft.shadow()
progid:DXImageTransform.Microsoft.motionblur();"
myDiv.filters.item('DXImageTransform.Microsoft.shadow').direction=4
myDiv.filters.item('DXImageTransform.Microsoft.motionblur').enabled=true;
alert(document.all.myDiv.filters.length);
}
</script>
</head>
<body>
<img id="myDiv" src="yourimage.gif">
<br>
<br>
<br>
<br>
<button onclick="applyFilter();">Apply Filter</button>
</body>
</html>
|