"Login and Register tabbed form"
Bootstrap 3.3.0 Snippet by bankkikok

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>BB</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet"> <link rel="icon" href="http://getbootstrap.com/favicon.ico"> <script src="http://mymaplist.com/js/vendor/TweenLite.min.js"></script> <style type="text/css"></style></head> <body> <div id="login-overlay" class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> <h4 class="modal-title" id="myModalLabel">เข้าสู่ระบบการให้บริการอินเทอร์เน็ต BB.Net</h4> </div> <div class="modal-body"> <div class="row"> <div class="col-xs-6"> <div class="well"> <form id="login-form" action="http://phpoll.com/login/process" method="post" role="form" style="display: block;"> <div class="form-group"> <label for="username" class="control-label">ชื่อผู้ใช้</label> <input type="text" class="form-control" id="username" name="username" placeholder="Username" title="Please enter your username" required> <span class="help-block"></span> </div> <div class="form-group"> <label for="password" class="control-label">รหัสผ่าน</label> <input type="password" class="form-control" id="password" name="password" placeholder="Password" title="Please enter your password" required> <span class="help-block"></span> </div> <div id="loginErrorMsg" class="alert alert-error hide">ชื่อผู้ใช้และรหัสผ่านไม่ถูกต้อง</div> <div class="checkbox"> <label> <input type="checkbox" name="remember" id="remember">ให้ฉันอยู่ในระบบต่อไป </label> <p class="help-block">(ถ้าเป็นคอมพิวเตอร์ส่วนตัว)</p> </div> <button type="submit" id="btn" class="btn btn-success btn-block">เข้าสู่ระบบ</button> <a href="javascript:;" class="forget btn btn-default btn-block" data-toggle="modal" data-target=".forget-modal">ลืมรหัสผ่าน?</a> </form> </div> </div> <div class="col-xs-6"> <p class="lead">สมัครสมาชิกเพื่อใช้บริการอินเทอร์เน็ต<span class="text-success">FREE</span></p> <ul class="list-unstyled" style="line-height: 2"> <li><span class="fa fa-check text-success"></span> สนใจติดต่อได้ที่ออฟฟิชคอนโดครับ</li> <li><span class="fa fa-check text-success"></span> ความเร็วสูงสุดที่ 50 Mbps</li> <li><span class="fa fa-check text-success"></span> ใช้งานได้ตลอด 24 ชั่วโมง</li> <li><span class="fa fa-check text-success"></span> ติดต่อสอบถาม หรือ แจ้งปัญหา โทร.080-XXX-XXXX</li> <li><span class="fa fa-check text-success"></span> ระบบมีการบันทึกการใช้งานตาม พรบ.คอมพิวเตอร์ปี 2550</li> </ul> <p><a href="javascript:;" id="register-form-link" class="register btn btn-info btn-block" data-toggle="modal" data-target=".regis-modal">Yes please, register now!</a></p> </div> </div> </div> </div> </div> <div class="modal fade regis-modal" tabindex="-1" role="dialog" aria-labelledby="myForgetModalLabel" aria-hidden="true"> <div class="modal-dialog modal-sm"> <div class="panel panel-login"> <div class="panel-body"> <div class="row"> <div class="col-lg-12"> <div class="well"> <form id="register-form" action="http://phpoll.com/register/process" method="post" role="form" style="display: none;"> <div class="form-group"> <label for="username" class="control-label">ชื่อผู้ใช้</label> <input type="text" class="form-control" id="username" name="username" placeholder="Username" title="Please enter your username" required> <span class="help-block"></span> </div> <div class="form-group"> <label for="password" class="control-label">รหัสผ่าน</label> <input type="password" class="form-control" id="password" name="password" placeholder="Password" title="Please enter your password" required> <span class="help-block"></span> </div> <div class="form-group"> <label for="username" class="control-label">ยืนยันรหัสผ่าน</label> <input type="text" class="form-control" id="username" name="username" placeholder="Confirm Password" title="Please enter your confirm password" required> <span class="help-block"></span> </div> <div class="form-group"> <label for="username" class="control-label">คีย์ที่ใช้สมัคร</label> <input type="text" class="form-control" id="username" name="username" placeholder="Register Key" title="Please enter your register key" required> <span class="help-block"></span> </div> <div class="form-group"> <label for="username" class="control-label">เบอร์โทรศัพท์</label> <input type="text" class="form-control" id="username" name="username" placeholder="Phone Number" title="Please enter your phone number" required> <span class="help-block"></span> </div> <button type="submit" class="btn btn-success btn-block">สมัครสมาชิก</button> </form> </div> </div> </div> </div> </div> </div><!-- /.modal-dialog --> </div> <!-- /.modal --> <div class="modal fade forget-modal" tabindex="-1" role="dialog" aria-labelledby="myForgetModalLabel" aria-hidden="true"> <div class="modal-dialog modal-sm"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"> <span aria-hidden="true">×</span> <span class="sr-only">Close</span> </button> <h4 class="modal-title">Recovery password</h4> </div> <div class="modal-body"> <p>Type your email account</p> <input type="email" name="recovery-email" id="recovery-email" class="form-control" autocomplete="off"> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> <button type="button" class="btn btn-custom">Recovery</button> </div> </div> <!-- /.modal-content --> </div> <!-- /.modal-dialog --> </div> <!-- /.modal --> </div> </body> </html>
body { background: #d9edf7; padding-top: 50px; }
$(function () { $('#register-form-link').click(function (e) { $("#register-form").delay(200).fadeIn(200); e.preventDefault(); }); });

Related: See More


Questions / Comments: