white, yellow, black random stripe
first experiment to use a "while loop"
reload
the code:
<?
$i = 0;
$total = 0;
while($i<=400){
if ($i==400)
break;
$total += $i;
$i++;
$random = rand(1,3);
if ($random==1){$color = "yellow";}
if ($random==2){$color = "black";}
if ($random==3){$color = "white";}
echo "<tr><td height =\"1px\" width=\"100px\" bgcolor=\"$color\"></td></tr>";
}
?>