Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > IE 5.5 opacity

Reply
Thread Tools

IE 5.5 opacity

 
 
Peter Michaux
Guest
Posts: n/a
 
      01-14-2007
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=5 0)";

alert(blue.filters.item("DXImageTransform.Microsof t.Alpha").opacity);
};
</script>

</head>
<body>

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

</body>
</html>

 
Reply With Quote
 
 
 
 
Peter Michaux
Guest
Posts: n/a
 
      01-14-2007
Peter Michaux wrote:
> 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>

 
Reply With Quote
 
 
 
 
VK
Guest
Posts: n/a
 
      01-15-2007

Peter Michaux wrote:
> 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?

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is -khtml-opacity for? Jim Higson HTML 3 03-05-2006 12:39 AM
opacity windandwaves HTML 10 02-26-2006 06:19 PM
Opacity Sentient Fluid HTML 0 04-22-2005 07:45 AM
JPanel transparency (opacity) Nebojsa Dinic Java 0 04-16-2004 04:04 PM
CSS3 opacity support in Konqueror 3.1+ and Safari 1.1 DU HTML 13 10-31-2003 12:51 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57