ภาพก่อนคลิก
ภาพหลังคลิก
เมื่อคลิกที่ช่อง checkbox ระบบจึงจะแสดงปุ่ม Download ออกมา
นี่ก็เป็นอีกวิธีการหนึ่งที่ช่วยเสริมระบบความปลอดภัยของข้อมูล ความถูกต้องของระบบและระหว่างผู้ใช้งานกับระบบ ซึ่งจะเครื่องมือที่ช่วยบอกว่าคุณได้ยอมรับขั้นตอนต่างๆของระบบ
โค้ด
<script type="text/javascript">
var enableDownloadButtonPD = 0;function enableDownloadPD() { if (enableDownloadButtonPD == 0) { document.forms['phocadownloadform'].elements['pdlicensesubmit'].disabled=false; enableDownloadButtonPD = 1; } else { document.forms['phocadownloadform'].elements['pdlicensesubmit'].disabled=true; enableDownloadButtonPD = 0; }}
</script>
<form action="" method="post" name="phocaDownloadForm" id="phocadownloadform"><input type="checkbox" name="license_agree" onclick="enableDownloadPD()" /> <span>ยอมรับเงื่อนไข (Accept)</span> <input type="submit" name="submit" id="pdlicensesubmit" value="Download" /><input type="hidden" name="download" value="278" /> </form><script type='text/javascript'>document.forms['phocadownloadform'].elements['pdlicensesubmit'].disabled=true</script>
ไม่มีความเห็น