这样的行不行
[CODE]<script>
function ff(obj,id){
if(obj.checked==true)
{alert("添加此产品!");
window.open("save.asp?act=add&id="+id);}
else
{return confirm("您真的要删除产品吗?");
window.open("save.asp?act=del&id="+id);}
}
</script>
<table width="200" height="120" border="0" align="center" cellpadding="0" cellspacing="0">
<form name="form1" method="post" action=""><tr>
<td width="32" align="center">
<input name="id" type="checkbox" id="id1" value="1" onClick="ff(this,1)">
</td>
<td width="168"> </td>
</tr>
<tr>
<td align="center"><input name="id" type="checkbox" id="id2" value="2" onClick="ff(this,2)"></td>
<td> </td>
</tr>
<tr>
<td align="center"><input name="id" type="checkbox" id="id3" value="3" onClick="ff(this,3)"></td>
<td> </td>
</tr>
<tr>
<td align="center"><input name="id" type="checkbox" id="id4" value="4" onClick="ff(this,4)"></td>
<td> </td>
</tr>
<tr>
<td align="center"><input name="id" type="checkbox" id="id5" value="5" onClick="ff(this,5)"></td>
<td> </td>
</tr></form>
</table>
[/CODE]
[此贴子已经被作者于2005-11-30 11:43:31编辑过]