- <htmlxmlns="http://www.w3.org/1999/xhtml">
- <head>
- <metahttp-equiv="Content-Type"content="text/html;charset=gb2312"/>
- <title>login in</title>
- <styletype="text/css">
- <!--
- body{
- margin-left:0px;
- margin-top:0px;
- margin-right:0px;
- margin-bottom:0px;
- background-image:url(static/login_scr/images/login_03.gif);
- overflow:hidden;
- }
- .STYLE3p{font-size:14px;color:#ffffff;font-weight:bold}
- .STYLE4a{color:#FFF;}
- .STYLE4a:hover{color:#F00;text-decoration:none;}
- -->
- </style>
- <scriptlanguage="javascript">
- //<![CDATA[
- functioncheckForm(){
- var_userName=document.signInForm.userName;
- if(_userName.value==""){
- alert("必须输入用户名");
- _userName.focus();
- return;
- }
- var_userPsw=document.signInForm.password;
- if(_userPsw.value==""){
- alert("必须输入密码");
- _userPsw.focus();
- return;
- }
- var_checkCode=document.signInForm.checkCode;
- if(_checkCode.value==""){
- alert("必须输入验证码");
- _checkCode.focus();
- return;
- }
- varfrom=document.forms[0];
- from.submit();
- }
- functionreset(){
- document.signInForm.userName.value="";
- document.signInForm.password.value="";
- document.signInForm.checkCode.value="";
- returntrue;
- }
- //]]>
- </script>
- </head>
- <bodyclass="STYLE3">
- <tablealign="center"cellpadding="0"cellspacing="0">
- <tr>
- <tdheight="40"></td>
- <td></td>
- <td></td>
- </tr>
- <tr>
- <td></td>
- <tdwidth="625"height="304"background="static/login_scr/images/login_01.jpg"></td>
- <td></td>
- </tr>
- <trvalign="top">
- <td></td>
- <tdwidth=""height="173"background="static/login_scr/images/login_02.jpg">
- <table>
- <formaction="index.jsp"method="post"name="signInForm">
- <tralign="right">
- <tdwidth="115"><p>用户名:</p></td>
- <td><inputname="userName"type="text"></td>
- <tdclass="STYLE4"><ahref="register/index.jsp">注册</a></td>
- </tr>
- <tralign="right">
- <td><p>密码:</p></td>
- <td><inputname="password"type="password"></td>
- <td></td>
- </tr>
- <tralign="right">
- <td><p>验证码:</p></td>
- <td><inputname="checkCode"type="text"></td>
- <td><imgid="img_validation_code"title="看不清可单击图片刷新"src="/zzb/ValidationCode"onclick="this.src='/zzb/ValidationCode?'+Math.random();"alt="刷新"/></td>
- </tr>
- <tr>
- <tdcolspan="3"align="center">
- <inputname="login"type="button"onclick="returncheckForm()"value="登陆">
- <inputname="reset"type="button"onclick="returnreset()"value="重置">
- </td>
- </tr>
- </form>
- </table>
- </td>
- <td></td>
- </tr>
- </table>
- </body>
- </html>
毕设简单的登录界面
最新推荐文章于 2018-10-07 13:01:29 发布