This tutorial shows a smarter way of dispalying login box in your web application. It is just similar to Twitter login box. The script is absolutely simple and easy to understand.
So enjoy the live demo…
HTML & Jquery Code
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
$(".login_btn").click(function()
{
$("#login_box").show();
return false;
});
$("body #main").click(function()
{
$("#login_box").hide();
return false;
});
});
</script>
<body>
<div class="heading">Twitter Like Login Box with Jquery.</div>
<div id="login_btn"><a href="#" class="login_btn">Sign In</a></div>
<div id="login_box">
<form method="post" action="">
<label>UserName<input type="text" name="user"/></label>
<label>Password<input type='password' name="pass"/></label>
<input type="submit" value=" Sing In " class="login_btn"/>
</form>
</div>
<div id='main'><h1><a href="www.webspeaks.in">webspeaks.in</a></h1></div>
</body>
CSS Code
#login_btn
{
margin-left:300px;
text-align:right;
width:500px;
background-color:#50D0DE;
border:1px solid #0D716F;
}
#login_box
{
width:170px;
font-family:Tahoma;
font-size:12px;
color:#0E7268;
background-color:#B3ECE4;
border:solid 2px #5ea0c1;
padding:8px;
margin-left:600px;
position:absolute;
display:none;
-moz-border-radius:6px;
-webkit-border-radius:6px;
}
.login_btn
{
background-color:#FFFFFF;
border:solid 1px #5ea0c1;
padding:3px;
-moz-border-radius:6px;
-webkit-border-radius:6px;
}
#main
{
padding-left:500px;
width:100%;
height:500px;
}
.heading{
background-color:#2859AA;
border:1px solid #121649;
color:#FFFFFF;
font-weight:bold;
font-size:14px;
padding:3px;
text-align:center;
font-family:Verdana, Arial, Helvetica, sans-serif;
width:500px;
margin-left:300px;
}
The live demo is not working !
check your mysql connect parameters ..
Is it just me or is this really… really…. really old?
hmmm its just sucks.. i mean GUI suck big time :S
Hi to every one, as I am really keen of reading this blog's post to be updated regularly.
It contains pleasant data.
hello Muchas gracias por contarnoslo, es una casulidad econtrarme con este sitio, saludos para
todos
If some one wants to be updated wwith hottest technologies therefore he
must be pay a qujick visit this web site annd be up too
date every day.
My spouse and I absolutely love ypur blog and find almost all of your post's to be
exactly what I'm looking for. Would you offer guest writers to
write content for you personally? I wouldn't mind producing a post or elaborating oon some of the subjects you write about here.
Again, awesome web site!
Good info. Lucky me I ran across your blog by chance (stumbleupon).
I've saved as a favorite for later!
Every weekend i used to ppay a visit this website, as i wish
for enjoyment, for the reason that this this website conations truly ice funnmy information too.
Thanks for sharing your thoughts on notebook
battery life. Regards
I read this article fully concerning the comparison of latest and earlier technologies,
it's amazing article.