js制作帶有遮罩彈出層實(shí)現(xiàn)登錄注冊(cè)表單特效代碼分享
本文實(shí)例講述了js制作帶有遮罩彈出層實(shí)現(xiàn)登錄注冊(cè)表單代碼特效代碼。分享給大家供大家參考。具體如下:
運(yùn)行效果圖: ----------------------查看效果 源碼下載-----------------------

小提示:瀏覽器中如果不能正常運(yùn)行,可以嘗試切換瀏覽模式。
jquery制作的帶有遮罩彈出層實(shí)現(xiàn)登錄注冊(cè)等表單的特效源碼,是一段實(shí)現(xiàn)了點(diǎn)擊后在原始頁(yè)面上彈出想用頁(yè)面的代碼。
為大家分享的js制作帶有遮罩彈出層實(shí)現(xiàn)登錄注冊(cè)表單代碼特效代碼如下
<!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>js制作帶有遮罩彈出層實(shí)現(xiàn)登錄注冊(cè)表單代碼特效</title>
<link rel="stylesheet" type="text/css" href="css/198zone.css">
</head>
<body>
<a class="btn01" data-toggle="modal" href="#login-modal">登錄</a>
<a class="btn02" data-toggle="modal" href="#signup-modal">注冊(cè)</a>
<a class="btn03" data-toggle="modal" href="#forgetform">找回密碼</a>
<a class="btn02" data-toggle="modal" href="#activation-modal">用戶信息</a>
<a class="btn03" data-toggle="modal" href="#setpassword-modal">重置密碼</a>
<div class="modal" id="login-modal">
<a class="close" data-dismiss="modal">×</a>
<h1>登錄</h1>
<ul class="login-bind-tp">
<li class="qweibo"> <a href="http://www.dhdzp.com"><em> </em> QQ登錄</a> </li>
<li class="sina"> <a href="http://www.dhdzp.com"><em> </em> 微博登錄</a> </li>
<li class="douban"> <a href="http://www.dhdzp.com"><em> </em> 豆瓣登錄</a> </li>
</ul>
<p>或者使用已有帳號(hào)登陸:</p>
<form class="login-form clearfix" method="post" action="http://www.dhdzp.com">
<div class="form-arrow"></div>
<input name="email" type="text" placeholder="郵箱:">
<input name="password" type="password" placeholder="密碼:">
<input type="submit" name="type" class="button-blue login" value="登錄">
<input type="hidden" name="return-url" value="">
<div class="clearfix"></div>
<label class="remember"><input name="remember" type="checkbox" checked/>下次自動(dòng)登錄 </label>
<a class="forgot">忘記密碼?</a>
<ul class="third-parties">
<li><p>新浪微博帳號(hào)</p></li>
<li><p>騰訊微博帳號(hào)</p></li>
<li><p>豆瓣帳號(hào)</p></li>
<li><p></p></li>
</ul>
</form>
</div>
<div class="modal" id="signup-modal">
<a class="close" data-dismiss="modal">×</a>
<h1>注冊(cè)</h1>
<ul class="login-bind-tp">
<li class="qweibo"> <a href="http://www.dhdzp.com"><em> </em> QQ登錄</a> </li>
<li class="sina"> <a href="http://www.dhdzp.com"><em> </em> 微博登錄</a> </li>
<li class="douban"> <a href="http://www.dhdzp.com"><em> </em> 豆瓣登錄</a> </li>
</ul>
<p>或者使用郵箱注冊(cè):</p>
<form class="signup-form clearfix" method="post" action="http://www.dhdzp.com">
<p class="error"></p>
<input name="email" type="text" placeholder="郵箱:">
<input name="password" type="password" placeholder="密碼:">
<input name="password1" type="password" placeholder="確認(rèn)密碼:">
<input name="username" type="text" placeholder="用戶名:">
<input type="hidden" name="title" value="">
<input type="hidden" name="url" value="">
<div class="clearfix"></div>
<input type="button" name="type" class="button-blue reg" value="注冊(cè)" data-action="regist">
<ul class="third-parties">
<li><p>新浪微博帳號(hào)</p></li>
<li><p>騰訊微博帳號(hào)</p></li>
<li><p>豆瓣帳號(hào)</p></li>
</ul>
</form>
</div>
<div class="modal" id="forgetform">
<a class="close" data-dismiss="modal">×</a>
<h1>忘記密碼</h1>
<form class="forgot-form" method="post" action="http://www.dhdzp.com">
<input name="email" value="" placeholder="注冊(cè)郵箱:">
<div class="clearfix"></div>
<input type="submit" name="type" class="forgot button-blue" value="發(fā)送重設(shè)密碼郵件">
</form>
</div>
<div class="modal" id="activation-modal">
<a class="close" data-dismiss="modal">×</a>
<h1>設(shè)置用戶信息</h1>
<form class="signup-form clearfix" method="post" action="http://www.dhdzp.com">
<input autocomplete=off name="username" value="" placeholder="用戶名:">
<input autocomplete=off name="password" type="password" placeholder="密碼:">
<input autocomplete=off name="password2" type="password" placeholder="確認(rèn)密碼:">
<input type="submit" name="type" class="button-blue reg" value="確認(rèn)并登錄" data-action="regist">
<div class="clearfix"></div>
</form>
</div>
<div class="modal" id="setpassword-modal">
<a class="close" data-dismiss="modal">×</a>
<h1>重置密碼</h1>
<form class="signup-form clearfix" method="post" action="http://www.dhdzp.com">
<input name="email" value="">
<input name="password" type="password" placeholder="密碼:">
<input name="password2" type="password" placeholder="確認(rèn)密碼:">
<input name="token" type="hidden" value="">
<input type="submit" name="type" class="button-blue reg" value="設(shè)置新密碼并登錄" data-action="reset">
<div class="clearfix"></div>
</form>
</div>
<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/modal.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("a.forgot").click(function(){
$("#login-modal").modal("hide");
$("#forgetform").modal({show:!0})
});
$("#signup-modal").modal("hide");
$("#forgetform").modal("hide");
$("#login-modal").modal("hide");
$("#activation-modal").modal("hide");
$("#setpassword-modal").modal("hide");
});
</script>
</body>
</html>
以上就是為大家分享的js制作帶有遮罩彈出層實(shí)現(xiàn)登錄注冊(cè)表單代碼特效代碼,希望大家可以喜歡。
相關(guān)文章
基于jQuery的Tab選項(xiàng)框效果代碼(插件)
依據(jù)className實(shí)現(xiàn)的Tab選項(xiàng)框,支持多個(gè)tab,需要的朋友可以參考下。2011-03-03
zepto與jquery的區(qū)別及zepto的不同使用8條小結(jié)
這篇文章主要介紹了zepto與jquery的區(qū)別及zepto的不同使用8條小結(jié) 的相關(guān)資料,需要的朋友可以參考下2016-07-07
當(dāng)jquery ajax遇上401請(qǐng)求的解決方法
下面小編就為大家?guī)?lái)一篇當(dāng)jquery ajax遇上401請(qǐng)求的解決方法。小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧2016-05-05
jQuery實(shí)現(xiàn)下拉框功能實(shí)例代碼
這篇文章主要介紹了jQuery實(shí)現(xiàn)下拉框功能實(shí)例代碼的相關(guān)資料,需要的朋友可以參考下2016-05-05
jQuery Validate插件ajax方式驗(yàn)證輸入值的實(shí)例
下面小編就為大家分享一篇jQuery Validate插件ajax方式驗(yàn)證輸入值的實(shí)例,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。一起跟隨小編過(guò)來(lái)看看吧2017-12-12
使用prop解決一個(gè)checkbox選中后再次選中失效的問(wèn)題
下面小編就為大家?guī)?lái)一篇使用prop解決一個(gè)checkbox選中后再次選中失效的問(wèn)題。小編覺(jué)得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧2017-07-07
JQuery 插件制作實(shí)踐 xMarquee插件V1.0
今天要介紹的是實(shí)現(xiàn)類(lèi)跑馬燈效果的的廣告插件。類(lèi)似偶公司web-dev的同事在網(wǎng)站首頁(yè)上做的目錄廣告播放器。其實(shí)很簡(jiǎn)單,LEVIN實(shí)際應(yīng)用中也用到,所以稍作整理如下.2010-04-04
基于jQuery實(shí)現(xiàn)彈出可關(guān)閉遮罩提示框?qū)嵗a
這篇文章主要介紹了基于jQuery實(shí)現(xiàn)彈出可關(guān)閉遮罩提示框?qū)嵗a的相關(guān)資料2016-07-07

