📄 index.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<html>
<head>
<script>
function check()
{
var x=document.LogForm.LogName.value;
var y=document.LogForm.LogPwd.value;
if(x=="" || y=="" )
{
alert("用户名密码不能为空!且大于6位!");
return false;
}else
{
return true;
}
}
</script>
<style type="text/css">
<!--
.STYLE3 {font-family: "宋体"; font-size: 14px; }
-->
</style>
</head>
<body style="text-align:center">
<form method="post" action="doLogin.jsp" name="LogForm" onSubmit="return check()">
<table border="0" cellpadding="0" cellspacing="0" width="300">
<tr>
<td colspan="2" align="center" height="25" bgcolor="#EAFOFB"><b style="color:5F5F5F; font-size:14px">会 员 登 录 </b></td>
</tr>
<tr>
<td bgcolor="#EBEBEB" height="30" align="center"><span class="STYLE3"> 您的账号:</span></td>
<td bgcolor="#EBEBEB" height="30" align="center"><input type="text" name="LogName"></td>
</tr>
<tr>
<td bgcolor="#EBEBEB" height="30" align="center"><span class="STYLE3"> 您的密码:</span></td>
<td bgcolor="#EBEBEB" height="30" align="center"><input type="password" name="LogPwd"></td>
</tr>
<tr>
<td bgcolor="#EAFOFB" colspan="2" align="right" height="25"><b ><a href="regedit.jsp" style="color:5F5F5F; font-size:12px; text-decoration:none;">我要注册</a></b></td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" value="登 陆">
<input type="reset" value="重 置"> </td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -