Posted by Ian B on 12/15/05 13:06
Bob Bedford wrote:
> I've an other function, probably quicker ? (I hope)
>
> for($line=1;$line<26;$line++)
> echo '<td valign="top" nowrap class="'.((($line%2) ==
> 0)?"oddrow":"evenrow").'">'
OK, a challenge! If you're going for short code as opposed to
readability,
change oddrow/evenrow to c1 and c2 and use
'<tr class="c'.($i%2).'">';
Ian
[Back to original message]
|