<script>
document.onclick=function(e)
{
e=e||event;
var tag=e.srcElement||e.target;
if(tag.type=="checkbox")
{
var v=tag.value,c=tag.checked;
var cbs=document.getElementsByTagName("input");
for(var i=0;i<cbs.length;i++)
if(cbs[i].type=="checkbox"&&cbs[i]!=tag&&cbs[i].value.indexOf(v)==0)cbs[i].checked=c;
}
}
</script>
<form name=form1 action="">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<input type="checkbox" name="checkbox" value=1 >1 </input>
<br />
<input type="checkbox" name="checkbox" value=101 >101 </input>
<br />
<input type="checkbox" name="checkbox" value=10101 >10101 </input>
<br />
<input type="checkbox" name="checkbox" value=1010101 >1010101 </input>
<br />
<input type="checkbox" name="checkbox" value=1010102 >1010102 </input>
<br />
<input type="checkbox" name="checkbox" value=1010103 >1010103 </input>
<br />
<input type="checkbox" name="checkbox" value=1010104 >1010104 </input>
<br />
<input type="checkbox" name="checkbox" value=1010105 >1010105 </input>
<br />
<input type="checkbox" name="checkbox" value=1010106 >1010106 </input>
<br />
<input type="checkbox" name="checkbox" value=10102 >10102 </input>
<br />
<input type="checkbox" name="checkbox" value=1010201 >1010201 </input>
<br />
<input type="checkbox" name="checkbox" value=1010202 >1010202 </input>
<br />
<input type="checkbox" name="checkbox" value=1010203 >1010203 </input>
<br />
<input type="checkbox" name="checkbox" value=10103 >10103 </input>
<br />
<input type="checkbox" name="checkbox" value=1010301 >1010301 </input>
<br />
<input type="checkbox" name="checkbox" value=1010302 >1010302 </input>
<br />
<input type="checkbox" name="checkbox" value=102 >102 </input>
<br />
<input type="checkbox" name="checkbox" value=10201>10201 </input>
<br />
<input type="checkbox" name="checkbox" value=1020101 >1020101 </input>
<br />
<input type="checkbox" name="checkbox" value=1020102 >1020102 </input>
<br />
<input type="checkbox" name="checkbox" value=1020103 >1020103 </input>
<br />
<input type="checkbox" name="checkbox" value=10202 >10202 </input>
<br />
<input type="checkbox" name="checkbox" value=1020201 >1020201 </input>
<br />
<input type="checkbox" name="checkbox" value=1020202 >1020202 </input>
<br />
<input type="checkbox" name="checkbox" value=1020203 >1020203 </input> <br />
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td>
<INPUT TYPE=submit name=submit/>
</td>
</tr> </table>
</form>
document.onclick=function(e)
{
e=e||event;
var tag=e.srcElement||e.target;
if(tag.type=="checkbox")
{
var v=tag.value,c=tag.checked;
var cbs=document.getElementsByTagName("input");
for(var i=0;i<cbs.length;i++)
if(cbs[i].type=="checkbox"&&cbs[i]!=tag&&cbs[i].value.indexOf(v)==0)cbs[i].checked=c;
}
}
</script>
<form name=form1 action="">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<input type="checkbox" name="checkbox" value=1 >1 </input>
<br />
<input type="checkbox" name="checkbox" value=101 >101 </input>
<br />
<input type="checkbox" name="checkbox" value=10101 >10101 </input>
<br />
<input type="checkbox" name="checkbox" value=1010101 >1010101 </input>
<br />
<input type="checkbox" name="checkbox" value=1010102 >1010102 </input>
<br />
<input type="checkbox" name="checkbox" value=1010103 >1010103 </input>
<br />
<input type="checkbox" name="checkbox" value=1010104 >1010104 </input>
<br />
<input type="checkbox" name="checkbox" value=1010105 >1010105 </input>
<br />
<input type="checkbox" name="checkbox" value=1010106 >1010106 </input>
<br />
<input type="checkbox" name="checkbox" value=10102 >10102 </input>
<br />
<input type="checkbox" name="checkbox" value=1010201 >1010201 </input>
<br />
<input type="checkbox" name="checkbox" value=1010202 >1010202 </input>
<br />
<input type="checkbox" name="checkbox" value=1010203 >1010203 </input>
<br />
<input type="checkbox" name="checkbox" value=10103 >10103 </input>
<br />
<input type="checkbox" name="checkbox" value=1010301 >1010301 </input>
<br />
<input type="checkbox" name="checkbox" value=1010302 >1010302 </input>
<br />
<input type="checkbox" name="checkbox" value=102 >102 </input>
<br />
<input type="checkbox" name="checkbox" value=10201>10201 </input>
<br />
<input type="checkbox" name="checkbox" value=1020101 >1020101 </input>
<br />
<input type="checkbox" name="checkbox" value=1020102 >1020102 </input>
<br />
<input type="checkbox" name="checkbox" value=1020103 >1020103 </input>
<br />
<input type="checkbox" name="checkbox" value=10202 >10202 </input>
<br />
<input type="checkbox" name="checkbox" value=1020201 >1020201 </input>
<br />
<input type="checkbox" name="checkbox" value=1020202 >1020202 </input>
<br />
<input type="checkbox" name="checkbox" value=1020203 >1020203 </input> <br />
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td>
<INPUT TYPE=submit name=submit/>
</td>
</tr> </table>
</form>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货