您的位置:首页 > 其它

毕设简单的登录界面

2011-04-14 11:08 302 查看
Code:

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<title>login in</title>

<style type="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;

}

.STYLE3 p {font-size: 14px; color:#ffffff;font-weight:bold }

.STYLE4 a {color:#FFF;}

.STYLE4 a:hover {color:#F00; text-decoration:none;}

-->



</style>



<script language="javascript">

//<![CDATA[

function checkForm() {

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;

}



var from = document.forms[0];

from.submit();

}



function reset() {

document.signInForm.userName.value = "";

document.signInForm.password.value = "";

document.signInForm.checkCode.value= "";

return true;

}

//]]>

</script>

</head>



<body class="STYLE3">

<table align="center" cellpadding="0" cellspacing="0">

<tr>

<td height="40"></td>

<td></td>

<td></td>

</tr>

<tr>

<td></td>

<td width="625" height="304" background="static/login_scr/images/login_01.jpg"></td>

<td></td>

</tr>

<tr valign="top">

<td></td>

<td width="" height="173" background="static/login_scr/images/login_02.jpg" >

<table>

<form action="index.jsp" method="post" name="signInForm" >

<tr align="right">

<td width="115"><p>用户名:</p></td>

<td><input name="userName" type="text" ></td>

<td class="STYLE4"><a href="register/index.jsp">注册</a></td>

</tr>

<tr align="right">

<td><p>密 码:</p></td>

<td><input name="password" type="password" ></td>

<td></td>

</tr>

<tr align="right">

<td><p>验证码:</p></td>

<td><input name="checkCode" type="text"></td>

<td><img id="img_validation_code" title="看不清可单击图片刷新" src="/zzb/ValidationCode" onclick="this.src='/zzb/ValidationCode?'+Math.random();" alt="刷新" /></td>

</tr>

<tr>

<td colspan="3" align="center">

<input name="login" type="button" onclick="return checkForm()" value="登陆">

<input name="reset" type="button" onclick="return reset()" value="重置">

</td>

</tr>

</form>

</table>

</td>

<td></td>

</tr>

</table>

</body>

</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: