<?php

$color="297882";

$n=6;
for ($i=0;$i<$n ;$i++ )
{
 $d[] = dechex($color[$i]+2);
 $e[] = dechex($color[$i]+4);
}
$c = implode("",$d);
$c2 = implode("",$e);

//echo $c;

?>

<table>
<tr>
 <td width=100 bgcolor="#<?=$color?>">&nbsp;&nbsp;</td>
</tr>
<tr>
 <td width=100 bgcolor="#<?=$c?>">&nbsp;&nbsp;</td>
</tr>
<tr>
 <td width=100 bgcolor="#<?=$c2?>">&nbsp;&nbsp;</td>
</tr>

</table>

Posted on 2007-11-25 10:54  古代  阅读(945)  评论(0编辑  收藏  举报