PDA

View Full Version : UserName+Password Thing



Rockstar
11-10-2007, 07:13 PM
Yeh me is heavy n00b at some stuff.
How do I do this in the username + password think like when you click it goes.Like on http://www.swindonsound.com/ss/

Dentafrice,
11-10-2007, 07:19 PM
Like a login system?

Rockstar
11-10-2007, 07:20 PM
Like a login system?
Yeh kinda but when They click he has udername and It dissapeas

Dentafrice,
11-10-2007, 07:22 PM
<input type="text" name="username" onfocus="this.focus();" onblur="this.blur();">


I believe? If my memory serves me correct.

Rockstar
11-10-2007, 07:27 PM
<input type="text" name="username" onfocus="this.focus();" onblur="this.blur();">


I believe? If my memory serves me correct.

Nop

<input type="text" name="username" onfocus="this.focus();" onblur="this.blur();">
dosent work I want it so text is in it and on click goes away

Dentafrice,
11-10-2007, 09:03 PM
<input type="text" value="Username.." onfocus="this.value = '';">

Verrou
12-10-2007, 05:53 AM
Caleb, do you have a script so that when you click the form, it highlights green like that site?

Rockstar
12-10-2007, 08:26 AM
<input type="text" value="Username.." onfocus="this.value = '';">

Thanks +rep and Verrou Dont bump My thread.

w7habbolegend
12-10-2007, 08:28 AM
bumped............

Edited by Tomm (Forum Moderator): Please do not post pointlessly and bump the thread.

Verrou
12-10-2007, 08:37 AM
Rofl 8 hours isn't a bump.

Colin-Roberts
12-10-2007, 10:34 AM
Swindon Sound uses css to do theres.

Eccentric
12-10-2007, 04:05 PM
:) here is the code we or I use just to clear things up,

value="Coming Soon" onclick="if (this.value == 'Coming Soon') { this.value = ''; }" onfocus="if (this.value == 'Coming Soon') { this.value = ''; }" onblur="if (this.value == '') { this.value = 'Coming Soon'; }"

Hope this helps anyone?:)

Verrou
12-10-2007, 06:11 PM
@Eccentric:
How do you make it so that when you click on the text-box the outline colour changes?

Dentafrice,
12-10-2007, 08:18 PM
make sure the <form has:

name="bla" or something.

then onfocus="formname.fieldname.style.border = '1px solid #000000'"

Eccentric
12-10-2007, 09:08 PM
input {
normal css }
input : focus {
when you click in there }

Want to hide these adverts? Register an account for free!