hankknight
asked on
PNG for every browser EXCEPT MSIE
Hello.
I have two versions of the image 'balloon.png'.
The .PNG looks better but it does not work properly on MSIE because it has an alpha-transparency.
So I want to serve the UGLY .GIF to MSIE users but the .PNG to everyone else.
Right now I use this to display the PNG version:
document.writeln("<img src='balloon.png' onmouseover='fix(\""+j+"\" );'>");
I need something like this, but my syntax is off...
if (browser==MSIE) imgExt=".gif" else imgExt=".png"
document.writeln("<img src='balloon."+imgExt+"' onmouseover='fix(\""+j+"\" );'>");
Any ideas how?
Thanks!
I have two versions of the image 'balloon.png'.
The .PNG looks better but it does not work properly on MSIE because it has an alpha-transparency.
So I want to serve the UGLY .GIF to MSIE users but the .PNG to everyone else.
Right now I use this to display the PNG version:
document.writeln("<img src='balloon.png' onmouseover='fix(\""+j+"\"
I need something like this, but my syntax is off...
if (browser==MSIE) imgExt=".gif" else imgExt=".png"
document.writeln("<img src='balloon."+imgExt+"' onmouseover='fix(\""+j+"\"
Any ideas how?
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks!
I accepted you first comment as the answer because it directly answers my question, but I will be using the IE PNG fix as a solution.
I accepted you first comment as the answer because it directly answers my question, but I will be using the IE PNG fix as a solution.
This tells all:
http://homepage.ntlworld.com/bobosola/
-Sam