★简洁美观的用户登录页面(检测用户名/密码存在)★
2015-02-02 15:16:35 -0500
<form name="loginform" method="post" name="reg" action="
http://s.wodemo.com/"><input type="hidden" name="action" value="login">
<p>磨盘帐号:<input id="username" tabIndex="1" name="username"></p>
<p>登录密码:<input id="password" tabIndex="2" type="password" name="userpass" autocomplete="off"></p>
<input id="submit" tabIndex="5" onclick="return checkform()" border="0" src="
http://www.codefans.net/jscss/demoimg/201404/dl.gif" type="image" name="submit">
</form>
<script>
<!--
function checkform() {
if(loginform.username.value == '') {
alert('请输入登陆账号!');
loginform.username.focus();
return false;
}
if(loginform.pwd.value == '') {
alert('请输入登陆密码!');
loginform.pwd.focus();
return false;
}
}
//-->
</script>
Back to home
Subscribe |
Register |
Login
| N