<form name=frm>
<input type=checkbox name=m><input type=checkbox name=m><input type=checkbox name=m><input type=checkbox name=m>
<input type=checkbox name=m><input type=checkbox name=m><input type=checkbox name=m><input type=checkbox name=m>
全选<input type=checkbox value="Check All" onclick="mm(this)">
</form>
<script language=javascript>
function mm(o)
{
var a = document.frm("m");
for (var i=0; i<a.length; i++){
a[i].checked = o.checked;
}
}
</script>
<input type=checkbox name=m><input type=checkbox name=m><input type=checkbox name=m><input type=checkbox name=m>
<input type=checkbox name=m><input type=checkbox name=m><input type=checkbox name=m><input type=checkbox name=m>
全选<input type=checkbox value="Check All" onclick="mm(this)">
</form>
<script language=javascript>
function mm(o)
{
var a = document.frm("m");
for (var i=0; i<a.length; i++){
a[i].checked = o.checked;
}
}
</script>
function selectAll()
{
var c=document.f.checkbox1
for(i=0;i<c.length;i++)c[i].checked=true
} function unSelectAll()
{
var c=document.f.checkbox1
for(i=0;i<c.length;i++)c[i].checked=false
}
</script>
<form name=f>
<input type=checkbox name=checkbox1 value="1">
<input type=checkbox name=checkbox1 value="2">
<input type=checkbox name=checkbox1 value="3">
<input type=checkbox name=checkbox1 value="4">
<input type=checkbox name=checkbox1 value="5">
<input type=checkbox name=checkbox1 value="6">
<input type="button" value="全选" onClick="selectAll()">
<input type="button" value="全撤" onClick="unSelectAll()">
</form>
function selectAll()
{
var c=document.f.checkbox1
for(i=0;i<c.length;i++)c[i].checked=true
} function unSelectAll()
{
var c=document.f.checkbox1
for(i=0;i<c.length;i++)c[i].checked=false
}
</script>
<form name=f>
<input type=checkbox name=checkbox1 value="1">
<input type=checkbox name=checkbox1 value="2">
<input type=checkbox name=checkbox1 value="3">
<input type=checkbox name=checkbox1 value="4">
<input type=checkbox name=checkbox1 value="5">
<input type=checkbox name=checkbox1 value="6">
<input type="button" value="全选" onClick="selectAll()">
<input type="button" value="全撤" onClick="unSelectAll()">
</form>
<script language="javascript">
function selectAll()
{
var arrObj = document.all;
for(var i = 0; i < arrObj.length;i++)
{ if(typeof arrObj[i].type != "undefined" && arrObj[i].type=='checkbox') arrObj[i].checked =true;
}
} function unSelectAll()
{
var arrObj = document.all;
for(var i = 0; i < arrObj.length;i++)
{
if(typeof arrObj[i].type != "undefined" && arrObj[i].type=='checkbox') arrObj[i].checked =false;
}
}
</script><input type=checkbox value=checkbox1 value="1">
<input type=checkbox value=checkbox1 value="2">
<input type=checkbox value=checkbox1 value="3">
<input type=checkbox value=checkbox1 value="4">
<input type=checkbox value=checkbox1 value="5">
<input type=checkbox value=checkbox1 value="6">
<input type="button" value="È«Ñ¡" onClick="selectAll()">
<input type="button" value="È«³·" onClick="unSelectAll()">
</body>
</html>
function CheckAll()
{
for(var i=0;i<document.frmResult.elements.length;i++){
var e=document.frmResult.elements[i];
if (e.name != 'chkall')
e.checked = document.frmResult.chkall.checked;
}
}
</script>
<form name=frmResult action=clear_fav.php method=get>
<input type=checkbox value=checkbox1 value="1">
<input type=checkbox value=checkbox1 value="2">
<input type=checkbox value=checkbox1 value="3">
<input type=checkbox value=checkbox1 value="4">
<input type=checkbox value=checkbox1 value="5">
<input type=checkbox value=checkbox1 value="6">
<br>
<INPUT onclick=CheckAll() type=checkbox name=chkall>
全部选中<br>
</form>