Current location: Hot Scripts Forums » General Web Coding » JavaScript » login pop up on screen code!


login pop up on screen code!

Reply
  #1 (permalink)  
Old 08-09-10, 07:04 PM
phphelpme phphelpme is offline
Newbie Coder
 
Join Date: Jul 2010
Posts: 84
Thanks: 10
Thanked 0 Times in 0 Posts
login pop up on screen code!

i need help making a login box that pops up inside the webpage , not a seperate window , but right there in the page , if any one could help PLEASE HELP thank you , please leave me a script!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 08-10-10, 11:45 AM
Yeroon's Avatar
Yeroon Yeroon is offline
Code Master
 
Join Date: Aug 2007
Location: Netherlands, Nijmegen
Posts: 850
Thanks: 2
Thanked 20 Times in 20 Posts
Try this:

html Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head>   <title></title>   <style type="text/css">   #popupbox{   margin: 0;   margin-left: 40%;   margin-right: 40%;   margin-top: 50px;   padding-top: 10px;   width: 20%;   height: 150px;   position: absolute;   background: #FBFBF0;   border: solid #000000 2px;   z-index: 9;   font-family: arial;   visibility: hidden;   }   </style>   <script language="JavaScript" type="text/javascript">   function login(showhide){     if(showhide == "show"){         document.getElementById('popupbox').style.visibility="visible";     }else if(showhide == "hide"){         document.getElementById('popupbox').style.visibility="hidden";     }   }   </script> </head> <body> <div id="popupbox"> <form name="login" action="" method="post"> <center>Username:</center> <center><input name="username" size="14" /></center> <center>Password:</center> <center><input name="password" type="password" size="14" /></center> <center><input type="submit" name="submit" value="login" /></center> </form> <br /> <center><a href="javascript:login('hide');">close</a></center> </div> <p> Blablalblalbla Blablalblalbla Blablalblalbla Blablalblalbla BlablalblalblaBlablalblalblaBlablalblalblaBlablalblalbla </p> <p> XYZ XYZ XYZ XYZ XYZ XYZ XYZ XYZ XYZ XYZ XYZ XYZ XYZ XYZ XYZ XYZ </p> <p><a href="javascript:login('show');">login</a></p> </body> </html>
__________________
Feel free to thank people if they help you by clicking thanks at a post.
=================================
Make it idiot proof and someone will make a better idiot.
=================================
Realise the impotence of proof reading everything you publish
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks

Tags
code javasript, javascript, javascript pop up, popup


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Captcha Code not working Frogger PHP 0 12-01-09 02:29 PM
Match code in link with code with one in file and extract line peuplarchie PHP 3 10-24-09 02:23 AM
Freeze columns in a table Rita Negi Script Requests 1 09-01-09 09:23 AM
SMS (Shared Short Code / keyword) vagabondos Job Offers & Assistance 0 11-04-05 10:01 PM


All times are GMT -5. The time now is 07:15 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.