Home > Web Front-end > JS Tutorial > Sharing of pop-up layer login and full-screen layer registration special effects code implemented by jquery_jquery

Sharing of pop-up layer login and full-screen layer registration special effects code implemented by jquery_jquery

WBOY
Release: 2016-05-16 15:41:57
Original
1163 people have browsed it

The example in this article describes the implementation of multi-condition filtering effects with jquery. Share it with everyone for your reference. The details are as follows:
The pop-up layer login and non-refresh switching full-screen layer registration special effects source code implemented by jquery is a piece of website login and registration effect code that is very suitable for modern aesthetics. This example is mainly manifested in popping up the login mask layer in the current page after clicking login. When you click the registration link, the full-screen registration layer effect will be displayed on the current page without refreshing. It is a very practical special effects code that is worth learning.
运行效果图:                           -------------------查看效果 下载源码----------- --------

Tips: If the browser does not work properly, you can try switching the browsing mode.
The pop-up layer login and full-screen layer registration special effects codes implemented by jquery to share with you are as follows

<!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>jquery弹出层登录和无刷新切换全屏层注册特效 </title>
<meta name="description" content="jquery弹出层登录和无刷新切换全屏层注册特效" />
<meta name="keywords" content="jquery弹出层登录和无刷新切换全屏层注册特效" />

<link rel="stylesheet" type="text/css" href="css/style.css" />

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.easing.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
 var k=!0;

 $(".loginmask").css("opacity",0.8);
 
 if($.browser.version <= 6){
 $('#reg_setp,.loginmask').height($(document).height());
 }
 
 $(".thirdlogin ul li:odd").css({marginRight:0}); 
 
 $(".openlogin").click(function(){
 k&&"0px"!=$("#loginalert").css("top")&& ($("#loginalert").show(),$(".loginmask").fadeIn(500),$("#loginalert").animate({top:0},400,"easeOutQuart"))
 });
 
 $(".loginmask,.closealert").click(function(){
 k&&(k=!1,$("#loginalert").animate({top:-600},400,"easeOutQuart",function(){$("#loginalert").hide();k=!0}),$(".loginmask").fadeOut(500))
 });
 
 
 $("#sigup_now,.reg a").click(function(){
 $("#reg_setp,#setp_quicklogin").show();
 $("#reg_setp").animate({left:0},500,"easeOutQuart")
 });               
 $(".back_setp").click(function(){
 "block"==$("#setp_quicklogin").css("display")&&$("#reg_setp").animate({left:"100%"},500,"easeOutQuart",function(){$("#reg_setp,#setp_quicklogin").hide()})
 });
 
}); 
</script>

</head>
<body>
 

<div id="header">
 <ul class="login fr">
 <li class="openlogin"><a href="javascript:void(0);">登录</a></li>
 <li class="reg"><a href="javascript:void(0);">注册</a></li>
 </ul>
</div>


<div class="loginmask"></div>

<div id="loginalert">
 
 <div class="pd20 loginpd">
 <h3><i class="closealert fr"></i><div class="clear"></div></h3>
 <div class="loginwrap">
  <div class="loginh">
  <div class="fl">会员登录</div>
  <div class="fr">还没有账号<a id="sigup_now" href="javascript:void(0);">立即注册</a></div>
  </div>
  <h3><span class="fl">邮箱登录</span><span class="login_warning" style="display:none">用户名或密码错误</span><div class="clear"></div></h3>
  <form action="" method="post" id="login_form">
  <div class="logininput">
   <input type="text" name="username" class="loginusername" value="" placeholder="邮箱/用户名" />
   <input type="text" class="loginuserpasswordt" value="" placeholder="密码" />
   <input type="password" name="password" class="loginuserpasswordp" style="display:none" />
  </div>
  <div class="loginbtn">
   <div class="loginsubmit fl"><input type="submit" value="登录" class="btn" /></div>
   <div class="fl" style="margin:26px 0 0 0;"><input id="bcdl" type="checkbox" checked="true" />保持登录</div>
   <div class="fr" style="margin:26px 0 0 0;"><a href="http://www.jb51.net/">忘记密码&#63;</a></div>
   <div class="clear"></div>
  </div>
  </form>
 </div>
 </div>
 
 <div class="thirdlogin">
 <div class="pd50">
  <h4>用第三方帐号直接登录</h4>
  <ul>
  <li id="sinal"><a href="http://www.jb51.net">微博帐号注册</a></li>
  <li id="qql"><a href="http://www.jb51.net">QQ帐号注册</a></li>
  </ul>
  <div class="clear"></div>
 </div>
 </div>
 
</div><!--loginalert end-->


<div id="reg_setp">
 <div class="back_setp">返回</div>
 <div class="blogo"></div>
 <div id="setp_quicklogin">
 <h3>您可以选择以下第三方帐号直接登录代码笔记,一分钟完成注册</h3>
 <ul class="quicklogin_socical">
  <li class="quicklogin_socical_weibo"><a href="http://www.jb51.net">微博帐号注册</a></li>
  <li class="quicklogin_socical_qq" style="margin:0;"><a href="http://www.jb51.net">QQ帐号注册</a></li>
 </ul>
 </div>
</div><!--reg_setp end-->
</body>
</html>
Copy after login

The above is the pop-up layer login and full-screen layer registration special effects code implemented by jquery to share with you. I hope you can like it.

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template