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.dbjr.com.cn"><em> </em> QQ登錄</a> </li>
<li class="sina"> <a href="http://www.dbjr.com.cn"><em> </em> 微博登錄</a> </li>
<li class="douban"> <a href="http://www.dbjr.com.cn"><em> </em> 豆瓣登錄</a> </li>
</ul>
<p>或者使用已有帳號(hào)登陸:</p>
<form class="login-form clearfix" method="post" action="http://www.dbjr.com.cn">
<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.dbjr.com.cn"><em> </em> QQ登錄</a> </li>
<li class="sina"> <a href="http://www.dbjr.com.cn"><em> </em> 微博登錄</a> </li>
<li class="douban"> <a href="http://www.dbjr.com.cn"><em> </em> 豆瓣登錄</a> </li>
</ul>
<p>或者使用郵箱注冊(cè):</p>
<form class="signup-form clearfix" method="post" action="http://www.dbjr.com.cn">
<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.dbjr.com.cn">
<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.dbjr.com.cn">
<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.dbjr.com.cn">
<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實(shí)現(xiàn)滾動(dòng)到底部時(shí)自動(dòng)加載更多的方法示例
這篇文章主要介紹了jQuery實(shí)現(xiàn)滾動(dòng)到底部時(shí)自動(dòng)加載更多的方法,涉及jQuery基于ajax動(dòng)態(tài)操作頁(yè)面元素相關(guān)實(shí)現(xiàn)技巧,需要的朋友可以參考下2018-02-02
jQuery實(shí)現(xiàn)點(diǎn)擊按鈕彈出可關(guān)閉層的浮動(dòng)層插件
這篇文章主要介紹了jQuery實(shí)現(xiàn)點(diǎn)擊按鈕彈出可關(guān)閉層的浮動(dòng)層插件,具有點(diǎn)擊彈出帶有遮罩層的浮動(dòng)層效果,且浮動(dòng)層可拖動(dòng)、可關(guān)閉,需要的朋友可以參考下2015-09-09
jQuery UI插件自定義confirm確認(rèn)框的方法
這篇文章主要介紹了jQuery UI插件自定義confirm確認(rèn)框的方法,實(shí)例分析了jQuery的UI插件使用技巧,非常具有實(shí)用價(jià)值,需要的朋友可以參考下2015-03-03
jquery DataTable實(shí)現(xiàn)前后臺(tái)動(dòng)態(tài)分頁(yè)
本篇文章主要介紹了jquery DataTable實(shí)現(xiàn)前后臺(tái)動(dòng)態(tài)分頁(yè)。小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧2017-06-06
jQuery實(shí)現(xiàn)鼠標(biāo)經(jīng)過(guò)時(shí)高亮,同時(shí)其他同級(jí)元素變暗的效果
這篇文章主要介紹了jQuery實(shí)現(xiàn)鼠標(biāo)經(jīng)過(guò)時(shí)高亮,同時(shí)其他同級(jí)元素變暗的效果,涉及jQuery基于事件響應(yīng)機(jī)制的頁(yè)面元素遍歷與屬性變換操作技巧,需要的朋友可以參考下2016-09-09
使用jquery實(shí)現(xiàn)select添加實(shí)現(xiàn)后臺(tái)權(quán)限添加的效果
使用jquery實(shí)現(xiàn)select添加實(shí)現(xiàn)后臺(tái)權(quán)限添加的效果,需要的朋友可以參考下。2011-05-05
通過(guò)Ajax使用FormData對(duì)象無(wú)刷新上傳文件方法
這篇文章主要介紹了通過(guò)Ajax使用FormData對(duì)象無(wú)刷新上傳文件方法,具有一定的參考價(jià)值,感興趣的朋友可以了解一下。2016-12-12
基于jQuery實(shí)現(xiàn)掛號(hào)平臺(tái)首頁(yè)源碼
這篇文章主要介紹了基于jQuery實(shí)現(xiàn)掛號(hào)平臺(tái)首頁(yè)源碼,非常不錯(cuò),具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2020-01-01

