日期:2014-05-16 浏览次数:20448 次
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> new document </title>
</head>
<body>
<form method="post" name="form1" >
<input type="button" onclick="SelectAll()" value="全选">
<input type="button" onclick="RE_Select()" value="反选">
<input type="button" onclick="NOT_SelectAll()" value="全不选">
<input type="checkbox" name="vendor_fxk" >
<input type="checkbox" name="vendor_fxk" >
<input type="checkbox" name="vendor_fxk" >
<input type="checkbox" name="vendor_fxk" >
<input type="checkbox" name="vendor_fxk" >
<input type="checkbox" name="vendor_fxk" >
<input type="checkbox" name="vendor_fxk" >
<input type="checkbox" name="vendor_fxk" >
<input type="checkbox" name="vendor_fxk" >
<input type="checkbox" name="vendor_fxk" >
<input type="checkbox" name="vendor_fxk" >
</form>
<script language="javascript" type="text/javascript">
function SelectAll()
{
var ch = document.form1.vendor_fxk;
for(var i=0, l = ch.length; i < l; ++i)
ch[i].checked=true;
}
function RE_Select()
{
var ch = document.form1.vendor_fxk;
for(var i=0, l =&nbs