我做的一个登录页面,哪里错了呢??就是载入的时候隐藏那两个层,选择select的时候显示,然后提交
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns= "http://www.w3.org/1999/xhtml ">
<head>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 " />
<title> 内部人员登录页面 </title>
<style type= "text/css ">
<!--
#Layer1 {
position:absolute;
width:115px;
height:38px;
z-index:1;
left: 105px;
top: 333px;
}
#Layer2 {
position:absolute;
width:233px;
height:45px;
z-index:2;
left: 104px;
top: 382px;
}
#Layer3 {
position:absolute;
width:230px;
height:51px;
z-index:3;
left: 105px;
top: 382px;
}
#Layer4 {
position:absolute;
width:42px;
height:20px;
z-index:4;
left: 255px;
top: 473px;
}
-->
</style>
<script language= "javascript ">
function submits()
{
if(document.Layer2.display== "block ")
window.action= " ";
document.form1.submit();
else if(document.Layer3.display== "block ")
window.action= " ";
document.form1.submit();
}
function displays()
{
document.Layer3.display= "none ";
document.Layer2.display= "block ";
}
function selectoption()
{
if(document.form1.selects.value==普通员工登录)
document.Layer2.display= "block ";
else if(document.form1.selects.value==管理员登录)
document.Layer3.display= "block ";
}
</script>
</head>
<body OnLoad= "displays() ">
<div id= "Layer3 ">
<table width= "231 " height= "51 " border= "0 ">
<tr>
<td width= "86 "> 管理员用户名: </td>
<td width= "135 "> <form id= "form3 " name= "form3 " method= "post " action= " ">
<label>
<input type= "text " name= "text2 " />
</label>
</form>
</td>
</tr>
<tr>
<td> 密码: </td>
<td> <input type= "password " name= "pass2 " /> </td>
</tr>
</table>
</div>
<div id= "Layer1 ">
<form id= "form1 " name= "form1 "