HTML繪制用戶注冊(cè)頁(yè)面
發(fā)布時(shí)間:2016-06-16 15:31:00 作者:佚名
我要評(píng)論

這篇文章主要為大家詳細(xì)介紹了HTML繪制用戶注冊(cè)頁(yè)面的的相關(guān)代碼,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下
本文實(shí)例為大家分享了HTML繪制用戶注冊(cè)頁(yè)面的具體實(shí)現(xiàn)代碼,供大家參考,具體內(nèi)容如下
XML/HTML Code復(fù)制內(nèi)容到剪貼板
- <html>
- <head>
- <script>
- function aa()
- {
- var s;
- s=reg.user.value;
- alert("用戶名是"+s);
- }
- function aa2(t)
- {
- var p1,p2;
- alert(t);
- p1=reg.pass1.value;
- p2=reg.pass2.value;
- if(p1!=p2)
- alert("兩次密碼不一致");
- }
- </script>
- </head>
- <body>
- <h1 align="center">注冊(cè)</h1>
- <table align="center" border="2" width="400" bgcolor="pink">
- <form name="reg">
- <tr><td>用戶名</td><td><input type="text" name="user"></td></tr>
- <tr><td>密碼</td><td><input type="password" name="pass1"></td></tr>
- <tr><td>確認(rèn)密碼</td><td><input type="password" name="pass2" onblur="aa2(this)"></td></tr>
- <tr><td>性別</td><td><input type="radio" name="sex" value="1">男<input type="radio" name="sex" value="2" checked>女</td></tr>
- <tr><td>愛(ài)好</td><td><input type="checkbox" name="hb1" value="ft">足球 <input type="checkbox" name="hb2" value="ms">音樂(lè)<input
- type="checkbox" name="hb3" value="tor" />旅游</td></tr>
- <tr><td colspan="2"><input type="file" name="f1" /></td></tr>
- <tr><td>學(xué)院</td><td>
- <select name="s">
- <option value="1" selected>信息學(xué)院</option>
- <option value="2">管理學(xué)院</option>
- <option value="3">機(jī)電學(xué)院</option>
- </select>
- <tr><td colspan="2" align="center"><input type="button" value="提交" onclick="aa()" /> <input type="reset" value="重置" /></td></tr>
- </form>
- </body>
- </html>
相關(guān)文章
Html5實(shí)現(xiàn)用戶注冊(cè)自動(dòng)校驗(yàn)功能實(shí)例代碼
這篇文章主要介紹了 Html5實(shí)現(xiàn)用戶注冊(cè)自動(dòng)校驗(yàn)功能實(shí)例代碼的相關(guān)資料,需要的朋友可以參考下2016-05-24- 這篇文章主要介紹了HTML用戶注冊(cè)頁(yè)面設(shè)置源碼,代碼簡(jiǎn)單易懂,對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2020-10-16