**BANNED The Man
2011-04-25 11:32:36
Ok so I have a form, how can I make it so that when they click in the box the writing (for example: "First Name") disappears?
Let me know if you need the actual code.
EDIT: 2nd bit of help needed.
I have a background for a form.
How do I insert it?
My form code:
Cheers
-Boom
Let me know if you need the actual code.
EDIT: 2nd bit of help needed.
I have a background for a form.
How do I insert it?
My form code:
<img alt="" src="images/quick_form_text.png"
border="0" /><br />
<br />
<div style="margin-left: 54px; padding-left: 30px;">
<form method="post" action="fullform.php"><input
onblur="if (this.value == '') {this.value = 'Firstname';}"
size="15"
onfocus="if (this.value == 'Firstname') {this.value = ''; }"
id="text" name="firstname" value="Firstname"
maxlength="27" /><br />
<br />
<input
onblur="if (this.value == '') {this.value = 'Lastname';}"
size="15"
onfocus="if (this.value == 'Lastname') {this.value = ''; }"
id="text" name="lastname" value="Lastname"
maxlength="27" /><br />
<br />
<input
onblur="if (this.value == '') {this.value = 'Telephone';}"
size="15"
onfocus="if (this.value == 'Telephone') {this.value = ''; }"
id="text" name="telephone" value="Telephone"
maxlength="27" type="text" /><br />
<br />
<input
onblur="if (this.value == '') {this.value = 'Email Address';}"
size="15"
onfocus="if (this.value == 'Email Address') {this.value = ''; }"
id="text" name="email" value="Email Address"
maxlength="27" type="text" /><br />
<br />
<input
onblur="if (this.value == '') {this.value = 'Approx. value of property (£)';}"
size="15"
onfocus="if (this.value == 'Approx. value of property (£)') {this.value = ''; }"
id="text" name="value"
value="Approx. value of property (£)" maxlength="29"
type="text" /><br />
<br />
<input id="submit" name="submit"
src="images/button_continue.png" style="margin-left: 28px;"
type="image" /> </form>Cheers
-Boom