Thanks, so I would make the background color for the table cell
<table width="800%" border="0">
<tr bgcolor="<? $color = next($colors) or $color = reset($colors);
?> ">
<td> </td>
</tr>
<tr bgcolor="<? $color = next($colors) or $color = reset($colors);
?> ">
<td> </td>
</tr>
</table>
Is the above correct
<?php
$colours = array('#000000', '#808080', '#A0A0A0', '#FFFFFF');
// Get a colour
$color = next($colors) or $color = reset($colors);
?>
"R. Rajesh Jeba Anbiah" <ng**********@rediffmail.com> wrote in message
news:11********************@o13g2000cwo.googlegrou ps.com...
aznFETISH wrote: I have a list of links that I ue on my page, I alternate background
colors for these links in a table, I usually do it using a DB but this list
of link is manually added into the page so my question, is it possible to
alternate the row colors automatic and have it created from a list of URL's?
http://in2.php.net/strings#44652
--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/