📄 logins.asp
字号:
<%
sub logins()
dim url,comeurl
url=Request.ServerVariables("HTTP_REFERER")%>
<style>
TD{font-size: 9pt; color: #000000}
.out{font-size: 9pt; color: #000000;border-width:1px;border-style:solid;border-color:0078B8 5585BE 0078B8 4A87CD;cursor:hand; background:#D0E2FD; text-align: center}
.out2 {text-align: center}
.in,.out2{font-size: 9pt; color: #000000;border-width:1px;border-style:solid;border-color:0078B8 4A87CD 4A87CD 0078B8;background:#EFF5FE;cursor:default}
</style>
<div id="menu_0" style="position: absolute; top: 159; left: 280; width: 339;">
<table border="0" width="100%" style="background-color: #EFF5FE" cellspacing="0" cellpadding="0" height="19">
<tr>
<td width="277" class="out" height="19" style="cursor: default"> </td>
<td width="65" class="out" height="19" onmousedown="Show_menu(1,0)" onmouseup="returnIT()">管理员登录</td>
</tr>
</table>
<div id="div_0" style="position: relative; width: 339; height: 1; overflow: hidden">
<table border="0" width="100%" style="background-color: #EFF5FE" cellspacing="0" cellpadding="0" height="182">
<tr>
<td width="100%" height="182"> <form name="admininfo" id="form_0" style="position: relative; left:70; top:10;font-family: Arial; display: none" action="admin/chkadmin.asp" method="post" align="center">
当前用户类型:网站管理员 <br>
<br>
管理员:
<input class="in" style="WIDTH: 100px" size="20" name="admin">
<br>
密 码:
<input class="in" type="password" size="15" name="password">
<br>
<br>
<input class="out" onClick="return checkadmin();" onfocus="this.blur()" type="submit" value="登录系统">
</form>
</td>
</tr>
</table>
</div>
</div>
<div id="menu_1" style="position: absolute; top: 178; left: 280; width: 339">
<table border="0" width="100%" style="background-color: #EFF5FE" cellspacing="0" cellpadding="0" height="19">
<tr>
<td width="277" class="out" height="19" style="cursor: default"> </td>
<td width="65" class="out" height="19" onmousedown="Show_menu(0,1)" onmouseup="returnIT()">用户登录</td>
</tr>
</table>
<div id="div_1" style="position: relative; width: 339; height: 182; overflow: hidden">
<table border="0" width="100%" style="background-color: #EFF5FE" cellspacing="0" cellpadding="0" height="100%">
<tr>
<td width="100%" height="182"> <form name="userinfo"id="form_1" style="position: relative; left:70; top:10;font-family: Arial; display: block" action="chkuser.asp" method="post" align="center">
当前用户类型:普通用户 <br>
<br>
用户名:
<input class="in" style="WIDTH: 100px" size="20" name="username">
<a href=reg.asp>还没有注册?</a><br>
密 码:
<input class="in" type="password" size="15" name="userpassword">
<input name="comeurl" type="hidden" value="<%=url%>">
<a href=myuser.asp?action=repass>忘记密码?</a><br>
<br>
<input name="Submit" onClick="return checkuser();" type="submit" class="out" onfocus="this.blur()" value="登录系统">
</form>
</td>
</tr>
</table>
</div>
</div>
<script>
var temp_num = null;
var now_num = null;
var the_top = 159; //表单的最高,最低
var the_bottom = 178
var no_can_do = false;
function Show_menu(u_num,d_num)
{
event.srcElement.className = "out2";
if(no_can_do)
{
return;
}
now_num = d_num;
if(temp_num)
{
if(document.getElementById("menu_"+temp_num).doing)
{
clearInterval(document.getElementById("menu_"+temp_num).doing);
}
}
else
{
temp_num = u_num;
}
document.getElementById("menu_"+temp_num).doing = setInterval("set_menu()",10);
}
function set_menu()
{
no_can_do = true;
document.getElementById("form_"+temp_num).style.display = "none";
var if_move = document.getElementById("div_"+temp_num).style.pixelHeight - 6;
if(if_move>1)
{
document.getElementById("div_"+temp_num).style.pixelHeight = if_move;
}
else
{
document.getElementById("div_"+temp_num).style.pixelHeight = 1;
var if_stop = document.getElementById("menu_"+temp_num).style.pixelTop - 1;
if(if_stop>the_top)
{
document.getElementById("menu_"+temp_num).style.pixelTop = if_stop;
document.getElementById("menu_"+now_num).style.pixelTop += 1;
}
else
{
document.getElementById("menu_"+temp_num).style.pixelTop = the_top;
document.getElementById("menu_"+now_num).style.pixelTop = the_bottom;
var if_end = document.getElementById("div_"+now_num).style.pixelHeight + 6;
if(if_end < 182)
{
document.getElementById("div_"+now_num).style.pixelHeight = if_end
}
else
{
document.getElementById("div_"+now_num).style.pixelHeight = 182;
clearInterval(document.getElementById("menu_"+temp_num).doing);
document.getElementById("menu_"+temp_num).doing = false;
document.getElementById("form_"+now_num).style.display = "block";
temp_num = null;
no_can_do = false;
}
}
}
}
function returnIT()
{
event.srcElement.className = "out";
}
</script>
<script LANGUAGE="javascript">
<!--
function checkspace(checkstr) {
var str = '';
for(i = 0; i < checkstr.length; i++) {
str = str + ' ';
}
return (str == checkstr);
}
function checkadmin()
{
if(checkspace(document.admininfo.admin.value)) {
document.admininfo.admin.focus();
alert("管理员不能为空!");
return false;
}
if(checkspace(document.admininfo.password.value)) {
document.admininfo.password.focus();
alert("密码不能为空!");
return false;
}
}
function checkuser()
{
if(checkspace(document.userinfo.username.value)) {
document.userinfo.username.focus();
alert("用户名不能为空!");
return false;
}
if(checkspace(document.userinfo.userpassword.value)) {
document.userinfo.userpassword.focus();
alert("密码不能为空!");
return false;
}
}
//-->
</script>
<%end sub%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -