![]() |
#2
netlin2012-09-17 23:54
|
代码如下

<!--#include file="../inc/conn.asp"-->
<html xmlns="http://www.>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><%=webname%></title>
<style type="text/css">
<!--
@import url("style.css");
body {
background-image: url(images/index_01.jpg);
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
body,td,th {
font-size: 12px;
}
.height {
height: 20px;
width: 120px;
}
.STYLE1 {
font-size: 14px;
color: #FF3300;
}
-->
</style>
<SCRIPT language=JavaScript>
<!--
function recheck()
{
if (document.form1.username.value =="")
{
alert("请填写登陆名!");
document.form1.username.focus();
return (false);
}
var filter=/^\s*[.A-Za-z0-9_-]{5,15}\s*$/;
if (!filter.test(document.form1.username.value)) {
alert("登陆名填写不正确(含有非法字符),请重新填写!");
document.form1.username.focus();
document.form1.username.select();
return (false);
}
if (document.form1.password.value =="")
{
alert("请填写密码!");
document.form1.password.focus();
return (false);
}
var filter=/^\s*[.A-Za-z0-9_-]{5,20}\s*$/;
if (!filter.test(document.form1.password.value)) {
alert("密码填写不正确(含有非法字符),请重新填写!");
document.form1.password.focus();
document.form1.password.select();
return (false);
}
if (document.form1.number.value==""){
alert("请输入认证码!");
document.form1.number.focus();
return (false);
}
return true;
}
//-->
</SCRIPT>
</head>
<%
randomize timer
checknumber=left(int((rnd*9999980)+100000),6)
session("checknumber")=checknumber
%>
<body>
<table width="491" height="72" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table>
<table width="491" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="72"> </td>
</tr>
</table>
<table width="491" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/index_06.jpg" width="491" height="67" alt="" /></td>
</tr>
</table>
<table width="491" height="168" border="0" align="center" cellpadding="0" cellspacing="0" background="images/index_07.jpg">
<tr>
<td><form id="form1" name="form1" method="post" action="checklogin.asp" onSubmit="return recheck(this)">
<table width="391" height="94" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="68" height="35" class="zi">用户名:</td>
<td width="175"><input name="username" type="text" class="height" id="username" value="" size="14" /></td>
<td width="148" rowspan="2"><div align="center">
<input name="submit" type="image" id="submit" src="images/dl.jpg"/>
</div></td>
</tr>
<tr>
<td height="35" class="zi">密 码:</td>
<td><input name="password" type="password" class="height" id="password" value="" size="14" /></td>
</tr>
<tr>
<td height="35" class="zi">验证码:</td>
<td colspan="2"><input name="number" type="text" class="height" id="number" value="" size="14" />
<span class="STYLE1"><%=session("checknumber")%></span></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<table width="491" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/index_08.jpg" width="491" height="126" alt="" /></td>
</tr>
</table>
</body>
</html>
<html xmlns="http://www.>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><%=webname%></title>
<style type="text/css">
<!--
@import url("style.css");
body {
background-image: url(images/index_01.jpg);
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
body,td,th {
font-size: 12px;
}
.height {
height: 20px;
width: 120px;
}
.STYLE1 {
font-size: 14px;
color: #FF3300;
}
-->
</style>
<SCRIPT language=JavaScript>
<!--
function recheck()
{
if (document.form1.username.value =="")
{
alert("请填写登陆名!");
document.form1.username.focus();
return (false);
}
var filter=/^\s*[.A-Za-z0-9_-]{5,15}\s*$/;
if (!filter.test(document.form1.username.value)) {
alert("登陆名填写不正确(含有非法字符),请重新填写!");
document.form1.username.focus();
document.form1.username.select();
return (false);
}
if (document.form1.password.value =="")
{
alert("请填写密码!");
document.form1.password.focus();
return (false);
}
var filter=/^\s*[.A-Za-z0-9_-]{5,20}\s*$/;
if (!filter.test(document.form1.password.value)) {
alert("密码填写不正确(含有非法字符),请重新填写!");
document.form1.password.focus();
document.form1.password.select();
return (false);
}
if (document.form1.number.value==""){
alert("请输入认证码!");
document.form1.number.focus();
return (false);
}
return true;
}
//-->
</SCRIPT>
</head>
<%
randomize timer
checknumber=left(int((rnd*9999980)+100000),6)
session("checknumber")=checknumber
%>
<body>
<table width="491" height="72" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table>
<table width="491" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="72"> </td>
</tr>
</table>
<table width="491" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/index_06.jpg" width="491" height="67" alt="" /></td>
</tr>
</table>
<table width="491" height="168" border="0" align="center" cellpadding="0" cellspacing="0" background="images/index_07.jpg">
<tr>
<td><form id="form1" name="form1" method="post" action="checklogin.asp" onSubmit="return recheck(this)">
<table width="391" height="94" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="68" height="35" class="zi">用户名:</td>
<td width="175"><input name="username" type="text" class="height" id="username" value="" size="14" /></td>
<td width="148" rowspan="2"><div align="center">
<input name="submit" type="image" id="submit" src="images/dl.jpg"/>
</div></td>
</tr>
<tr>
<td height="35" class="zi">密 码:</td>
<td><input name="password" type="password" class="height" id="password" value="" size="14" /></td>
</tr>
<tr>
<td height="35" class="zi">验证码:</td>
<td colspan="2"><input name="number" type="text" class="height" id="number" value="" size="14" />
<span class="STYLE1"><%=session("checknumber")%></span></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<table width="491" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/index_08.jpg" width="491" height="126" alt="" /></td>
</tr>
</table>
</body>
</html>