代码如下:
<!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=gbk"'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