--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------
<script>
function chaCloor(field){
var pig = field.checked;
pig?field.nextSibling.style.backgroundColor="yellow":field.nextSibling.style.backgroundColor="#fff";
}
</script>
<table height=50 width=148>
<tr>
<td width="138"><input type="checkbox" onClick="chaCloor(this)"><span>选项1</span></td>
</tr>
<tr>
<td width="138"><input type="checkbox" onClick="chaCloor(this)"><span>选项2</span></td>
</tr>
<tr>
<td width="138" ><input type="checkbox" onClick="chaCloor(this)"><span>选项3</span></td>
</tr>
<tr>
<td width="138" ><input type="checkbox" onClick="chaCloor(this)"><span>选项4</span></td>
</tr>
<tr>
<td width="138" ><input type="checkbox" onClick="chaCloor(this)"><span>选项5</span></td>
</tr>
<tr>
<td width="138"><input type="checkbox" onClick="chaCloor(this)" ><span>选项6</span></td>
</tr>
</table>
<style>
.checkbox {
background-Color:expression(this.checked?'yellow':'buttonface');
}
</style>
<input type=checkbox class=checkbox>
<input type=checkbox class=checkbox>
<input type=checkbox class=checkbox>
<input type=checkbox class=checkbox>