GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — javaScript/checkbox/checkbox.html at master · WLJProtect/javaScript Expand file tree/ Copy pathcheckbox.htmlMore file actions 48 lines (48 loc) · 1.25 KB / Copy pathcheckbox.htmlFile metadata and controls48 lines (48 loc) · 1.25 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> <style> *{ margin: 0; padding: 0; } .checkBoxClass{ display: none; } .checkBoxLabel{ background: url("images/UnCheck.png") no-repeat; padding-left: 30px; padding-top: 3px; margin: 5px; height: 25px; width: 50px; display: block; cursor: pointer; } .checkBoxLabel:hover{ text-decoration: underline; } .checkBoxSelected{ background: url("images/Check.png") no-repeat; } </style> </head> <body> <input id="checkbox1" class="checkBoxClass" type="checkbox"/> <label for="checkbox1" class="checkBoxLabel">选项1</label> <input id="checkbox2" class="checkBoxClass" type="checkbox"/> <label for="checkbox2" class="checkBoxLabel">选项2</label> </body> <script src="js/jquery-1.9.1.min.js"></script> <script> $('.checkBoxClass').on('change',function(){ if($(this).is(':checked')){ $(this).next().addClass('checkBoxSelected'); }else{ $(this).next().removeClass('checkBoxSelected'); } }); </script> </html> |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |