|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<SCRIPT LANGUAGE="JavaScript">
var n=-1;
function test(){
var radio=document.getElementsByName('one');
for(var i=0;i<radio.length;i++){
if(radio[i].checked){
var checkbox=document.getElementsByName('c'+i);
for(var j=0;j<checkbox.length;j++){
checkbox[j].disabled=false;
}
if(n!=-1){
checkbox=document.getElementsByName('c'+n);
for(var j=0;j<checkbox.length;j++){
checkbox[j].disabled=true;
}
}
n=i;
break;
}
}
The
}
</SCRIPT>
</HEAD>
<BODY>
<INPUT TYPE="radio" NAME="one" onclick=test() />
<INPUT TYPE="checkbox" NAME="c0" disabled>
<INPUT TYPE="checkbox" NAME="c0" disabled>
<INPUT TYPE="checkbox" NAME="c0" disabled>
<br>
<INPUT TYPE="radio" NAME="one" onclick=test() />
<INPUT TYPE="checkbox" NAME="c1" disabled>
<INPUT TYPE="checkbox" NAME="c1" disabled>
<INPUT TYPE="checkbox" NAME="c1" disabled>
<br>
<INPUT TYPE="radio" NAME="one" onclick=test() />
<INPUT TYPE="checkbox" NAME="c2" disabled>
<INPUT TYPE="checkbox" NAME="c2" disabled>
<INPUT TYPE="checkbox" NAME="c2" disabled>
<br>
<INPUT TYPE="radio" NAME="one" onclick=test() />
<INPUT TYPE="checkbox" NAME="c3" disabled>
<INPUT TYPE="checkbox" NAME="c3" disabled>
<INPUT TYPE="checkbox" NAME="c3" disabled>
<br>
<INPUT TYPE="radio" NAME="one" onclick=test() />
<INPUT TYPE="checkbox" NAME="c4" disabled>
<INPUT TYPE="checkbox" NAME="c4" disabled>
<INPUT TYPE="checkbox" NAME="c4" disabled>
<br>
<INPUT TYPE="radio" NAME="one" onclick=test() />
<INPUT TYPE="checkbox" NAME="c5" disabled>
<INPUT TYPE="checkbox" NAME="c5" disabled>
<INPUT TYPE="checkbox" NAME="c5" disabled>
<br>
<INPUT TYPE="radio" NAME="one" onclick=test() />
<INPUT TYPE="checkbox" NAME="c6" disabled>
<INPUT TYPE="checkbox" NAME="c6" disabled>
<INPUT TYPE="checkbox" NAME="c6" disabled>
<br>
<INPUT TYPE="radio" NAME="one" onclick=test() />
<INPUT TYPE="checkbox" NAME="c7" disabled>
<INPUT TYPE="checkbox" NAME="c7" disabled>
<INPUT TYPE="checkbox" NAME="c7" disabled>
<br>
</BODY>
</HTML> |
|