"fix for IE 6 pngbugfix, some images where not displayed after turning on the Bugfix. E. g. in the clander oder infolog. Sponsored by Karl Knauber Holding "

This commit is contained in:
Stefan Becker 2008-07-25 10:24:20 +00:00
parent 42e4f1facd
commit c9fda6abcf

View File

@ -22,11 +22,14 @@ function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or high
}
}
var strNewHTML = "<span " + imgID + imgClass + imgTitle
strNewHTML += " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
var width = img.width ? img.width : 16
var height = img.height ? img.height : 16
strNewHTML += " style=\"" + "width:" + width + "px; height:" + height + "px;" + imgStyle + ";"
strNewHTML += "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
strNewHTML += "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
if(img.className != 'sideboxstar') {
img.outerHTML = strNewHTML
i = i-1
}
}