Home > Web Front-end > H5 Tutorial > body text

HTML5 registration page sample code_html5 tutorial skills

WBOY
Release: 2016-05-16 15:48:19
Original
2081 people have browsed it

Copy code
The code is as follows:




register.html



















会员注册


























































员工编号:



密 码:






密码确认:



生 日:



性 别:




邮 箱:



手 机:



地 址:










个人网页:



起床时间:



头像:


<script> <br>function show(){ <br>var file = document.getElementById("f").files[0]; <br>var fileReader = new FileReader(); <br>fileReader.readAsDataURL(file); <br>fileReader.onload = function(){ <br>document.getElementById("img").src = fileReader.result; <br>} <br>} <br></script>



允许注册

许可证
信息



注册许可信息



验证码:



<script> <br>var span = document.getElementById("span"); <br>span.innerHTML=Math.floor(Math.random()); <br></script>










复制代码
代码如下:

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;iif(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; iif(!arrSon[i].checked) {
cbAll.checked = false;
return;
}
}
cbAll.checked = true;
}
function ChkOppClick(sonName){
var arrSon = document.getElementsByName(sonName);
for(i=0;iarrSon[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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template