P
Peter Michaux
Hi,
I've been trying to get opacity reporting working in IE 5.5 but the
Microsoft documentation does seem to work as I interpret it even though
this documentation page seems have been written for IE 5.5
<URL: http://msdn.microsoft.com/workshop/author/filter/filters.asp>
In the html page listed below I see an error "Library not registered"
in IE 5.5. In IE 6 I see an alert that says "50" as expected.
Some of microsoft's demos on the above page also show the "Library not
registered" error in IE 5.5 but work in IE 6.
Has anyone else experienced these problems with filters? Any idea why
IE 5.5 doesn't work as advertised?
Thank you,
Peter
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>opacity55</title>
<script type="text/javascript">
window.onload = function() {
var blue = document.getElementById('blue');
blue.style.filter =
"progidXImageTransform.Microsoft.Alpha(opacity=50)";
alert(blue.filters.item("DXImageTransform.Microsoft.Alpha").opacity);
};
</script>
</head>
<body>
<div style="width:100px;height:100px;background:blue;"
id="blue"></div>
</body>
</html>
I've been trying to get opacity reporting working in IE 5.5 but the
Microsoft documentation does seem to work as I interpret it even though
this documentation page seems have been written for IE 5.5
<URL: http://msdn.microsoft.com/workshop/author/filter/filters.asp>
In the html page listed below I see an error "Library not registered"
in IE 5.5. In IE 6 I see an alert that says "50" as expected.
Some of microsoft's demos on the above page also show the "Library not
registered" error in IE 5.5 but work in IE 6.
Has anyone else experienced these problems with filters? Any idea why
IE 5.5 doesn't work as advertised?
Thank you,
Peter
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>opacity55</title>
<script type="text/javascript">
window.onload = function() {
var blue = document.getElementById('blue');
blue.style.filter =
"progidXImageTransform.Microsoft.Alpha(opacity=50)";
alert(blue.filters.item("DXImageTransform.Microsoft.Alpha").opacity);
};
</script>
</head>
<body>
<div style="width:100px;height:100px;background:blue;"
id="blue"></div>
</body>
</html>