📄 useradd.asp
字号:
<!-- #include file="usertop.asp" -->
<html>
<head>
<script language="javascript">
function check()
{
if(document.formadd.user.value=="")
{
document.getElementById("1").innerHTML = " <font color=red>*用户名不能为空! </font>";
return false;
}
var str1 = document.getElementById("user").value;
if(str1.length>12)
{
document.getElementById("1").innerHTML = "<font color=red>*大于12个字符!</font>";
return false;
}
if(document.formadd.pass.value=="")
{
document.getElementById("2").innerHTML = " <font color=red>*密码不能为空! </font>";
return false;
}
var str2 = document.getElementById("pass").value;
if(str2.length>12)
{
document.getElementById("2").innerHTML = "<font color=red>*大于12个字符!</font>";
return false;
}
return true;
}
</script>
<script language="javascript" type="text/javascript">
function check1()
{
var stra = document.getElementById("user").value;
if(stra.length!=0 || stra.length<=12)
{
document.getElementById("1").innerHTML = "";
}
var strb = document.getElementById("pass").value;
if(strb.length!=0 || strb.length<=12)
{
document.getElementById("2").innerHTML = "";
}
}
</script>
</head>
<body>
<table align="center" background="images/body3.gif" width="776" height="357">
<tr><td>
<h4>请输入新添加用户的数据</h4>
<form method="post" name="formadd" action="userappend.asp">
<table border="0" width="410">
<tr><td height="33">用户名:</td>
<td><input type="text" name="user" size="12" onBlur="return check1()">(* 必填,最长12个字符)</td>
<td align="left" width="30%"><span id="1"></span></td>
</tr>
<tr><td height="33">密 码:</td>
<td><input type="text" name="pass" size="12" onBlur="return check1()">(* 必填,最长12个字符)</td>
<td><span id="2"></span></td>
</tr>
<tr><td height="34">权 限:</td>
<td align="left"><select size="1" name="level">
<option value=1>1</option>
<option value=2>2</option>
<option value=3>3</option>
</select>
</td>
</tr>
</table>
<p>
<input type="submit" value="确定" name="add" onClick="return check()">
<input type="reset" value="取消" name="res">
</form>
</td></tr>
</table>
<!-- #include file="userbottom.asp" -->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -