![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
12/11/2010, 16:17
|
| | Fecha de Ingreso: abril-2010 Ubicación: Colombia
Mensajes: 229
Antigüedad: 14 años, 10 meses Puntos: 2 | |
Respuesta: tramados en una tabla dinamica en php Lo que puede hacer es tomar los pares y los impares
de esta manera
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
</head>
<body>
<table width="20%" border="1">
<?php
$recor = 0;
while($recor < 11){
if($recor % 2 == 0){
$color ="#66CCFF";
}else{
$color ="#FFFFFF";
}
?>
<tr>
<td bgcolor="<?php echo $color; ?>"> </td>
</tr>
<?php
$recor ++;
}
?>
</table>
</body>
</html>
espero que le sirva |