Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE 8 Image swap Gallery 1

Status
Not open for further replies.

janeybad

IS-IT--Management
Sep 28, 2008
26
GB
The below code seems to work in all browsers, apart from IE. Please, please can anyone help.



Code:
<?php if ($rwp['MEDIA_IMAGE_00'] != ""){ ?>
        <td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_00'];?>" width="63" height="78" onclick="bigimg(this.src)" style="cursor:pointer;"/></td>
        <?php } ?>
        <?php if ($rwp['MEDIA_IMAGE_01'] != ""){ ?>
        <td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_01'];?>" alt="" width="63" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
         <?php } ?>
        <?php if ($rwp['MEDIA_IMAGE_02'] != ""){ ?>
        <td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_02'];?>" alt="" width="63" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
         <?php } ?>
      </tr>
      <tr>
      <td height="2" colspan="4"></td>
      </tr>
      <tr>
      <?php if ($rwp['MEDIA_IMAGE_03'] != ""){ ?>
        <td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_03'];?>" width="63" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
         <?php } ?>
        <?php if ($rwp['MEDIA_IMAGE_04'] != ""){ ?>
        <td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_04'];?>" alt="" width="63" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
         <?php } ?>
        <?php if ($rwp['MEDIA_IMAGE_05'] != ""){ ?>
        <td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_05'];?>" alt="" width="63" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
         <?php } ?>
      </tr>
      <tr>
      <td height="2" colspan="4"></td>
      </tr>
      <tr>
      <?php if ($rwp['MEDIA_IMAGE_06'] != ""){ ?>
        <td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_06'];?>" width="63" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
         <?php } ?>
        <?php if ($rwp['MEDIA_IMAGE_07'] != ""){ ?>
        <td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_07'];?>" alt="" width="63" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
         <?php } ?>
        <?php if ($rwp['MEDIA_IMAGE_08'] != ""){ ?>
        <td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_08'];?>" alt="" width="63" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
         <?php } ?>
      </tr>
      <tr>
      <td height="2" colspan="4"></td>
      </tr>
      <tr>
      <?php if ($rwp['MEDIA_IMAGE_60'] != ""){ ?>
        <td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_60'];?>" width="63" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
         <?php } ?>
        <?php if ($rwp['MEDIA_IMAGE_TEXT_60'] != ""){ ?>
        <td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_TEXT_60'];?>" alt="" width="63" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
         <?php } ?>

Kind Regards

Janey Bad
 
How does it not work? Errors?

Since PHP is a server side language it just delivers HTML, and since the HTML delivered to one browser is the same as the one delivered to another this is likely to be an error in your Javascript rather than PHP.

I suggest you post the code for your bigimg() JS function in the JS forum, as well as the HTML produced by the PHP code.

forum216
And also any errors you may be getting from IE.

----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Behind the Web, Tips and Tricks for Web Development.
 
Thank you for the advise. Have done exactly what you said, makes sense.

Janey Bad

XXX
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top