<body bgcolor="#FFFFFF">
<table width="300" border="1">
<tr onmouseover="mover(this)" onmouseout="mout(this)">
<td><input type="checkbox" name="ch" onclick="checkbox(this)">aaaaaaaaaaaaaaaaaaaaaaa</td>
</tr>
<tr onmouseover="mover(this)" onmouseout="mout(this)">
<td><input type="checkbox" name="ch" onclick="checkbox(this)">aaaaaaaaaaaaaaaaaaaaaaa</td>
</tr>
<tr onmouseover="mover(this)" onmouseout="mout(this)">
<td><input type="checkbox" name="ch" onclick="checkbox(this)">aaaaaaaaaaaaaaaaaaaaaaa</td>
</tr>
<tr onmouseover="mover(this)" onmouseout="mout(this)">
<td><input type="checkbox" name="ch" onclick="checkbox(this)">aaaaaaaaaaaaaaaaaaaaaaa</td>
</tr>
</table>
<script language="JavaScript">
<!--
var color="";
function mover(obj)
{
color = obj.style.backgroundColor;
if(color!="green")
{
obj.style.backgroundColor = "red";
}
else
{
obj.style.backgroundColor = "yellow";
}
}function mout(obj)
{
obj.style.backgroundColor = color;
}function checkbox(obj)
{
var ob = obj.parentElement.parentElement;
if(obj.checked)
{
ob.style.backgroundColor = "green";
color="green"
}
else
{
ob.style.backgroundColor = "";
color="";
}
}
//-->
</script>
</body>
<table width="300" border="1">
<tr onmouseover="mover(this)" onmouseout="mout(this)">
<td><input type="checkbox" name="ch" onclick="checkbox(this)">aaaaaaaaaaaaaaaaaaaaaaa</td>
</tr>
<tr onmouseover="mover(this)" onmouseout="mout(this)">
<td><input type="checkbox" name="ch" onclick="checkbox(this)">aaaaaaaaaaaaaaaaaaaaaaa</td>
</tr>
<tr onmouseover="mover(this)" onmouseout="mout(this)">
<td><input type="checkbox" name="ch" onclick="checkbox(this)">aaaaaaaaaaaaaaaaaaaaaaa</td>
</tr>
<tr onmouseover="mover(this)" onmouseout="mout(this)">
<td><input type="checkbox" name="ch" onclick="checkbox(this)">aaaaaaaaaaaaaaaaaaaaaaa</td>
</tr>
</table>
<script language="JavaScript">
<!--
var color="";
function mover(obj)
{
color = obj.style.backgroundColor;
if(color!="green")
{
obj.style.backgroundColor = "red";
}
else
{
obj.style.backgroundColor = "yellow";
}
}function mout(obj)
{
obj.style.backgroundColor = color;
}function checkbox(obj)
{
var ob = obj.parentElement.parentElement;
if(obj.checked)
{
ob.style.backgroundColor = "green";
color="green"
}
else
{
ob.style.backgroundColor = "";
color="";
}
}
//-->
</script>
</body>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货