📄 ad_login.asp
字号:
<%@language=vbscript codepage=936 %>
<%
option explicit
'强制浏览器重新访问服务器下载页面,而不是从缓存读取页面
Response.Buffer = True
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.Expires = 0
Response.CacheControl = "no-cache"
'主要是使随机出现的图片数字随机
%>
<html>
<head>
<title>管理员登录</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="Ad_Style.css">
<script language=javascript>
<!--
function SetFocus()
{
if (document.Login.UserName.value=="")
document.Login.UserName.focus();
else
document.Login.UserName.select();
}
function CheckForm()
{
if(document.Login.UserName.value=="")
{
alert("请输入用户名!");
document.Login.UserName.focus();
return false;
}
if(document.Login.Password.value == "")
{
alert("请输入密码!");
document.Login.Password.focus();
return false;
}
if (document.Login.CheckCode.value==""){
alert ("请输入您的验证码!");
document.Login.CheckCode.focus();
return(false);
}
}
function CheckBrowser()
{
var app=navigator.appName;
var verStr=navigator.appVersion;
if (app.indexOf('Netscape') != -1) {
alert("网站提示:\n 您使用的是Netscape浏览器,可能会导致无法使用后台的部分功能。建议您使用 IE6.0 或以上版本。");
}
else if (app.indexOf('Microsoft') != -1) {
if (verStr.indexOf("MSIE 3.0")!=-1 || verStr.indexOf("MSIE 4.0") != -1 || verStr.indexOf("MSIE 5.0") != -1 || verStr.indexOf("MSIE 5.1") != -1)
alert("网站提示:\n 您的浏览器版本太低,可能会导致无法使用后台的部分功能。建议您使用 IE6.0 或以上版本。");
}
}
//-->
</script>
</head>
<body class="tdbg">
<form name="Login" action="ad_ChkLogin.asp" method="post" target="_parent" onSubmit="return CheckForm();">
<table width="100%" height="80%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<table width="507" height="218" border="0" align="center" cellpadding="0" cellspacing="5" background="images/ad_logon_bg.jpg">
<tr>
<td height="20" colspan="2"> </td>
</tr>
<tr>
<td colspan="2">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="" onfocus="this.blur()"><img src="images/LOGO.gif" width="234" height="60" border="0"></a></td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td width="185" align="right"><b>用户名:</b></td>
<td><input name="UserName" type="text" maxlength="20" id="UserName4" style="BORDER-RIGHT: #ffffff 1px groove; BORDER-TOP: #ffffff 1px groove; FONT: 12px Verdana,Geneva,sans-serif; BORDER-LEFT: #ffffff 1px groove; WIDTH: 120px; COLOR: #000000; BORDER-BOTTOM: #ffffff 1px groove; HEIGHT: 18px; BACKGROUND-COLOR: #dff1f9" onmouseover="this.style.background='#E1F4EE';" onmouseout="this.style.background='#dff1f9'" onFocus="this.select(); "></td>
</tr>
<tr>
<td align="right"><b>密 码:</b></td>
<td><input name="Password" type="password" maxlength="20" style="BORDER-RIGHT: #ffffff 1px groove; BORDER-TOP: #ffffff 1px groove; FONT: 12px Verdana,Geneva,sans-serif; BORDER-LEFT: #ffffff 1px groove; WIDTH: 120px; COLOR: #000000; BORDER-BOTTOM: #ffffff 1px groove; HEIGHT: 18px; BACKGROUND-COLOR: #dff1f9" onmouseover="this.style.background='#E1F4EE';" onmouseout="this.style.background='#dff1f9'" onFocus="this.select(); "></td>
</tr>
<tr>
<td align="right"><b>验证码:</b></td>
<td><input name="CheckCode" size="6" maxlength="4" style="BORDER-RIGHT: #ffffff 1px groove; BORDER-TOP: #ffffff 1px groove; FONT: 12px Verdana,Geneva,sans-serif; BORDER-LEFT: #ffffff 1px groove; WIDTH: 60px; COLOR: #000000; BORDER-BOTTOM: #ffffff 1px groove; HEIGHT: 18px; BACKGROUND-COLOR: #dff1f9" onmouseover="this.style.background='#E1F4EE';" onmouseout="this.style.background='#dff1f9'" onFocus="this.select(); ">
请在验证码框输入 <img src="inc/checkcode.asp"></td>
</tr>
<tr>
<td colspan="2">
<div align="center">
<input type="submit" name="Submit" value=" 确 认 " style="BACKGROUND: #eeeeee; BORDER-BOTTOM: #666666 1px groove; BORDER-RIGHT: #666666 1px groove; PADDING-TOP: 1px">
<input name="reset" type="reset" id="reset" value=" 清 除 " style="BACKGROUND: #eeeeee; BORDER-BOTTOM: #666666 1px groove; BORDER-RIGHT: #666666 1px groove; PADDING-TOP: 1px">
<br>
</div></td>
</tr>
</table></td>
</tr>
</table>
</form>
<script language="JavaScript" type="text/JavaScript">
CheckBrowser();
SetFocus();
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -