<tr height="21" onmouseover="this.bgColor='#cccccc';SetStock(0);"
onmouseout="this.bgColor='#FFFFFF'">
<td> </td>
<td> </td>
<td> </td>
</tr><tr height="21" onmouseover="this.bgColor='#cccccc';SetStock(1);"
onmouseout="this.bgColor='#FFFFFF'">
<td> </td>
<td> </td>
<td> </td>
</tr><tr height="21" onmouseover="this.bgColor='#cccccc';SetStock(2);"
onmouseout="this.bgColor='#FFFFFF'">
<td> </td>
<td> </td>
<td> </td>
</tr>
onmouseout="this.bgColor='#FFFFFF'">
<td> </td>
<td> </td>
<td> </td>
</tr><tr height="21" onmouseover="this.bgColor='#cccccc';SetStock(1);"
onmouseout="this.bgColor='#FFFFFF'">
<td> </td>
<td> </td>
<td> </td>
</tr><tr height="21" onmouseover="this.bgColor='#cccccc';SetStock(2);"
onmouseout="this.bgColor='#FFFFFF'">
<td> </td>
<td> </td>
<td> </td>
</tr>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<script language="javascript">
var which_stock = 0;
function SetStock(num){
which_stock = num;
}
</script>
</head>
<body>
<table border="1">
<?php
for($i=0;$i<10;$i++)
{
?>
<tr height="21" onmouseover="this.bgColor='#cccccc';SetStock(<?php echo $cc;?>);" onmouseout="this.bgColor='#FFFFFF'">
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
<?php
}
?>
</table>
</body>
</html>
onMouseOut 代表鼠标划出