|
Kategorie: Sonstiges
|
Datum: 02.02.2003
|
|
Autor: Webmaster
|
| Beschreibung: Tabellenzeilen mit unterschiedlicher Farbe darstellen |
| Script: |
<? $col1 = "#FF66CC"; $col2 = "#6699FF";
echo "<table border=\"0\">";
for($num=0; $num < 20; $num++) { $color = ($color == $col1) ? $col2 : $col1;
echo " <tr>\n"; echo " <td bgcolor=\"$color\">"; echo " Zeile $num\n"; echo " </td>\n"; echo " </tr>\n"; } echo "</table>"; ?>
|
|
|