note 46045 deleted from ref.strings by aidan
| From: | aidan@php.net | Date: | Tue, 28 Sep 2004 12:11:08 +0000 |
| Subject: | note 46045 deleted from ref.strings by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-77488@lists.php.net to get a copy of this message | ||
Note Submitter: docc at webersheim dot de
----
do the alternation the css-way:
.even {
background-color: #cccccc;
}
.odd {
background-color: #ffffff;
}
while(1){
$output .= '<tr class="';
($even =! $even) ? $output .= 'odd' : $output .= 'even';
$output .= '">...';
} // while
echo $output;