| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=BIG5"> | |
| <title>第一支javaScript</title> | |
| </head> | |
| <body> | |
| <form action="#" method="post" class="demoForm" id="demoForm"> | |
| <fieldset> | |
| <legend>Demo: Get Value of Selected</legend> | |
| <p>Select a shipping method:</p> | |
| <p> | |
| <label><input type="radio" name="ship" value="a" checked /> a)Standard Ground</label> | |
| <label><input type="radio" name="ship" value="b" />b) Second Day</label> | |
| <label><input type="radio" name="ship" value="c" /> c)Overnight</label> | |
| <label><input type="radio" name="ship" value="d" /> d)Pick up</label> | |
| </p> | |
| <p><button type="button" name="getVal">Get Value of Selected</button></p> | |
| </fieldset> | |
| </form> | |
| </Script> | |
| <script type="text/javascript"> | |
| // to remove from global namespace | |
| (function() { | |
| function getRadioVal(form, name) { | |
| var val; | |
| var radios = form.elements[name]; | |
| for (var i=0, len=radios.length; i<len; i++) { | |
| if ( radios[i].checked ) { | |
| val = radios[i].value; | |
| break; | |
| } | |
| } | |
| return val; | |
| } | |
| document.forms['demoForm'].elements['getVal'].onclick = function() { | |
| alert( 'The selected radio button\'s value is: ' + getRadioVal(this.form, 'ship') ); | |
| }; | |
| // disable submission of all forms on this page | |
| for (var i=0, len=document.forms.length; i<len; i++) { | |
| document.forms[i].onsubmit = function() { return false; }; | |
| } | |
| }()); | |
| </script> | |
| </body> | |
| </html> |
2016年4月29日 星期五
網頁試題
2016年4月22日 星期五
亂碼
下載XAMPP並開啟
使用 PHP 語言寫程式,最簡單的方式就是開啟文字編輯器 (text editor) ,然後將原始程式碼逐字元一個一個打進文字編輯器中,然後依純文字檔案的編碼儲存檔案, PHP 程式的原始碼檔案採用 .php 的副檔名。
將改好的檔案放到C:\xampp\htdocs\dashboard
編輯php.ini將UTF-8改成Big5
輸入ipconfig找出IP位址
在網頁輸入192.168.1.171/dashboard/demo.php
得此結果
2016年4月15日 星期五
第一支Android app程式教學
網址:http://readandplay.pixnet.net/blog/post/140001110-%E7%AC%AC%E4%B8%80%E6%94%AFandroid-app%E7%A8%8B%E5%BC%8F%E6%95%99%E5%AD%B8
訂閱:
意見 (Atom)






