Indonesia
<!-- 把如下代码加入<body>区域中 --> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var checkflag = "false"; fungsi check(field) { if (checkflag == "false") { for (i = 0; i < field.length; i++) { field[i].checked = true;} checkflag = "true"; kembalikan "什么都不选"; } else { for (i = 0; i < field.length; i++) { field[i].checked = false; } bendera centang = "salah"; kembalikan "选中所有"; } } // Selesai --> </script> <form name=myform action="" method=post> <table> <tr><td> <b>请选择下面的选项</b><br> < tipe input=nama kotak centang=daftar nilai="1">Java<br> <tipe input=nama kotak centang=daftar nilai="2">JavaScript<br> <tipe input=nama kotak centang=daftar nilai="3">ASP <br> <tipe input=nama kotak centang=daftar nilai="4">HTML<br> <tipe input=nama kotak centang=daftar nilai="5">SQL<br> <br> <tipe input=button value="选中所有" onClick="this.value=check(this.form.list)"> </td></tr> </table> </form>