Ahh, I figured it out...sort of....
<div class="pearl">
<!--[if gte IE 7]>
<img class="pearl" src="pearl.png" alt="Pearl Davis Ministries"
title="Pearl Davis Ministries">
<![endif]-->
<!--[if lte IE 6]>
<img class="pearl" src="pearl.gif" alt="Pearl Davis Ministries"
title="Pearl Davis Ministries">
<![endif]-->
</div>
....works great except now I don't have a picture in FF.
Is there anyway I can get the swap without other browsers ignoring the
image code since it's inside an IE statement? I can't do it in css
because background images can't scale and stretch and I want this one
to.
-Okay, I think I've finally got it.
-<div class="pearl">
-<img class="pearl" src="pearl.png" alt="Pearl Davis Ministries"
-title="Pearl Davis Ministries">
-<!--[if lte IE 6]>
-<STYLE type="text/css">
-img.pearl {display: none;}
- </STYLE>
-<img class="pearl2" src="pearl.gif" alt="Pearl Davis Ministries"
-title="Pearl Davis Ministries">
-<![endif]-->
-</div>
-
-Gave the gif it's own class 'pearl2' and made the if statement not
-display the original 'pearl' class so I don't end up with two images
-in ie6. Thanks again for all the help as always!
That's quite clever. The solution provided by Jonathan N Little is very
elegant if you want to look at that.
I know that there are a lot of "PNG fix" Javascript solutions out there.
I've never had any luck with any of them, buthttp://
www.mcfc.co.ukuses
transparent PNG files all over the place and still looks good in IE6 so they
must be doing something right if you have time to investigate.
Personally I'm planning to start giving clients a discount if they allow me
the luxury of not supporting IE6. Last project I did I thought I'd finished
then spent another 3 hours fixing some of the pages for IE6. That's a lot of
time on a small project.