mengu on web programming.

How To Make Twitter Like Sign In Box

In this simple tutorial I explain how to make a simple twitter like sign in box. All we need is some jQuery knowledge and a jQuery plugin called [jquery.corner](http://www.malsup.com/jquery/corner/jquery.corner.js?v2.02) in order to make the boxes rounded corner. Here is the path we should follow: * Create a div and make its id as "loginBox". * Create a sub div and put the login box content and make its id as "loginBoxContent". * Add some style. * Code the jQuery part. So let's begin with the HTML:
Login
Username or e-mail:
Password:
With this simple piece of code we have created two divs with the ids loginBox and loginBoxContent. After that we have added some content to the loginBoxContent container. The next part is adding some style to the page so here is the simple css. I'm sorry for this poor styling since I am a web developer not a designer, I really suck at designing. Now that we have completed the first 3 steps successfully, the only part left is coding some jQuery. **What we are going to do?** We are just going to add a click event to the #loginBox and make some style changes and positioning on the #loginBoxContent. In the meanwhile we will also check if the #loginBoxContent is already open or not so we can obtain the action that should be done. Here you can see the jQuery part. And that is all! Your Twitter like login box is ready! [Check out the demo](http://www.mengu.net/repo/loginbox.html) and enjoy!
Check my latest project compector.com where you can post references about your former employers and see what others have said about the future employers. Sign up now and post a reference and share it on twitter or facebook.
Tags: twitter

Comments

drwierdo said on 16/09/2010 05:39 AM
man you make is sound so so very simple....ur a natural in programming...u rock man!!!!

Aykak said on 10/12/2011 04:43 AM
Awesome and useful but you can give up a little shadows with CSS in gray color... :)

Leave a Response

No HTML allowed. You can use markdown.
Name*:
E-Mail* (not published):
Web site:
Response: