我运行时,颜色不会变换,求助
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
</head>
<body>
<?php
function tablebgcolor(){
static $bgcolor;
if ($bgcolor = "00ffff")
{
$bgcolor = "ffff00";
}
else { $bgcolor = "00ffff"; }
return ($bgcolor);
}
echo '<table border=1><br>';
for ($i = 1; $i <= 10; $i++){
$bgcolor = tablebgcolor();
echo '<tr><td bgcolor = '.$bgcolor.'>this the '.$i.' line</td></tr><br>';
}
echo '</table>';
?>
</body>
</html>