用户登录页面html代码,HTML登录页面代码
html网页设计:一个简单的登录界面代码!
input
type='button'
text='登陆'
onclick='return
checknull()'你说的要能识别是否输入了用户名和密码!需要用脚本来验证
script
function
checknull()
{
var
a=document.getElementById('用户名文本框ID').text;
var
b=document.getElementById('密码文本框ID').text;
if(a.length0b.length)
return
true;
else
return
false;
}
script
求html登陆界面详细代码。要可以登陆,用数据库保存。
这是我曾经写过的一个登录页面的详细代码,供你参考,asp的代码,不知道你看得懂不?\x0d\x0a文件名是:deafaule.asp\x0d\x0a \x0d\x0a\x0d\x0a\x0d\x0a\x0d\x0a\x0d\x0a欢迎使用 \x0d\x0a\x0d\x0a\x0d\x0a\x0d\x0a\x0d\x0a\x0d\x0a\x0d\x0a\x0d\x0afunction FrontPage_valid() {\x0d\x0a if (document.FrontPage_Form.loginName.value == "") {\x0d\x0a alert("请先输入 [用户名] !n如果没有帐号请先 注册!");\x0d\x0a document.FrontPage_Form.loginName.focus();\x0d\x0a return false;\x0d\x0a }\x0d\x0a else if (document.FrontPage_Form.loginName.value.length < 2) {\x0d\x0a alert("在 [用户名] 中,请至少输入 2 个字符!");\x0d\x0a document.FrontPage_Form.loginName.focus();\x0d\x0a return false;\x0d\x0a }\x0d\x0a else if (document.FrontPage_Form.loginPassword.value == "") {\x0d\x0a alert("请输入[密码]!");\x0d\x0a document.FrontPage_Form.loginPassword.focus();\x0d\x0a return false;\x0d\x0a }\x0d\x0a else if (document.FrontPage_Form.loginPassword.value.length < 5) {\x0d\x0a alert("在 [密码] 中,请至少输入 5 个字符!");\x0d\x0a document.FrontPage_Form.loginPassword.focus();\x0d\x0a return false;\x0d\x0a }\x0d\x0a else if (document.FrontPage_Form.FrontPage_Yzm.value == "") {\x0d\x0a alert("请输入[验证码]!");\x0d\x0a document.FrontPage_Form.FrontPage_Yzm.focus();\x0d\x0a return false;\x0d\x0a }\x0d\x0a else if (document.FrontPage_Form.FrontPage_Yzm.value.length != 5) {\x0d\x0a alert("在 [验证码] 中,请输入 5 位数字!");\x0d\x0a document.FrontPage_Form.FrontPage_Yzm.focus();\x0d\x0a return false;\x0d\x0a }\x0d\x0a else if (document.FrontPage_Form.FrontPage_Yzm.value.length == 5) {\x0d\x0a var i=0,ch;\x0d\x0a for (i=0;i\x0d\x0a \x0d\x0a \x0d\x0a \x0d\x0a \x0d\x0a 用户名:\x0d\x0a \x0d\x0a \x0d\x0a \x0d\x0a \x0d\x0a \x0d\x0a 密 码:\x0d\x0a \x0d\x0a \x0d\x0a \x0d\x0a \x0d\x0a \x0d\x0a 验证码:\x0d\x0a \x0d\x0a \x0d\x0a \x0d\x0a \x0d\x0a \x0d\x0a \x0d\x0a \x0d\x0a \x0d\x0a \x0d\x0a \x0d\x0a \x0d\x0a \x0d\x0a \x0d\x0a \x0d\x0a \x0d\x0a 如果您还没有帐号,请点此 注册\x0d\x0a \x0d\x0a \x0d\x0a \x0d\x0a \x0d\x0a \x0d\x0a Copyright 2012 All Rights Reserved\x0d\x0a \x0d\x0a \x0d\x0a \x0d\x0a\x0d\x0a\x0d\x0a if (screen.width == 1440) {\x0d\x0a document.write("
"); \x0d\x0a }\x0d\x0a else if (screen.width == 1280){\x0d\x0a document.write("
"); \x0d\x0a }\x0d\x0a else {\x0d\x0a document.write("
"); \x0d\x0a }\x0d\x0a\x0d\x0a建议使用 IE8.0或更高版本的浏览器,推荐分辨率1440×900 或更高
\x0d\x0a\x0d\x0a\x0d\x0a\x0d\x0a
用户登录html代码有哪些?
\x0d\x0a\x0d\x0a 登陆页面\x0d\x0a\x0d\x0a \x0d\x0a \x0d\x0a 用户登陆\x0d\x0a 用户名: \x0d\x0a 密码: \x0d\x0a \x0d\x0a \x0d\x0a \x0d\x0a\x0d\x0a\x0d\x0a\x0d\x0a****************************************************\x0d\x0a验证页面jsp代码如下:\x0d\x0a\x0d\x0a \x0d\x0a 用户验证页面\x0d\x0a \x0d\x0a \x0d\x0a 登陆范例-登陆成功 \x0d\x0a \x0d\x0a\x0d\x0a不知道你用啥样的前台 是jsp还是asp.net或者是php
html登录界面代码
html
head
title登录界面/title
/head
body
h2登录界面:/h2
form
请输入你的用户名:br
input type="text" /br
输入你的地址:br
input type="text" /br
填上密码:br
input type="text" /br
选择你的性别:br
input type="radio" value="男" name="sex"/男
input type="radio" value="女" name="sex"/女br
选择你的爱好:br
input type="checkbox" vlaue="游泳" /游泳
input type="checkbox" vlaue="旅游" /旅游
input type="checkbox" vlaue="上网" /上网
input type="checkbox" vlaue="新闻" /新闻br
input type="submit" value="提交" /
input type="reset" value="重填" /
/form
/body
/html