<?php
echo "<table border=1 width=80%>";
print"<caption><h2>xxx</h2></caption>";
echo "<table border=1 width=80%>";
print"<caption><h2>xxx</h2></caption>";
$i=1;
$k=1;
while($i<=10){
if($i%2==0){$bgc="#006666";}else{$bgc="#0011ff";}
echo"<tr bgcolor='$bgc' οnmοuseοver='show(this);' οnmοuseοut='noshow(this);'>";
$j=1;
while($j<=10){
echo"<td>".$k++."</td>";
$j++;
}
echo"</tr>";
$i++;
}
print("</table>");
?>
<script language="javascript">
function show(obj){
obj.style.backgroundColor="red";
}
function noshow(obj){
obj.style.backgroundColor="";
}
</script>
$k=1;
while($i<=10){
if($i%2==0){$bgc="#006666";}else{$bgc="#0011ff";}
echo"<tr bgcolor='$bgc' οnmοuseοver='show(this);' οnmοuseοut='noshow(this);'>";
$j=1;
while($j<=10){
echo"<td>".$k++."</td>";
$j++;
}
echo"</tr>";
$i++;
}
print("</table>");
?>
<script language="javascript">
function show(obj){
obj.style.backgroundColor="red";
}
function noshow(obj){
obj.style.backgroundColor="";
}
</script>