login.jsp
来自「基于jsp的电子商务网站」· JSP 代码 · 共 100 行
JSP
100 行
<%@ page contentType="text/html; charset=gb2312" language="java" %>
<%@ page session="true" %>
<html>
<head>
<title>LEE电子商务--用户登录</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript">
function checkform() {
if (document.form1.username.value=="" || document.form1.passwd.value==""){
alert("用户名或密码为空!");
return false;
}
return true;
}
var msg=" 请使用IE5.5以上版本,800*600分辨率浏览 ";
var seq = 0;
function Scroll(){
window.status = msg.substring(msg.length,seq); seq++;
if (seq >= msg.length )
{ seq = 0 };
window.setTimeout("Scroll();", 300 );
}
</script>
<link rel="stylesheet" href="books.css" type="text/css">
<style type="text/css">
<!--
.style1 {color: #FF9966}
-->
</style>
</head>
<body text="#000000" onLoad="Scroll();">
<div align="center">
<table width="750" border="0" cellspacing="1" cellpadding="1">
<tr>
<td width="120" align="center"><img src="images/Img20625.jpg" width="50" height="50"><br>
<font color="#0066CC">LEE电子商务</font></td>
<td align="center"><img src="images/baners2.gif" width="592" height="83"></td>
<td align="center" width="80"><br>
<br>
</td>
</tr>
</table>
<table width="750" border="0" cellspacing="1" cellpadding="1">
<tr>
<td width="166" bgcolor="#99CCCC"> </td>
<td width="89" bgcolor="#CCFFCC"><div align="center"><a href="index.jsp">首页</a></div></td>
<td width="100" bgcolor="#CCFFCC"><div align="center"><a href="booklist.jsp">在线购物</a></div></td>
<td width="100" bgcolor="#CCFFCC"><div align="center"><a href="shoperlist.jsp">我的购物车</a></div></td>
<td width="100" bgcolor="#CCFFCC"><div align="center"><a href="userinfo.jsp">用户信息</a></div></td>
<td width="176" bgcolor="#99CCCC"> </td>
</tr>
</table>
<p class="style1">LEE电子商务用户<img src="images/enter.gif" width="77" height="32"></p>
<form name="form1" method="post" action="loginservlet" onSubmit="return checkform();">
<table width="400" border="0" cellspacing="1" cellpadding="1">
<tr>
<td width="147" align="right">用户名:<br>
</td>
<td width="246" valign="top">
<input type="text" name="username" size="16" maxlength="20">
</td>
</tr>
<tr>
<td width="147" align="right">密 码:</td>
<td width="246" valign="top">
<input type="password" name="passwd" maxlength="20" size="16">
</td>
</tr>
<tr>
<td width="147" align="right"> </td>
<td width="246" valign="top">
<input type="submit" name="Submit1" value="登录">
<input type="reset" name="Submit2" value="取消">
</td>
</tr>
<tr>
<td colspan="2" align="center">
<p> </p>
<p>如果你还不是本站用户,请在此<a href="reg.jsp">注册</a><img src="images/ao1.gif" width="16" height="18"></p>
</td>
</tr>
</table>
</form>
<table width="70%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td align="center">开发:LeeCong<br>
CopyRight@2006 <br>
Email:<a href="mailto:leecong@eyou.com">leecong@eyou.com</a></td>
</tr>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?