Page 1 of 1

PNG fix on the web site

Posted: Fri Apr 14, 2006 11:05 am
by logic
I notice that this web site has an IE PNG transparency fix attached to it. It is causing problems in the forums with the [img] phpbb tag, because there is no way to specify a width/height there. The result is that PNGs -- just regular PNGs with no transparency -- become the size of the "blank.gif" used by the PNG fix, which is something like 32x32 pixels. I recently found a script which does a better job of PNG transparency in IE, in that it doesn't require the width & height to be specified. It uses a "deferred" script which reads the dimensions from each image that is being translated. With this script, PNG images in the forums would work properly in IE. I don't know if you care to use it, as you'd probably have to wrench the IE7 script's PNG fix support out (or perhaps it can simply be disabled by using a bum filename extension value?), but if you do, you can find it at:

http://israel.logiclrd.cx/pngfix.js

Posted: Fri Apr 14, 2006 2:32 pm
by mtnviewmark
Thanks logic. We will take a look at that script.

Posted: Wed Apr 26, 2006 9:47 pm
by MtnViewJohn
I'm still working on this. But for now I have disabled the offending javascript. PNGs with transparency won't display correctly, but everything else appears to be fine.

Posted: Thu Apr 27, 2006 9:10 pm
by MtnViewJohn
OK. I implemented this fix. I had to tweak the javascript a little to get it to ignore PNG images of class 'icon'. Otherwise some buttons were broken. I also had to change the three CSS-placed PNG files with GIF equivalents.