<script language="javascript">
<!--
function Checked_All(){
if(document.form1.chenk_all.checked == true){
for(i=0;i < document.form1.elements.length;i++){
if(document.form1.elements[i].name == "user_id")
document.form1.elements[i].checked = true;
}
}else{
for(i=0;i < document.form1.elements.length;i++){
if(document.form1.elements[i].name == "user_id")
document.form1.elements[i].checked = false;
}
}
}
//-->
</script>
<form name="form1">
<input type="checkbox" name="user_id" value=""><BR>
<input type="checkbox" name="user_id" value=""><BR>
<input type="checkbox" name="user_id" value=""><BR>
<input type="checkbox" name="user_id" value=""><BR>
<input type="checkbox" name="user_id" value=""><BR>
<input type="checkbox" name="user_id" value=""><BR>
<input type="checkbox" name="user_id" value=""><BR>
<input type="checkbox" name="user_id" value=""><BR>
<input type="checkbox" name="user_id" value=""><BR>
<input type="checkbox" name="user_id" value=""><BR>
<input type="checkbox" name="user_id" value=""><BR>
<input type="checkbox" name="user_id" value=""><BR>
<input type="checkbox" name="user_id" value=""><BR>
<input type="checkbox" name="user_id" value=""><BR>
<input type="checkbox" name="chenk_all" value="" onClick="Checked_All();">全选<BR>
</form>
[此贴子已经被作者于2006-1-12 15:07:53编辑过]