html5注冊頁面示例代碼
來源:易賢網(wǎng) 閱讀:1447 次 日期:2016-06-23 09:24:38
溫馨提示:易賢網(wǎng)小編為您整理了“html5注冊頁面示例代碼”,方便廣大網(wǎng)友查閱!

代碼如下:

<!doctype html>

<html>

<head>

<title>register.html</title>

<meta http-equiv=keywords content=keyword1,keyword2,keyword3>

<meta http-equiv=description content=this is my page>

<meta http-equiv=content-type content=text/html; charset=utf-8>

<link rel=shortcut icon href=favicon.ico />

<link rel=stylesheet type=text/css href=css/register.css />

<script src=js/checkbox.js type=text/javascript>

</script>

<script type=text/javascript>

function play(){

document.getelementbyid(menu_item).style.display = ;

}

function noplay(){

document.getelementbyid(menu_item).style.display = none;

}

function passwd(){

var pass = document.getelementbyid(password).value;

var tip = document.getelementbyid(tip);

if (pass.length < 4) {

document.getelementbyid(meter).value = pass.length;

tip.innerhtml = 差;

}

else

if (pass.length <= 8) {

document.getelementbyid(meter).value = pass.length;

tip.innerhtml = 中;

}

else {

document.getelementbyid(meter).value = pass.length;

tip.innerhtml = 高;

}

}

</script>

</head>

<body>

<div id=3 style=position: relative; top: 100px; z-index: 3;>

<form id=f1 action=register.html method=post>

<table align=center cellspacing=0 class=table>

<tr class=thead>

<td align=center>

會員注冊

</td>

</tr>

<tr>

<td>

<table id=registertable border=0px align=center border=0px cellspacing=0 cellpadding=5px>

<tr>

<tr>

<td align=right>

員工編號:

</td>

<td align=left>

<input type=text name=username placeholder=用戶名 required/>

</td>

</tr>

<tr>

<td align=right>

密 碼:

</td>

<td align=left>

<input type=password name=password id=password placeholder=密碼 required onkeyup=passwd()/>

<meter min=1 max=10 low=5 high=8 value=0 id=meter>

</meter>

<span id=tip></span>

</td>

</tr>

<tr>

<td align=right>

密碼確認:

</td>

<td align=left>

<input type=password name=password2 placeholder=確認密碼 required/>

</td>

</tr>

<tr>

<td align=right>

生 日:

</td>

<td align=left>

<input type=date name=borthday />

</td>

</tr>

<tr>

<td align=right>

性 別:

</td>

<td align=left>

<input type=radio name=gender value=0 checked/>男

<input type=radio name=gender value=1/>女

</td>

</tr>

<tr>

<td align=right>

郵 箱:

</td>

<td align=left>

<input type=email name=email placeholder=郵箱 id=email required/>

</td>

</tr>

<tr>

<td align=right>

手 機:

</td>

<td align=left>

<input type=tel pattern=[0-9]{11} id=p name=phone placeholder=請輸入11位數(shù)字 />

</td>

</tr>

<tr>

<td align=right>

地 址:

</td>

<td align=left>

<input type=text name=address placeholder=地址 list=l/>

<datalist id=l>

<option value=sh>上海</option>

<option value=bj>北京</option>

<option value=js>江蘇</option>

<option value=zz>鄭州</option>

<option value=sz>深圳</option>

</datalist>

</td>

</tr>

<tr>

<td align=right>

個人網(wǎng)頁:

</td>

<td align=left>

<input type=url name=page placeholder=主頁網(wǎng)址 />

</td>

</tr>

<tr>

<td align=right>

起床時間:

</td>

<td align=left>

<input type=time name=bed onblur=pro()/>

</td>

</tr>

<tr>

<td align=right>

頭像:

</td>

<td align=left>

<input type=file id=f accept=image/jpeg onchange=show()/><span><img id=img src= width=60 height=60 /></span>

<script>

function show(){

var file = document.getelementbyid(f).files[0];

var filereader = new filereader();

filereader.readasdataurl(file);

filereader.onload = function(){

document.getelementbyid(img).src = filereader.result;

}

}

</script>

</td>

</tr>

<tr>

