DuMmWiaM
03-25-2005, 11:43 AM
I am using the following loop to display 40 image-thumbs to a table in 4 rows. The problem is that it doesn't work on IE6! It work fines on Mozilla, but IE6 doesn't show the pictures. I don't want to use any DB for this job I just want this god-damn loop to work :(. I played with the code a little bit, and I found out that the problem is the "a href". Whenever I call that HTML tag in the loop (so that every thumb, leads to the appropriate normal-size image) the IE6 doesn't show anything!
Any help will be appreciated...this thing is driving me crazy!
Best Regards
<?
echo '<table>';
$x=1;
for ($i=1;$i<=40;$i++) {
if ($x==1) {
echo('<tr>');
}
echo '<td align="center">';
echo '<a href="../graphs/pics/photo'.$i.'.jpg"';
echo '<img src="../graphs/pics/photo';
echo $i .'t.jpg" border="0"></a>';
echo '</td>';
if ($x==4) {
echo '</tr>';
$x=1;
}
else {
$x++;
}
}
echo '</table>';
?>
Any help will be appreciated...this thing is driving me crazy!
Best Regards
<?
echo '<table>';
$x=1;
for ($i=1;$i<=40;$i++) {
if ($x==1) {
echo('<tr>');
}
echo '<td align="center">';
echo '<a href="../graphs/pics/photo'.$i.'.jpg"';
echo '<img src="../graphs/pics/photo';
echo $i .'t.jpg" border="0"></a>';
echo '</td>';
if ($x==4) {
echo '</tr>';
$x=1;
}
else {
$x++;
}
}
echo '</table>';
?>