in reply to Re: alternating row colors
in thread alternating row colors
Then if you would like to add more colors to rotation you do not need to change anything besides adding the color.my @colors=( '#FFFFFF', '#DDDDFF' ); my $row = 0; while ( @data = ... ) { my $rowcolor = $colors[ $row++ % ($#colors + 1) ]; print ... }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: alternating row colors
by Kanji (Parson) on May 18, 2001 at 04:02 UTC | |
Re^3: alternating row colors
by Anonymous Monk on Jun 09, 2010 at 18:30 UTC |