'filters' Example : filters « Javascript Collections « JavaScript DHTML






'filters' Example

    
<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
    alert(document.all.myDiv.filters.length); 
} 
</script>
</head>
<body>
<img id="myDiv" src="http://www.java2s.com/style/logo.png">
<br>
<br>
<br>
<br>
<button onclick="applyFilter();">Apply Filter</button>
</body>
</html>

    
      
      








Related examples in the same category