Randy Webb wrote:
> Andrew Poulos said the following on 8/4/2005 9:31 AM:
>
>> Is there a safe way to get the version of IE? I've done a google and
>> found this code:
>>
>> var version=0
>> if (navigator.appVersion.indexOf("MSIE") != -1) {
>> temp = navigator.appVersion.split("MSIE");
>> version = parseFloat(temp[1]);
>> }
>>
>> but I have no idea how "robust" it is.
>
>
> It's about as robust as taking a wild guess at what the browser is. The
> navigator object is useless in trying to determine the environment, use
> object detection instead.
>
Currently IE does not support transparency on PNG images at a bit depth
greater than 8. There's a "filter" that can be applied that allows
transparency but only if the IE version is 5.5+. If it's less than 5.5 I
need to use an albeit poorer quality 8 bit PNG.
I'm using a conditional comment to "know" it's IE. Should I just use
another conditional comment to "know" if the version is less than 5.5,
or is there a better way?
Andrew Poulos
Received on Tue Oct 18 03:05:25 2005