PNG image transparency not working....
PNG image transparency not working in IE 6.0 or less than 6.0
If you want to use the transperancy then use the following script in your html. Call this function in the image onLoad function....
SCRIPT:
--------
var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])
function fixPNG(myImage)
{
if ((version >= 5.5) && (version < 7) && (document.body.filters))
{
var imgID = (myImage.id) ? "id='" + myImage.id + "' " : ""
var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : ""
var imgTitle = (myImage.title) ?
"title='" + myImage.title + "' " : "title='" + myImage.alt + "' "
var imgStyle = "display:inline-block;" + myImage.style.cssText
var strNewHTML = "<span " + imgID + imgClass + imgTitle
+ " style=\"" + "width:" + myImage.width
+ "px; height:" + myImage.height
+ "px;" + imgStyle + ";"
+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
+ "(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>"
myImage.outerHTML = strNewHTML
}
}
------------------------
For example, if you use the test.png file then the code like this...
<img src="test.png" onLoad="fixPNG(this)">
i solve the problem just now. That's why i post here...
-------------------
suresh
Re: PNG image transparency not working....
i don't know why the icon was coming there...
You just copy and paste your system.....it is working...
----------------
suresh
Re: PNG image transparency not working....
The Icons were coming because (: D means :D ) and (: p means :p)