Displaying PNGs in IE Despite AlphaImageLoader
Transparent PNGs rendered with AlphaImageLoader cause a problem for IE6 and earlier
It is a well-known fact that transparent PNGs won't display in IE6 and earlier without using the AlphaImageLoader fix/hack. While this allows transparent PNGS in IE6 and earlier it does not do so without causing a few other potential problems. One being that AlphaImageLoader can block interaction with links and forms being rendered on AlphaImageLoader PNGs. If a link won't click or a form won't work properly take the following steps to remedy this problem:
1) Make sure this is an AlphaImageLoader issue by using Firebug, IE Developers Toolbar, or any CSS inspection tool and inpecting the affected area. If in the filter attribute of the affected area is a line similar to
'filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='path/image', sizingMethod='scale')'then we have found our problem.
Note: This line is automatically applied to PNGs by the script in uwosh.thembase entitled 'pngie6fix.js'.
It is useful for viewing alpha channel transparent PNGs in IE6 and earlier when this bug doesn't occur.
2) Create a custom copy of pngie6fix.js in the affected sites ZMI by
- a) going to the portal_skins/custom folder
- b) selecting 'File' from the dropdown and then clicking the Add button
- c) add the following code to your newly created pngie6fix.js:
- d) edit the .js file to not add the AlphaImageLoader filter to the affected PNG like such....
Find this line:
if(obj.currentStyle.backgroundImage.match("75transCool.png")==null
and add a condition for every image that is causing links and/or forms to break:
&& obj.currentStyle.backgroundImage.match("callToActionBak.png")==null
- e) navigate to the site's portal_javascripts and uncheck the '++resource++uwosh.themebase.pngie6fix.js' and add a script named pngie6fix.js with the condition field set to "python:'MSIE 6' in here.REQUEST['HTTP_USER_AGENT']"











