Show/Hide Help

2012-05-28  Source: Original Site  Category:HTML & CSS  Views:0 

Advertisement

I have a show/hide script here that when I click a link it shows a login form. I made a picture to better explain what I want.

http://starlitdesigns.com/demo.gif

What I want is the login form to be on the right side of the word login instead of under it. Here is my code:

echo"<a href=\"register.php\">Register</a> || <a href=\"javascript:void(0);\" onClick=\"showHide('loginform')\";>Login</a>

<div class=\"hidden\" id=\"loginform\">

<form action=\"account.php?function=login&url=$url\" method=\"post\">

<input class=\"textfield\" type=\"text\" name=\"username\" maxlength=\"25\" size=\"15\">

<input class=\"password\" type=\"password\" name=\"password\" maxlength=\"25\" size=\"15\" value=\"Password\">

<input class=\"submit\" type=\"submit\" value=\"Login\">

</form></div>";

// I spaced it out so everyone can see fine, in actuality the code is bunched up

Someone please help :( :(

Related articles
  • jQuery toggle show hide - help 2012-09-23

    Hi, Im working my way through the book 'jQuery in Action' and i'm a bit stumped with a block of code and how it works. The Code : $(function(){ $('li:has(ul)') .click(function(event){ if (this == event.target) { $(this).children().toggle(); $(this).c

  • jQuery r2457 - added aria- show/hide helper method 2013-06-30

    Author: a.farkas.pm Date: Wed Apr 15 14:23:45 2009 New Revision: 2457 Modified: branches/experimental/a11y/ui.a11y.ext.js Log: added aria- show/hide helper method Modified: branches/experimental/a11y/ui.a11y.ext.js ===================================

  • Show/Hide Help 2012-05-28

    I have a show/hide script here that when I click a link it shows a login form. I made a picture to better explain what I want. http://starlitdesigns.com/demo.gif What I want is the login form to be on the right side of the word login instead of under

  • Show/Hide Help Please 2014-08-10

    I don't know a lot about Javascript... still learning.. I am trying to create a show/hide effect that displays an image based on the users text input. I have coded this before for a list/menu and it works fine. With this particular project there are

  • Need Javascript show/hide help 2012-11-12

    I have decided to use 2 chain link drop down menus. However I am having issues with getting the menu to show a hidden <div> that contains the content wanted. The drop down menus are populated through config.js and works just fine, but for this

  • show/hide help needed 2012-06-28

    I have a checkbox and 5 text fields. If the checkbox is checked, I want to show the text fields. If it's not checked, they need to be hidden. Can anyone help?

  • Form element show/hide help 2012-12-01

    I'm an intermediate level PHP/mySQL geek working on some rather complex forms. I need to be able to show a select box that is hidden by default if a given value is selected out of a previous select box. I've search everywhere online and all the examp

  • Command Button Show/Hide Help 2015-02-06

    I have a form where the underlying table has a yes/no field. I want to make a command button that displays whenever the field is checked "yes". I have a text box with the following control source: =IIf([Mailing Address]=Yes,"View Mailing Address","")

  • Show / Hide - need help 2013-04-04

    Hello, i got this simple Show/Hide script: <script type="text/javascript"> function displayRow(){ var row = document.getElementById("captionRow"); if (row.style.display == '') row.style.display = 'none'; else row.style.display = ''; }</scrip

  • Help - script to show & hide multiple divs 2013-07-01

    Hi, I am new to javascript so any help would be much appreciated. I found the following script online to show/hide a login div. <script language="JavaScript" type="text/javascript"> function login(showhide){ if(showhide == "show"){ document.get

  • Need help in creating a flash menu which show/hide on button click. 2013-07-07

    I wish to create a flash menu which should scroll up from botton of movie on clicking a single "View menu" button. The text on the button should show "Hide menu" when menu is displayed. Up on clicking the same button whose text is "Hide menu" now, th

  • Trouble with layers not showing with show/hide layers, help needed. 2013-08-06

    As the topic title says, the Dreamweaver show/hide layers script isn't working properly, and I don't know why. Basically, only one layer will show (Layers controllered via CSS), and I haven't been able to get *any* other layers to show at all, yet on

  • Show/Hide Div and site layout help! 2013-09-14

    Trying to set up the show/hide on my basic website for a university submission but looking for some help! The show/hide div works but ruins the entire layout of the site. This image will explain better hopefully!! http://i809.photobucket.com/albums/z

  • HELP Show/Hide Hidden Layers in FF 2013-12-18

    I'm green to a lot of this so please speak slowly :) I re-did my web site and i used a bunch of hidden layers that show/hide to add drop downs when you rollover some of the words in the menu bar. The're should also be hidden layers that show/hide off

  • Help with Collapsible Divs (adding image for show/hide state) 2014-01-26

    I'm using this script for collapsible divs... http://www.harrymaugans.com/2007/03/...cript-and-css/ Everything's working fine but I need to add an image for show/hide state. When the div is showing the header displays an "open" arrow...when closed it

  • jQuery Show/Hide multiple table rows. Pls help 2014-07-29

    Hi, I have a problem i've been trying to solve for a while. I have a table that is dynamically generated. I need to be able to hide and show certain table rows. for e.g. <table> <thead> <tr> <td><heading1></td>

  • jQuery help with show hide on wordpress site 2014-10-04

    Hello, I am trying to use the show/hide jquery function to show and hide book descriptions by clicking on the name of the book. It seems that the script works OK in firefox but not at all in IE. (In IE the descriptions are hidden and won't show) For

  • Show/hide javascript help needed, bookmarking purposes. 2015-02-08

    I am desigining a support site for a large corporation. Right now i'm using the code below to show/hide divs within a page. What I need is something that can process the http://somesite.com/somepage.htm#somediv, so that when a CSR is offering help to

  • Help with show/hide (display:block/none) JS code 2015-05-19

    I have a JS situation I need some help with. :) I have the following show/hide JS code working fine (2 iterations): function showHidespec1(_myObj,_action) { var _myTableObj = document.getElementById((_myObj.parentNode.id).substring(0,(_myObj.parentNo

  • jQuery [HELP] show / hide div with one button 2012-01-13

    Need to use one single button to toggle the show and hide for divmy code looks something like this function showTable(number){ $('#div_'+number).show('slow'); $('#button_'+number).html("Hide Table"); $('#button_'+number).click(function(){ hideTable(n