PDA

View Full Version : IE 5.5 - IE6 png transparency support?


unenergizer
08-14-2007, 06:53 PM
Well the layout on my site consist of png transparent borders. I viewed the site on a IE5.5 and IE6 browser and I'm getting a "nasty" white background effect under the transparent images. I know there are javascript fixes for this. What I need is a suggestion on which would be the best for me to use in my situation. I have done a Google search and I have found some results, but I would like a second opinion. What would you do in my situation?

GIF transparencies are NOT an option.

aceofspades
08-14-2007, 10:19 PM
I would really like to know this too, since i have tried to apply several activex / javascript fix's and i was never able to get it working in vb which is a shame.

James

DemonOuterverse
08-14-2007, 10:21 PM
What you can do is use IE conditionals and wrap the call to the JavaScript fix in them. Other browsers will see them as a comment and ignore them.

Here's a sample:
<!--[if (gt IE 5)&(lt IE 7)]>
Javascript or call to JS file that will be used if IE's version is less than 7.
<![endif]-->So IE7 will ignore it, IE6 and IE5.5 will execute the code, and IE5 and lower will ignore it (because the fix doesn't work in those versions anyway).

-------
I would really like to know this too, since i have tried to apply several activex / javascript fix's and i was never able to get it working in vb which is a shame.

James
Basically they're the same fix. The Javascript version is using a DirectX filter that IE understands.

G.X.Tournaments
08-15-2007, 05:44 PM
Thanks for that, I came across that once ;).

aceofspades
08-15-2007, 11:02 PM
Yes but when i tried to intergrate that code into the vb it doesnt work. Am i doing something wrong or does it not work for other people?

James

unenergizer
08-15-2007, 11:20 PM
Thanks guys. I got the fix in place and I was able to test it out at http://www.browsercam.com/ for browser compatibility. :)

Wayne Luke
08-16-2007, 02:46 AM
<a href="https://vborg.vbsupport.ru/showthread.php?t=94416" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=94416</a>

Works fine in vBulletin.