<td colspan=2>

<details>

<p>

允許注冊

<mark>

許可證

</mark>信息

</p>

<summary>

注冊許可信息

</summary>

</details>

</td>

</tr>

<tr>

<td align=right>

驗證碼:

</td>

<td valign=middle>

<input type=text name=captcha size=11 maxlength=4 title=輸入右邊的驗證碼 />

<span id=span></span>

<script>

var span = document.getelementbyid(span);

span.innerhtml=math.floor(math.random());

</script>

</td>

</tr>

<tr height=60px>

<td align=center colspan=2>

<input type=button value=轉(zhuǎn)到登錄 onclick=window.location.replace('login.html') id=btn1 onmousemove=changebgcolor('btn1') onmouseout=recoverbgcolor('btn1') class=submit /> <input type=submit accesskey=enter value=注冊 id=btn onmousemove=changebgcolor('btn') onmouseout=recoverbgcolor('btn'); class=submit formmethod=post/>

</td>

</tr>

</table>

</td>

</tr>

</table>

</form>

</div>

</body>

</html>

代碼如下:

body {

background-image: url(../images/bg.jpg);

text-align: center;

background-repeat: repeat-x;

background-position: 0px 0px ;

background-size:

}

.table {

border: 1px solid #90bfff;

width:810px;

}

tr {

font-family: 微軟雅黑;

font-weight:800;

color: #448ef3;

}

input{

border: 1px solid #448ef3;

color: #448ef3;

font-weight:bold;

font-family: 微軟雅黑;

height: 35px;

line-height: 30px;

border-radius:5px;

}

.submit {

width: 150px;

height: 40px;

cursor :hand;

font-size: 20px;

color: #ffffff;

background-color: #448ef3;

border: 0px;

}

.thead {

height: 40px; background : #90bfff;

font-family: 微軟雅黑;

font-size: 30px;

font-weight: 700;

color: #ffffff;

background: #90bfff;

}

#3{

margin-bottom: 100px;

}

代碼如下:

function chkallclick(sonname, cballid){

var arrson = document.getelementsbyname(sonname);

var cball = document.getelementbyid(cballid);

var tempstate=cball.checked;

for(i=0;i<arrson.length;i++) {

if(arrson[i].checked!=tempstate)

arrson[i].click();

}

}

function chksonclick(sonname, cballid) {

var arrson = document.getelementsbyname(sonname);

var cball = document.getelementbyid(cballid);

for(var i=0; i<arrson.length; i++) {

if(!arrson[i].checked) {

cball.checked = false;

return;

}

}

cball.checked = true;

}

function chkoppclick(sonname){

var arrson = document.getelementsbyname(sonname);

for(i=0;i<arrson.length;i++) {

arrson[i].click();

}

}

function changebgcolor(btn){

var btn = document.getelementbyid(btn);

btn.style.backgroundcolor = #90bfff

}

function recoverbgcolor(btn){

var btn = document.getelementbyid(btn);

btn.style.backgroundcolor = #448ef3

}

------------------------------------------------

上面文件的順序是:register.html register.css checkbox..js

-------------------------------------------------

背景圖片:bg.jpg

更多信息請查看網(wǎng)頁制作
易賢網(wǎng)手機網(wǎng)站地址:html5注冊頁面示例代碼
由于各方面情況的不斷調(diào)整與變化,易賢網(wǎng)提供的所有考試信息和咨詢回復僅供參考,敬請考生以權(quán)威部門公布的正式信息和咨詢?yōu)闇剩?/div>

2025國考·省考課程試聽報名

  • 報班類型
  • 姓名
  • 手機號
  • 驗證碼
關(guān)于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 加入群交流 | 手機站點 | 投訴建議
工業(yè)和信息化部備案號:滇ICP備2023014141號-1 云南省教育廳備案號:云教ICP備0901021 滇公網(wǎng)安備53010202001879號 人力資源服務許可證:(云)人服證字(2023)第0102001523號
聯(lián)系電話:0871-65099533/13759567129 獲取招聘考試信息及咨詢關(guān)注公眾號:hfpxwx
咨詢QQ:526150442(9:00—18:00)版權(quán)所有:易賢網(wǎng)