phpbar.de logo

Mailinglisten-Archive

[php] Farbenwechsel

[php] Farbenwechsel

Cyrill Schumacher php_(at)_phpcenter.de
Thu, 25 Oct 2001 11:45:41 +0200


nachtrag:

<table  width="100%" border="1" cellspacing="0" cellpadding="2">
<?php

 $c = array();
 $c[0] = '#ff0000';
 $c[1] = '#ffff00';
 $c[2] = '#0080ff';
 $c[3] = '#00ff00';

 $mod = count($c);
 for($i=0;$i<100;$i++){

  echo'<tr><td bgcolor="'.( $c[$i%$mod] ).'">'.$i.' and
'.($i%$mod).'</td></tr>';

 }



?>

</table>





php::bar PHP Wiki   -   Listenarchive