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

小提示:瀏覽器中如果不能正常運(yùn)行,可以嘗試切換瀏覽模式。
jquery制作的帶有遮罩彈出層實(shí)現(xiàn)登錄注冊等表單的特效源碼,是一段實(shí)現(xiàn)了點(diǎn)擊后在原始頁面上彈出想用頁面的代碼。
為大家分享的js制作帶有遮罩彈出層實(shí)現(xiàn)登錄注冊表單代碼特效代碼如下
<!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)登錄注冊表單代碼特效</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">注冊</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://chabaoo.cn"><em> </em> QQ登錄</a> </li>
<li class="sina"> <a href="http://chabaoo.cn"><em> </em> 微博登錄</a> </li>
<li class="douban"> <a href="http://chabaoo.cn"><em> </em> 豆瓣登錄</a> </li>
</ul>
<p>或者使用已有帳號登陸:</p>
<form class="login-form clearfix" method="post" action="http://chabaoo.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/>下次自動登錄 </label>
<a class="forgot">忘記密碼?</a>
<ul class="third-parties">
<li><p>新浪微博帳號</p></li>
<li><p>騰訊微博帳號</p></li>
<li><p>豆瓣帳號</p></li>
<li><p></p></li>
</ul>
</form>
</div>
<div class="modal" id="signup-modal">
<a class="close" data-dismiss="modal">×</a>
<h1>注冊</h1>
<ul class="login-bind-tp">
<li class="qweibo"> <a href="http://chabaoo.cn"><em> </em> QQ登錄</a> </li>
<li class="sina"> <a href="http://chabaoo.cn"><em> </em> 微博登錄</a> </li>
<li class="douban"> <a href="http://chabaoo.cn"><em> </em> 豆瓣登錄</a> </li>
</ul>
<p>或者使用郵箱注冊:</p>
<form class="signup-form clearfix" method="post" action="http://chabaoo.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="注冊" data-action="regist">
<ul class="third-parties">
<li><p>新浪微博帳號</p></li>
<li><p>騰訊微博帳號</p></li>
<li><p>豆瓣帳號</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://chabaoo.cn">
<input name="email" value="" placeholder="注冊郵箱:">
<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://chabaoo.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://chabaoo.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)登錄注冊表單代碼特效代碼,希望大家可以喜歡。
相關(guān)文章
jQuery實(shí)現(xiàn)滾動到底部時自動加載更多的方法示例
這篇文章主要介紹了jQuery實(shí)現(xiàn)滾動到底部時自動加載更多的方法,涉及jQuery基于ajax動態(tài)操作頁面元素相關(guān)實(shí)現(xiàn)技巧,需要的朋友可以參考下2018-02-02
jQuery實(shí)現(xiàn)點(diǎn)擊按鈕彈出可關(guān)閉層的浮動層插件
這篇文章主要介紹了jQuery實(shí)現(xiàn)點(diǎn)擊按鈕彈出可關(guān)閉層的浮動層插件,具有點(diǎn)擊彈出帶有遮罩層的浮動層效果,且浮動層可拖動、可關(guān)閉,需要的朋友可以參考下2015-09-09
jQuery UI插件自定義confirm確認(rèn)框的方法
這篇文章主要介紹了jQuery UI插件自定義confirm確認(rèn)框的方法,實(shí)例分析了jQuery的UI插件使用技巧,非常具有實(shí)用價值,需要的朋友可以參考下2015-03-03
jquery DataTable實(shí)現(xiàn)前后臺動態(tài)分頁
本篇文章主要介紹了jquery DataTable實(shí)現(xiàn)前后臺動態(tài)分頁。小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧2017-06-06
jQuery實(shí)現(xiàn)鼠標(biāo)經(jīng)過時高亮,同時其他同級元素變暗的效果
這篇文章主要介紹了jQuery實(shí)現(xiàn)鼠標(biāo)經(jīng)過時高亮,同時其他同級元素變暗的效果,涉及jQuery基于事件響應(yīng)機(jī)制的頁面元素遍歷與屬性變換操作技巧,需要的朋友可以參考下2016-09-09
使用jquery實(shí)現(xiàn)select添加實(shí)現(xiàn)后臺權(quán)限添加的效果
使用jquery實(shí)現(xiàn)select添加實(shí)現(xiàn)后臺權(quán)限添加的效果,需要的朋友可以參考下。2011-05-05

