我有一个页面,用户必须在其中检查单选按钮 - 如果他是新用户,他将被重定向到不同的页面。
如果他是现有用户并且他选中此按钮,则会出现 2 个框:username
和password
由于某种原因,此脚本不适用于 chrome。
谢谢您的帮助
<script>
function dispLoing(val)
{
var obj = document.getElementById ?
document.getElementById("loginForm").style :
document.all ?
document.all.loginForm :
document.loginForm;
if (val == "new")
{
document.all.login(0).checked = true;
obj.display = "none";
}
if (val == "existing")
{
document.all.login(1).checked = true;
obj.display = "";
}
}
</script>
<td>
<span id = "loginForm" style = "position: relative; top: 0px; left: 0px;
z-index:80; display:none;">
<table border=0>
<tr>
<td>
<font style = "font-size: 14px">Username:</font>
</td>
<td>
<input type = "text" name = "username"
style = "width: 100px; height:17px; font-size: 12px;">
</td>
</tr>
<tr>
<td>
<font style = "font-size: 14px">Password:</font>
</td>
<td>
<input type = "password" name = "pass"
style = "width: 100px; height: 17px; font-size: 12px;">
</td>
</tr>
</table>
</span>