Here is your reference:
http://msdn.microsoft.com/en-us/library/ms532847(VS.85).aspx
If you want to use -ms-filter, use these
Notice, that the css filter must be defined at the item either as an inline style attribute or by a class, else the filters.item property is inaccessible!!
Some example code:
<style>
.macska
{
opacity:1;
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=100)";
filter:alpha(opacity=100);
}
</style>
<div id="xxx" style="background-color: #CCC; filter:progid:DXImageTransform.Microsoft.Alpha(opacity=100)" class="macska">
CONTENT
</div>
<script>
o = document.getElementById('xxx');
o.filters.item("DXImageTransform.Microsoft.Alpha").opacity = 20;
</script>
This wont work:
<style>
.macska
{
opacity:1;
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=100)";
filter:alpha(opacity=100);
}
</style>
<div id="xxx" style="background-color: #CCC;>
CONTENT
</div>
<script>
o = document.getElementById('xxx');
o.filters.item("DXImageTransform.Microsoft.Alpha").opacity = 20;
</script>