Indonesia
<!-- 把如下代码加入<body>区域中 --> <SCRIPT LANGUAGE="JavaScript"> <!-- Mulai fungsi anyCheck(form) { var total = 0; var max = form.ckbox.panjang; for (var idx = 0; idx < max; idx++) { if (eval("document.playlist.ckbox[" + idx + "].checked") == true) { total += 1; } } alert("你选择了 " + jumlah + " 个选项."); } // Selesai --> </script> <form method="post" name=playlist> 1<input type=checkbox name=ckbox> 2<input type=checkbox name=ckbox> 3<input type=checkbox name= ckbox> 4<tipe input=nama kotak centang=ckbox> 5<tipe input=nama kotak centang=ckbox> 6<tipe input=nama kotak centang=ckbox> 7<tipe input=nama kotak centang=ckbox> 8<tipe input=nama kotak centang= ckbox> 9<input type=checkbox name=ckbox> <p><center><input type=button value="检测选择个数" onClick="anyCheck(this.form)"> </center></form>