当前位置: 首页 > 图文教程 > 网络编程 > Javascript > 仿校内登陆框,精美,给那些很厉害但是没有设计天才的程序员

Javascript
动态生成select选项全接触
不刷新页面动态更新select选项,实现两个select相互操作
网页输入框日期型有效性判定一网打尽
实用Javascript函数之一(自动将输入文本框中的内容转换成大写字符)
实用Javascript函数之二(自动将输入文本框中的内容转换成小写字符)
实用Javascript函数之三(限制文本输入框中只能输入数字\"0\"到\"9\")
实用Javascript函数之四(用于对sString字符串进行前空格截除)
实用Javascript函数之五(用于对sString字符串进行后空格截除)
实用Javascript函数之六(截除字符串前后空格)
如何使用交替的滚动标题
采用DOM模型时创建一个Select节点后,要删除option项的解决方法
javascript函数速查
利用JavaScript和正则表达式进行丰富的日期判断(给其它项目组的代码,有比较好的编程风格和注释)
关于字符串的几个有用函数
FileSystemObject 的例子(处理驱动器、文件夹、文件)
用JScript实现VB.Net,C#的[委托Delegate]:
得到固定字符位置的函数
IE NC通用的藏鼠标右键一法
Menu
foolpot2001菜单

Javascript 中的 仿校内登陆框,精美,给那些很厉害但是没有设计天才的程序员


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-12   浏览: 76 ::
收藏到网摘: n/a

写代码对于我们来说很简单,但是做个布局设计简直是登天啊 改facebook的,绝对是你想要的,不需要图片,因为我的以前几个东西被转载到好多地方但是没有人给我说,还没有人说是哪里来的,就把我blog地址写这里的,要用的话就把那东西去掉吧
复制代码 代码如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Beautiful Forms</title>
<style type="text/css">
body{ font-family:宋体, Arial, Helvetica, sans-serif;
font-size:12px;
color:#000000;
}
a{color:#0033CC;}
h1, h2, p, form{
border:0px;
margin:0px;
padding:0px;
}
input{ font-family:宋体, Arial, Helvetica, sans-serif;
font-size:12px;
}
h2{ color:#666666;
margin-bottom:20px;
font-size:16px;
}
div.main{
margin:30px auto;
width:340px;
}
div.box{
border:solid 1px #c6cfe1;
background:#dfe4ee;
padding:10px;
color:#333333;
margin-bottom:20px;
}
div.box h1 {
font-size:14px;
color:#000000;
padding-bottom:4px;
}
div.box p{padding-bottom:14px;}
div.box input .input-text{
border:1px solid #3b6e22;
color:#666666;
width:180px;
}
div.box label{
display:block;
margin-bottom:10px;
color:#555555;
}
div.box label span{
display:block;
float:left;
padding-right:6px;
width:70px;
text-align:right;
padding-top:5px;
font-weight:bold;
}
.spacer{margin-left:80px;
margin-bottom:10px;
font-size:12px;
color:#555555;
}
.green{
background:#67a54b;
padding:0px 6px;
border:1px solid #3b6e22;
height:24px;
line-height:24px;
color:#FFFFFF;
font-size:12px;
margin-right:10px;
display:inline-block;
text-decoration:none;
}
</style>
</head>
<body>
<div class="main">
<h1>Beautiful Form</h1>
<h2>Xiaonei inspired</h2>
For more info visit: <a href="http://blog.csdn.net/webxeyes">http://blog.csdn.net/webxeyes</a>
<br/><br/>
<div class="box">
<h1>登 陆</h1>
<p>Do you have an account? Sign in!</p>
<form action="" method="post">
<label><span>账号</span>
<input type="text"name="email" id="email" class="input-text"/>
</label>
<label><span>密码</span>
<input type="password"name="psw" id="psw" class="input-text"/>
</label>
</form>
<div class="spacer"><a href="#" onClick="" class="green">Sign in</a></div>
<div class="spacer">
忘记密码? <a href="#">找回密码</a><br/>
还没有注册? <a href="#">注册</a>
</div>
</div>
<div class="box">
<h1>Sign Up</h1>
<p>New User? Create your account now!</p>
<form action="" method="post">
<label><span>Full name</span>
<input type="text"name="name" id="name" class="input-text"/>
</label>
<label><span>E-mail</span>
<input type="text"name="email" id="email" class="input-text"/>
</label>
<label><span>Password</span>
<input "psw" type="password" id="psw" class="input-text"/>
</label>
</form>
<div class="spacer"><a href="#" onClick="" class="green">Create Account</a></div>
<div class="spacer">
忘记密码? <a href="#">找回密码</a><br/>
还没有注册? <a href="#">注册</a>
</div>
</div>
<div class="box">
<h1>Sign Up</h1>
<p>New User? Create your account now!</p>
<form action="" method="post">
<label><span>Full name</span>
<input type="text"name="name" id="name" class="input-text"/>
</label>
<label><span>E-mail</span>
<input type="text"name="email" id="email" class="input-text"/>
</label>
<label><span>Password</span>
<input "psw" type="password" id="psw" class="input-text"/>
</label>
</form>
<div class="spacer"><input type=submit onClick="" class="green">Create Account</a></div>
<div class="spacer">
忘记密码? <a href="#">找回密码</a><br/>
还没有注册? <a href="#">注册</a>
</div>
</div>
</div>
</body>
</html>