⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 login.jsp

📁 一个相对比较简单的留言簿!功能还比较齐全!
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=gb2312" pageEncoding="gb2312"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script language="JavaScript">
function denglu(){
 document.formlogin.action="/GuestBook/Login";
 document.formlogin.submit();
}
function zhuce(){
 document.location.href="regist.jsp";
}
</script>

<title>Insert title here</title>
<style type="text/css">
<!--
#Layer1 {
	position:absolute;
	left:359px;
	top:197px;
	width:312px;
	height:139px;
	z-index:1;
}
body {
	background-image: url(images/a3.jpg);
}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body>

<br>
<br>
<br>
<br>
<br>
<br>&nbsp;

<div id="Layer1" align="center" style="top: 96px; height: 154px; left: 337px; width: 342px;">
<form action="/GuestBook/Login" method="post" name="formlogin">
<table width="311" height="140" border="0" cellpadding="5" cellspacing="2">
  <tr>
    <th height="31" colspan="2" background="img/bg5_1.gif" scope="col">用户登陆</th>
  </tr>
  <tr>
    <td height="29" align="right" valign="middle" background="img/bg5_4.gif"><div align="right">用户名: <br>
    </div></td>
    <td background="img/bg5_4.gif"><div align="left">
      <input type="text" name="userName" align="left">
    </div></td>
  </tr>
  
  <tr>
    <td height="29" align="right" valign="middle" background="img/bg5_4.gif"><div align="right">密&nbsp;&nbsp;码:</div></td>
    <td background="img/bg5_4.gif"><div align="left">
      <input type="password" name="password" align="left">
    </div></td>
  </tr>
  <tr>
    <td height="31" colspan="2" align="center" valign="middle" background="img/bg5_4.gif">&nbsp;
        <input type="Submit" name="login" value="登陆" onClick="denglu()">        &nbsp;&nbsp;
        <input type="reset" name="rest" value="重填">        &nbsp;&nbsp;
        <input name="button" type="button" onClick="zhuce()" value="注册">&nbsp;&nbsp;        <input type="hidden" name="domethod" value="login">      </td>
  </tr>
</table>
</form></div>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -