Apr
25

jQuery Login Form with Sliding effects Style

Author ZeeShaN    Category JQuery, Web Development     Tags

jquery login form with sliding effects

Simple login form with jQuery sliding effects for any web page. Just put it to your header file. Instead of using any login page use this jQuery form to get attractive look.

Check demo and see full detail to get the code.

Jquery code to execute action:

 $(document).ready(function(){
          $("#LoginButton").click(function(){
               if ($("#formContainer").is(":hidden")){
                    $("#formContainer").slideDown("fast");
                }
                else{
                        $("#formContainer").slideUp("fast");
                    }
             });
 
     });


CSS

          .mainDiv
            {
            	margin: 0px auto;
            	width:960px;
            	background-color:#ffffff;
            	text-align:left;
            }
             body{
                margin: 0px;
                text-align:center;
                font-family:Arial, Sans-Serif;
                font-size:0.75em;
            }
            .menu
            {
            	height:30px;
            	border-top:solid 1px #dccfbb;
            	border-bottom:solid 1px #dccfbb;
            	background-color:#4d3a24;
            }
            .menu div
            {
            	padding:10px 30px;
            }
             .content
            {
             	padding:10px 30px;
            }
            #formContainer
            {
            	height:200px;
            	width:351px;
                FirefoxChromeSafariInternet ExplorerOpera
                -webkit-border-radius: 30px;
                -moz-border-radius: 30px;
                border-radius: 30px;
            	background-color:#dccfbb;
            	display:none;
            }
            #formContainer fieldset
            {
            	padding:30px;
            	border:none;
            }      
            #formContainer label
            {
            	display:block;
            	color:#000;
            }      
            #formContainer input[type=text]
            {
            	display:block;
            	border:solid 1px #4d3a24;
            	width:100%;
            	margin-bottom:10px;
            	height:24px;
            }  
 
            #formContainer input[type=submit]
            {
            	border:solid 1px #23150c;
            	color:#000;
                background-color:#fff;
            	padding:5px;
            }                
            #LoginButton
            {
            	height:30px;
            	width:150px;
                FirefoxChromeSafariInternet ExplorerOpera
                -webkit-border-radius: 30px;
                padding:10px;
                text-align:center;
                display:block;
                -moz-border-radius: 30px;
                border-radius: 30px;
                background-color:#000;
                color:#fff;
                font-size:20px;
            	cursor:pointer;
            }

HTML

<div align="center">
        <div id="formContainer" align="left">
             <fieldset>
                 <label>User Name *</label>
                        <input id="name" type="text" />
                        <label>Password *</label>
                        <input id="Email" type="text" />
                        <input type="submit" name="submit" value="Check Login" />
                        <span id="messageErr">Login failed !</span>
               </fieldset>
         </div>
         <div id="LoginButton">Login</div>
</div>

Add To Facebook Stumble This Digg This Add To Del.icio.us Add To Reddit Add To Yahoo Add To Twitter


Written by ZeeShaN

ZeeShaN RasooL is a web developer who loves to work in latest technologies to create more interactive dynamic and beautiful web pages.


  • Hi.
    it looks really nice.
    I am very new to php so i need your help.
    1. I want to put button on the footer area so the form will pull up instead of pull down.
    2. I want to make it as a conact form, so if someone fills up the details it gets mailed to me.

    Thanks a ton in advance.

    December 18 2011
    CommentsLike
    • Jigy

      good good and easy tutorial, thank you 99points

      May 06 2010
      CommentsLike
      • Virendar Sayu

        pretty simple and easy, i have also very good jquery experience with lot of work

        May 06 2010
        CommentsLike
        • Jignish Kamal

          hi,
          its nice and simple. thank you

          April 27 2010
          CommentsLike








          Enter your Email:

          Click Here for Popular

          Who I Am

          Zeeshan Rasool

          Software Engineer - PHP
          Lahore - Pakistan

          zeeshan(@)99points.info
          Skype: zeeshan-rasool
          gTalk: zishan.rasool85

          Categories

          Tags

          Comments