<?php
echo "<table border=0.5 width=80% align=center>";
print"<caption><h2>xxx</h2></caption>";
$i=1;
$k=1;
while($i<=10){
if($i%2==0){$bgc="#66ff66";}else{$bgc="#00ffff";}
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>");
echo"<hr size=2>";
print "<table border=0.5 width=80% align=center>";
for($i=1;$i<11;){
if($i%2==0){$bgc="#666666";}else{$bgc="#ff11ff";}
echo"<tr bgcolor='$bgc' οnmοuseοver='show(this);' οnmοuseοut='noshow(this);'>";
$j=1;
for(;$j<=10;){
$a=rand();
echo"<td>".$a."</td>";
$j++;
}
echo"</tr>";
$i++;
}
print("</table>");
?>
<script language="javascript">
function show(obj){
obj.style.backgroundColor="red";
}
function noshow(obj){
obj.style.backgroundColor="";
}
</script>
echo "<table border=0.5 width=80% align=center>";
print"<caption><h2>xxx</h2></caption>";
$i=1;
$k=1;
while($i<=10){
if($i%2==0){$bgc="#66ff66";}else{$bgc="#00ffff";}
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>");
echo"<hr size=2>";
print "<table border=0.5 width=80% align=center>";
for($i=1;$i<11;){
if($i%2==0){$bgc="#666666";}else{$bgc="#ff11ff";}
echo"<tr bgcolor='$bgc' οnmοuseοver='show(this);' οnmοuseοut='noshow(this);'>";
$j=1;
for(;$j<=10;){
$a=rand();
echo"<td>".$a."</td>";
$j++;
}
echo"</tr>";
$i++;
}
print("</table>");
?>
<script language="javascript">
function show(obj){
obj.style.backgroundColor="red";
}
function noshow(obj){
obj.style.backgroundColor="";
}
</script>