Forum OpenACS Q&A: PNG transparency problems in IE

Collapse
Posted by Brian Fenton on
Hi,

I'm working with a web designer and they've made me aware of some PNG transparency problems in IE (see this link for details http://koivi.com/ie-png-transparency/). There's a solution available in PHP which he wants to use. The solution works as follows "the PHP script searches for IMG tags in the HTML that have ".png" (case-insensitive) in the SRC attribute, replaces it with a 1px x 1px PNG-8 image containing binary transparency (which MSIE does support) and adds the necessary CSS style statements for MSIE 5.5+ to render the transparency as desired."

Is anyone aware of a similar solution for AOLserver? I could rewrite the PHP function in TCL but I'd rather not have to.

thanks
Brian

Collapse
Posted by Joe Cooper on
I use a JavaScript function, but it's a little quirky...I may end up having to come up with something else. You can find the js I use here:

http://homepage.ntlworld.com/bobosola/

Collapse
Posted by Andrew Piskorski on
Well, loading PHP into AOLserver just to do that would be absurd, so if you want to handle it server-side, implementing your algorithm in Tcl would be the way to go. It doesn't sound that hard.

Or if you want to do it client-side for IE only, Joe C. seems to have a lot of good info on that.

Collapse
Posted by Brian Fenton on
Thanks for the replies. Joe that looks good, thanks.