📄 login.asp
字号:
<%@ language=vbscript codepage="936" %>
<%
dim s
randomize timer
s=Int((8999)*Rnd +1000)
%>
<html>
<head>
<title>管理员登陆</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style>
BODY {background-image: URL(images/login.jpg);
background-position: center;
background-repeat: no-repeat;
background-attachment: fixed;}
td { font-size:9pt;}
body { font-size:9pt;color:#FFFFFF}
INPUT {
BACKGROUND: #E8Efd7; BORDER-BOTTOM: #FFFFFF 1px solid; BORDER-LEFT: #FFFFFF 1px solid; BORDER-RIGHT: #FFFFFF 1px solid; BORDER-TOP: #FFFFFF 1px solid; COLOR: #FFFFFF; FONT-SIZE: 9pt;color:#000000; HEIGHT: 20px
}
textarea { BORDER: #FFFFFF 1px solid; FONT-SIZE: 9pt; COLOR:#000000; background:#ffffff; }
select { BORDER: #FFFFFF 1px solid; FONT-SIZE: 9pt; COLOR:#000000; background:#ffffff; }
.table002 { font-size: 9pt; border:1px #5EABD0 solid}
a:visited {
color: #FFFFFF;
text-decoration: none;
}
a:link {
color: #FFFFFF;
text-decoration: none;
}
a:hover {
color: #FFFFFF;
text-decoration: none;
}
</style>
<script language=javascript>
function xxg()
{
if (document.form1.user.value==""){
alert("您的姓名?")
document.form1.user.focus();
return false
}
if (document.form1.password.value==""){
alert("您的密码?");
document.form1.password.focus();
return false
}
return true
}
</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
<body bgcolor="#C2C9DC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="snow()" oncontextmenu="return false;" onselectstart="return false;">
<script language="JavaScript">
<!--
N = 70;
Y = new Array();
X = new Array();
S = new Array();
A = new Array();
B = new Array();
M = new Array();
V = (document.layers)?1:0;
iH=(document.layers)?window.innerHeight:window.document.body.clientHeight;
iW=(document.layers)?window.innerWidth:window.document.body.clientWidth;
for (i=0; i < N; i++){
Y[i]=Math.round(Math.random()*iH);
X[i]=Math.round(Math.random()*iW);
S[i]=Math.round(Math.random()*5+2);
A[i]=0;
B[i]=Math.random()*0.1+0.1;
M[i]=Math.round(Math.random()*1+1);
}
if (V){
for (i = 0; i < N; i++)
{document.write("<LAYER NAME='sn"+i+"' LEFT=0 TOP=0 BGCOLOR='#FFFFF0' CLIP='0,0,"+M[i]+","+M[i]+"'></LAYER>")}
}
else{
document.write('<div style="position:absolute;top:0px;left:0px">');
document.write('<div style="position:relative">');
for (i = 0; i < N; i++)
{document.write('<div id="si" style="position:absolute;top:0;left:0;width:'+M[i]+';height:'+M[i]+';background:#fffff0;font-size:'+M[i]+'"></div>')}
document.write('</div></div>');
}
function snow(){
var H=(document.layers)?window.innerHeight:window.document.body.clientHeight;
var W=(document.layers)?window.innerWidth:window.document.body.clientWidth;
var T=(document.layers)?window.pageYOffset:document.body.scrollTop;
var L=(document.layers)?window.pageXOffset:document.body.scrollLeft;
for (i=0; i < N; i++){
sy=S[i]*Math.sin(90*Math.PI/180);
sx=S[i]*Math.cos(A[i]);
Y[i]+=sy;
X[i]+=sx;
if (Y[i] > H){
Y[i]=-10;
X[i]=Math.round(Math.random()*W);
M[i]=Math.round(Math.random()*1+1);
S[i]=Math.round(Math.random()*5+2);
}
if (V){document.layers['sn'+i].left=X[i];document.layers['sn'+i].top=Y[i]+T}
else{si[i].style.pixelLeft=X[i];si[i].style.pixelTop=Y[i]+T}
A[i]+=B[i];
}
setTimeout('snow()',50);
}
//-->
</script>
<center>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<form name="form1" method="post" action="loginchk.asp" onsubmit="return xxg()">
<fieldset style="padding: 2; width:370; height:120"> <legend>管理登陆</legend>
<br>
<br>
<table width="231" border="0" align="center" cellpadding="1" cellspacing="1" height="98">
<tr>
<td align="center" width="79">姓名:</td>
<td width="154"> <input type="text" name="user"> </td>
</tr>
<tr>
<td align="center" width="79">密码:</td>
<td width="154"> <input type="password" name="password"> </td>
</tr>
<tr>
<td align="center">认证码:</td>
<td>
<input name="s" type="text" size="10"> <b><%=s%></b>
<input maxlength=20 name="s2" size=12 type=hidden value="<%=s%>"></td>
</tr>
<tr>
<td colspan="2" align="center"> <input type="submit" name="Submit" value="登陆">
</td>
</tr>
</table>
</fieldset>
</form>
</center>
<br>
<br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -