可选择Email和用户名登录的代码
- <!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=utf-8"/>
- <title>登陆界面</title>
- <style type="text/css">
- * {
- margin:0;
- padding:0;
- font-size:12px;
- font-weight:normal;
- font-family:verdana, tahoma, helvetica, arial, sans-serif, "宋体";
- font-style:normal;
- list-style-type:none;
- text-decoration:none;
- }
- div#body input#fnbtn {
- width:78px;
- height:39px;
- border:none;
- cursor:pointer;
- position:absolute;
- top:40px;
- left:100px;
- background:transparent url('http://www.lanrentuku.com/down/js/images/12447121190.png') 0 -70px no-repeat;
- }
- div#mask {
- position:absolute;
- top:0;
- left:0;
- background:#fff;
- filter:alpha(opacity=60);
- -moz-opacity:0.2;
- z-index:100;
- }
- div#login {
- position:absolute;
- top:75px;
- left:100px;
- width:293px;
- z-index:200;
- }
- div#login h2 {
- height:26px;
- padding-top:3px;
- padding-left:25px;
- background:transparent url('http://www.lanrentuku.com/down/js/images/12447121190.png') -84px -70px no-repeat;
- }
- div#login h2 input {
- height:18px;
- width:18px;
- float:right;
- border:none;
- cursor:pointer;
- margin:2px 6px 0 0;
- background:transparent url('http://www.lanrentuku.com/down/js/images/12447121190.png') 0 -169px no-repeat;
- }
- div#login h2 a {
- display:block;
- float:left;
- width:83px;
- height:26px;
- line-height:26px;
- text-align:center;
- text-decoration:none;
- color:#666;
- }
- div#login h2 a.cur {
- color:#f00;
- background:transparent url('http://www.lanrentuku.com/down/js/images/12447121190.png') 0 -187px no-repeat;
- }
- div#login ul {
- padding:14px 0 18px 12px;
- background:transparent url('http://www.lanrentuku.com/down/js/images/12447121190.png') -84px bottom no-repeat;
- }
- div#login ul li {
- padding-left:60px;
- margin-top:10px;
- display:inline-block;
- }
- div#login ul li {
- display:block;
- }
- div#login ul li:after {
- content:"youdian";
- clear:both;
- display:block;
- height:0;
- visibility:hidden;
- }
- div#login ul li tt {
- float:left;
- width:60px;
- margin-left:-70px;
- text-align:right;
- line-height:22px;
- color:#444;
- }
- div#login ul li div input.cell, div#login ul li div input.cell2 {
- height:16px;
- padding:2px;
- line-height:16px;
- width:179px;
- border:1px #dcdcdc solid;
- color:#666;
- }
- div#login ul li div input.cell2 {
- width:50px;
- }
- div#login ul li div label {
- color:#666;
- cursor:pointer;
- }
- div#login ul li div img {
- margin-bottom:-7px;
- margin-left:8px;
- }
- * html div#login ul li div img {
- margin-bottom:-4px;
- }
- *+html div#login ul li div img {
- margin-bottom:-4px;
- }
- div#login ul li div input#fnlogin {
- width:59px;
- height:21px;
- cursor:pointer;
- border:none;
- margin-right:15px;
- background:transparent url('http://www.lanrentuku.com/down/js/images/12447121190.png') 0 -148px no-repeat;
- }
- div#login ul li p {
- padding-top:4px;
- color:#f00;
- }
- </style>
- </head>
- <body>
- <div id="body">
- <input id="fnbtn" type="button" title="" />
- </div><div id="mask" style="display:none;"></div>
- <div id="login" style="display:none;">
- <h2><input id="fnquit" type="button" title="退出登录" /><a href="#" class="cur" name="Email">Email登录</a><a href="#" name="用户名">用户名登录</a></h2>
- <ul><form id="LoginForm" name="LoginForm" action="http://www.lanrentuku.com/" method="post" enctype="multipart/form-data" ><li><input id="loginType" name="loginType" type="hidden"/><tt><label id="logtype" for="email">Email:</label></tt><div><input id="username" name="username" type="text" class="cell" onKeyPress="return checkSubmit(event)"/></div></li>
- <li><tt><label for="password">密 码:</label></tt><div><input id="password" name="password" type="password" class="cell" onKeyPress="return checkSubmit(event)" /></div></li><li><tt></tt>
- <div><input id="reme" name="rememberme" type="checkbox" /> <label for="reme">下次自动登录</label></div></li>
- <li><tt></tt> <div><input id="fnlogin" type="button"/><a href="http://www.lanrentuku.com/" target="_blank" onclick="return checkForgetPassword()">忘记密码?</a></div></li>
- </form></ul>
- </div>
- <script type="text/javascript">
- function g(obj) {
- return document.getElementById(obj);
- }
- var login = {
- title:null,
- show:function(){
- var sWidth,sHeight;
- sWidth = screen.width;
- sWidth = document.body.offsetWidth;
- sHeight=document.body.offsetHeight;
- if (sHeight<screen.height){sHeight=screen.height;}
- g("mask").style.width = sWidth + "px";
- g("mask").style.height = sHeight + "px";
- g("mask").style.display = "block";
- g("login").style.display = "block";
- g("login").style.right = g("body").offsetLeft + "px";
- // window.status = g("body").offsetLeft;
- },
- hide:function(){
- g("mask").style.display = "none";
- g("login").style.display = "none";
- }
- }
- g("fnbtn").onclick = function(){
- login.show();
- this.blur();
- this.style.backgroundPosition = "0 -109px";
- };
- g("fnlogin").onclick = function() {
- // The following 5 lines of code is used to get the login type & pass to the form
- // One More line of code is insert to root_index.jsp to capture the hidden value
- if (document.getElementById("logtype").innerHTML == "Email:") {
- document.getElementById('loginType').value = 'email';
- } else {
- document.getElementById('loginType').value = 'mobile';
- }
- document.LoginForm.submit();
- };
- g("fnquit").onclick = function(){login.hide();g("fnbtn").style.backgroundPosition = "0 -70px";};
- var aa = g("login").getElementsByTagName("a");
- var aTab = new Array();
- for(var i=0; i<aa.length; i++){
- if(aa[i].parentNode.nodeName == "H2"){
- aTab.push(aa[i]);
- }
- }
- for(var j=0; j<aTab.length; j++){
- aTab[j].onclick = function(){
- this.blur();
- if (this.className != "cur"){
- for(var k=0; k<aTab.length; k++){aTab[k].className = ""};
- this.className = "cur"
- g("logtype").innerHTML = this.name + ":";
- }
- }
- }
- </script>
- <script language="javascript">
- login.hide();
- </script>
- </body>
- </html>
可选择Email和用户名登录的代码的更多相关文章
- 在某网站的登录页面登录时如果选择“记住用户名”,登录成功后会跳转到一个中间层(页面代码将登录的用户名和密码存在cookie),中间页面中存在一个超链接,单击超链接可以链接到第三个页面查看信息。若选择“
Response实现登录并记录用户名和密码信息 在某网站的登录页面登录时如果选择"记住用户名",登录成功后会跳转到一个中间层(页面代码将登录的用户名和密码存在cookie),中间页 ...
- git 指定用户名密码更新代码
使用git 更新代码 如何修改git 的密码一直令人费解,百度一堆也没给出答案.下面给一种替代方案. 例如:我们正常的代码地址 http://172.16.210.112/project/test.g ...
- PHP简单登录退出代码
PHP简单登录退出代码 登录页面login.html 负责收集用户填写的登录信息. <html> <head> <title></title> < ...
- laravel 用户名登录
laravel 用户名登录 默认登录设置为用户登录 laravel 5.3+ 修改文件(app\Http\Controllers\Auth\LoginController.php)增加 public ...
- asp.net ajax 检测用户名是否可用代码
原文 asp.net ajax 检测用户名是否可用代码 .net ajax 检测用户名是否可用代码 <script type="text/网页特效" src="c ...
- asp.net ajax检查用户名是否存在代码
原文 asp.net ajax检查用户名是否存在代码 用户注册时,我们经常需要检查用户名是否存在,本文就是实现无刷新验证用户名 打开开发环境VS 2005,新建项目(或打开现有项目),新建一个Web ...
- sp_change_users_login 'Update_One', '用户名', '登录名';
每次从服务器上备份好数据库(Sql Server数据库),如果将备份数据库文件在本地恢复,总会产生用户权限的问题. 经过很多次的实验后,我发现有那么一条语句可以发挥作用,就是sp_change_use ...
- 基于CSS3动态背景登录框代码
基于CSS3动态背景登录框代码.这是一款基于jQuery+CSS3实现的带有动画效果的动态背景登陆框特效.效果图如下: 在线预览 源码下载 实现的代码. html代码: <div class ...
- Ajax (Asynchronous javascript xml) 搜索框核心代码(JQuery) Ajax判断用户名存在核心代码 附:原生js的Ajax代码 其中有json的一句话解释
前端 <script type="text/javascript"> $(function(){ $("#tid").keyup(function( ...
随机推荐
- 供应商和管理员查看供应商地址簿信息SQL
--管理员查看地址簿 SELECT hps.party_site_id, hps.party_site_name AS address_name, 'CURRENT' AS status, hzl.a ...
- ActionBar在Android2.x的实现,类似新版微信界面。
ActionBar完美兼容Android4.x的机型,虽然现在Android2.x的系统越来越少,还有有一部分人使用的仍是2.x的系统,所以我们还得考虑着兼容性问题. 对比图: Test例子与微信的对 ...
- 修改TrustedInstaller权限文件(无法删除文件)
1. 右击需要修改的文件-属性 2. 切换到"安全"选项卡,点击"高级"按钮. 3. 切换到"所有者"选项卡 一般情况下默 ...
- Arduino小车学习与研究博客
Arduino小车学习与研究博客 信安系统设计基础实践模块 Arduino小车学习与研究 ================== 陈都(20135328) 余佳源(20135321) 莫凡(201352 ...
- 20145222黄亚奇《Java程序设计》第10周学习总结
20145222 <Java程序设计>第10周学习总结 学习总结 网络编程 网络编程就是在两个或两个以上的设备(例如计算机)之间传输数据.程序员所作的事情就是把数据发送到指定的位置,或者接 ...
- asp.net Core开启全新的时代,用视频来告诉你,学习就是这么SO easy。
https://channel9.msdn.com/Blogs/NET-Core/What-is-NET-Core 系统大家多发布一些视频的资料,学习起来更方便!我看到很多人发布的博客里面有的时候对于 ...
- Javascript 里的 in
写js的时候需要遍历一个对象的属性,把属性名和属性值都提出来,之前没遇到这种需求,查了一下可以用for in的方式. var obj = { "key1":"value1 ...
- [AaronYang]C#人爱学不学[4]
本文章不适合入门,只适合有一定基础的人看.我更相信知识细节见高低,我是从4.0开始学的,终于有时间系统的学习C#5.0,是5.0中的知识,会特殊标记下.但写的内容也可能含有其他版本framework的 ...
- [C#]AES加密算法实现
密码学中的高级加密标准(Advanced Encryption Standard,AES),又称Rijndael加密法,是美国联邦政府采用的一种区块加密标准.这个标准用来替代原先的DES,已经被多方分 ...
- 【Moqui业务逻辑翻译系列】Sales Representative Seeks Prospects and Opportunities 销售代表寻找期望合作对象和机会
h1. Sales Representative Seeks Prospects and Opportunities 销售代表寻找期望合作对象和合作机会 h4. Ideas to incorporat ...