IE 5.5 opacity

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 =
"progid:DXImageTransform.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>
 
P

Peter Michaux

Peter said:
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.

Also strangely the IE 4 opacity API only works in IE 6. In the example
below I get the same "Library not registered" error.

I have multiple versions of IE running on the same machine and wonder
if that is part of the problem. Does anyone have a Windows machine
running with only IE 5.5 installed that could check the two examples?

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>opacity4</title>

<script type="text/javascript">
window.onload = function() {
var blue = document.all['blue'];
blue.style.filter = "alpha(opacity=50)";
alert(blue.filters.item("alpha").opacity);
};
</script>

</head>
<body>

<div style="width:100px;height:100px;background:blue;"
id="blue"></div>

</body>
</html>
 
V

VK

Peter said:
I have multiple versions of IE running on the same machine and wonder
if that is part of the problem.

Yes, it is. You cannot have multiple versions of IE above 3.0 on the
same Windows installation. I mean technically you can master it, but it
has low practical value for testing purposes: because you never can be
sure in the reson of some error: because of a particular version bug or
because of .dll klinch like in this case. You have then to create
several bootable drives on your harddrive, install Windows on each and
then needed IE version separately on each Windows.

Actually did you install IE6 as the last in the series? Seems like -
and in this case you may have even bigger surprise. On your IE5.5
execute this:

<script type="text/jscript">
var ver = ScriptEngineMajorVersion() + '.'+
ScriptEngineMinorVersion();
alert(ver);
</script>

What number do you see?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top