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/
Printable View
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/
Like a login system?
I believe? If my memory serves me correct.Code:<input type="text" name="username" onfocus="this.focus();" onblur="this.blur();">
Code:<input type="text" value="Username.." onfocus="this.value = '';">
Caleb, do you have a script so that when you click the form, it highlights green like that site?
bumped............
Edited by Tomm (Forum Moderator): Please do not post pointlessly and bump the thread.
Rofl 8 hours isn't a bump.
Swindon Sound uses css to do theres.
:) here is the code we or I use just to clear things up,
Hope this helps anyone?:)Code: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'; }"
@Eccentric:
How do you make it so that when you click on the text-box the outline colour changes?
make sure the <form has:
name="bla" or something.
then onfocus="formname.fieldname.style.border = '1px solid #000000'"
input {
normal css }
input : focus {
when you click in there }