Click here to Skip to main content
15,910,661 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have an anchor tag
HTML
<a href="#"> Sign in</a>

this is in header and i want that when i click on this sign in link a box open and user can login from here without going on a another page and during the opening of box back display should not be diable or darl????
how can i do this????
Posted
v2
Comments
Leena 206 12-Sep-13 3:29am    
Omprakash Kukana 13-Sep-13 2:11am    
idnt think that on a signin button on mouse over show a login box i will prefer it on click dear
Leena 206 13-Sep-13 2:45am    
even sign in of codeproject is on mouseover. ;)

1 solution

Some months ago, I replicated the Code Project Sign In Box, which opens on Mouse Hover.

Demo - Code Project Sign In Box[^]

You can try something like this on click of Anchor. Logic will be like below...

  • Keep the Login Box inside a Div and make it display none (hide it).
  • On Anchor click, call a javaScript function.
  • In that function, change the display property to Block for the Sign In Div (Show it).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900