hankknight
asked on
IE8 JavaScript: -ms-filter: "alpha(opacity=50)";
How can I do this with JavaScript for IE8?
-ms-filter: "alpha(opacity=50)";
-ms-filter: "alpha(opacity=50)";
Sorry it should be.
.shaded {
-ms-filter: “progid:DXImageTransform.Microsoft.Alpha(Opacity=50)”;
filter: alpha(opacity=50);
-khtml-opacity: 0.5;
-moz-opacity: 0.5;
opacity: 0.5;
}
I think the below code should work?
element.style.filter = 'alpha(opacity:50)';
You can also check: http://www.javascriptkit.com/filters/filterschecklist.shtml for more detailed filters.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window