views:

64

answers:

2

the images are showing up in safari and firefox but not IE6. I have four images, two of them are showing up in IE6 and two are not. If it helps, they are being toggled with an if statement. suggestions?

Here is an example of the code, there are four of these chunks:

                 <div class="NavIcons">
                    <a href="http://www.blah.org/MyQuestions.php?id=&lt;?php echo $prof->id; ?>"
                        <img src="http://www.blah.org/styles/images/&lt;?php if($ProfileIcon == "questions") { echo "Red"; }else{ echo "Grey"; } ?>QuestionNew.jpg" border="0"/>
                    </a>
                </div>
+1  A: 

Make sure the images are not CMYK, they will need to be RGB.

Lizard
+3  A: 

Check the images directly in the web browser affected.

<img src="http://example.com/styles/images/&lt;?php
   if($ProfileIcon == "questions") {
     echo "Red"; 
   } else {
     echo "Grey";
   } ?>QuestionNew.jpg" border="0" />

Would work out to:

http://example.com/styles/images/RedQuestionNew.jpg
http://example.com/styles/images/GreyQuestionNew.jpg

If you can get the JPGs to load correctly then that should solve it. Some possible causes of a JPG that won't load: saved as a different format than JPG but saved with .jpg extension, saved in CMYK colorspace rather than RGB, upload of file was incomplete, permissions problems with the file. Though the last two are unlikely because they're visible in other browsers.

artlung