<Html>
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
<Title> webpage special effect code | ffasp.com | --- check box select all, deselect all, and invert effect implementation </title>
<Script language = "JavaScript">
<! -- Begin
Function checkAll (){
For (var j = 1; j <= 9; j ++ ){
Box = eval ("document. checkboxform. C" + j );
If (box. checked = false) box. checked = true;
}
}
Function uncheckAll (){
For (var j = 1; j <= 9; j ++ ){
Box = eval ("document. checkboxform. C" + j );
If (box. checked = true) box. checked = false;
}
}
Function switchAll (){
For (var j = 1; j <= 9; j ++ ){
Box = eval ("document. checkboxform. C" + j );
Box. checked =! Box. checked;
}
}
// End -->
</Script>
</Head>
<Body>
<Form name = checkboxform>
<Input type = checkbox name = C1 checked> C1 <br>
<Input type = checkbox name = C2 checked> C2 <br>
<Input type = checkbox name = C3 checked> C3 <br>
<Input type = checkbox name = C4 checked> C4 <br>
<Input type = checkbox name = C5 checked> C5 <br>
<Input type = checkbox name = C6 checked> C6 <br>
<Input type = checkbox name = C7 checked> C7 <br>
<Input type = checkbox name = C8 checked> C8 <br>
<Input type = checkbox name = C9 checked> C9 <br>
<Br>
<Input type = button value = "select all" onClick = "checkAll ()"> <br>
<Input type = button value = "do not select all" onClick = "uncheckAll ()"> <br>
<Input type = button value = "select conversion" onClick = "switchAll ()"> <br>
</Form>
</Body>
</Html>