下面的代码运行出错
<html>
<head>
<script language="javascript">
function chk(){
var UserName;
var Pwd;
UserName=document.getElementById("Bcuser").value;
Pwd=document.getElementById("Bcpass").value;
if (UserName.length<0){
document.getElementById("landout").style.display="none";
document.getElementById("landover").style.display="black";
}
else{
document.getElementById("landout").style.display="black";
document.getElementById("landover").style.display="none";
}
}
function a(){
alert(Date());
}
</script>
</head>
<!--style="display: none" 登陆-->
<div class="top4" id="landout" style="display: black">
<form action="index.asp" method="post">
<table>
<tr>
<td id="td2">用户名称:</td>
<td id="td3"><input name="Bcuser" type="text" maxlength="15" id="Bcuser"/></td>
<td id="td4"><input name="Normal" type="image" src="images/dl.jpg" /></td>
</tr>
<tr>
<td id="td2">用户密码:</td>
<td id="td3"><input name="Bcpass" type="password" maxlength="15" id="Bcpass"/></td>
<td id="basicModal"><input name="basic" type="image" src="images/zc.jpg" /></td>
</tr>
<tr>
<td> <input type="button" value="提交" onclick="chk()"></td>
</tr>
</table>
</form>
</div>
<!--style="display: none" 显示会员-->
<div class="top7" id="landover" style="display: none" >
<ul id="top8">
<li>用户名称:<%%></li>
</ul>
</div>
</html>
你好!!
现在你的问题是div显示不出来么?
......... .style.display="black"; --->> "block"