QUOTE(Israel @ 7 Oct, 2007 - 11:01 PM)

Ok, I don't have an image called "blank" that was my bad because I had looked over about 7 examples and got a little tired I guess. However, I understood that:
CODE
imgWidth=obj.offsetWidth;
imgHeight=obj.offsetHeight;
...would get the height and width attributes even if it wasn't specified in the html.(See Point 3 in the link I posted eariler) I don't know though, it still doesn't seem to work when I linked it to images that are in the directory..
Here's what I have that works great. It's one conditional comment, so only IE6 reads it, and it adds very little to each page.
Here's what's in my <head> section:
CODE
<!--[if lt IE 7]>
<script defer type="text/javascript" src="pngfix.js"></script>
<![endif]-->
pngfix.js:
CODE
var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])
if ((version >= 5.5) && (document.body.filters))
{
for(var i=0; i<document.images.length; i++)
{
var img = document.images[i]
var imgName = img.src.toUpperCase()
if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
{
var imgID = (img.id) ? "id='" + img.id + "' " : ""
var imgClass = (img.className) ? "class='" + img.className + "' " : ""
var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
var imgStyle = "display:inline-block;" + img.style.cssText
if (img.align == "left") imgStyle = "float:left;" + imgStyle
if (img.align == "right") imgStyle = "float:right;" + imgStyle
if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
var strNewHTML = "<span " + imgID + imgClass + imgTitle
+ " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
+ "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
img.outerHTML = strNewHTML
i = i-1
}
}
}
With this, you must set width/height.