![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
23/03/2008, 10:20
|
![Avatar de masterpuppet](http://static.forosdelweb.com/customavatars/avatar210822_13.gif) | Software Craftsman | | Fecha de Ingreso: enero-2008 Ubicación: Montevideo, Uruguay
Mensajes: 3.550
Antigüedad: 17 años Puntos: 845 | |
Re: Color Celdas cambia el(esta al final)
Código:
for ($n = $NumLow; $n < $NumHigh; $n++) {
print $DataArray[$n];
if (!$DataArray[$n]) {
Print "<br><br><b><font color =\"#000000\">NO NAY MAS COMENTARIOS</b>";
exit;
}
}
por
Código:
for ($n = $NumLow; $n < $NumHigh; $n++) {
$color=($n%2==0)?'red':'blue';
echo "<div style=background:$color;>$DataArray[$n]</div>" ;
if (!$DataArray[$n]) {
Print "<br><br><b><font color =\"#000000\">NO NAY MAS COMENTARIOS</b>";
exit;
}
}
|