Images have a "box" in HTML
October 23, 2008 12:00 AM
@Ben Pitman]IE6 shows a blue haze box in the transparent areas for pngs. Search the forum for a workaround.If you are using PNGs with IE the workaround is to create a text file containing the following javascript and include it in the root of your project as an external HTML object with the object type of "header scripting":function correctPNG(){ var arVersion = navigator.appVersion.split("MSIE") var version = parseFloat(arVersion[1]) if ((version >= 5.5) && (version < 7.0) && (document.body.filters)) { for(var i=0 i" img.outerHTML = strNewHTML i = i-1 } } } }var msie = ((navigator.appVersion.indexOf("MSie")!= -1)undefined } [/CODE wrote:
The code is friendly and tested for IE and Firefox. If you try it with anything else then let me know.I hope this helps,David[CODE]function correctPNG(){ var arVersion = navigator.appVersion.split("MSIE") var version = parseFloat(arVersion[1]) if ((version >= 5.5) && (version < 7.0) && (document.body.filters)) { for(var i=0 i" img.outerHTML = strNewHTML i = i-1 } } } }var msie = ((navigator.appVersion.indexOf("MSie")!= -1)undefined } [/CODE wrote:The code is friendly and tested for IE and Firefox. If you try it with anything else then let me know.I hope this helps,David
Discussions have been disabled for this post