login.jsp
来自「MP3 Baptism 1.0 一个完整的VC++软件源代码」· JSP 代码 · 共 49 行
JSP
49 行
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="comm/header.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户登录</title>
<script language="javascript">
<!--
function checklogin(){
if (document.login.username.value.length == 0) {
alert("请输入您的用户名");
document.login.username.focus();
return false;
}
if (document.login.username.value.length >12) {
alert("用户名长度不大于12个字符");
document.login.username.focus();
return false;
}
if (document.login.username.value.indexOf(" ")!=-1){
alert("用户名不能够包含空格");
document.login.username.focus();
return false;
}
if (document.login.password.value.length == 0) {
alert("请输入您的密码");
document.login.password.focus();
return false;
}
if (document.login.password.value.length < 6) {
alert("密码长度应不小于6");
document.login.password.focus();
return false;
}
}
-->
</script>
</head>
<body>
<div class="tabwidth">
<yhbbs:bbsLogin />
</div>
<div class="tabwidth">
<yhbbs:footer/>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?