runnerjp
05-17-2008, 10:56 AM
something is wrong with my textbox as it grabs all the data below it :S
<td><div align="center">
<textarea class="inputshout" id="message" name="message" rows="7" type="text" cols="100" value="Enter message here ..." maxlength="<?php $messagelength;?>" onfocus="this.value = ( this.value == this.defaultValue ) ? '' : this.value;return true;" />
</div></td>
rangana
05-17-2008, 10:58 AM
It's because you closed your textarea (http://www.w3schools.com/TAGS/tag_textarea.asp) in a wrong way ;)
<textarea></textarea>
runnerjp
05-17-2008, 11:12 AM
i did it like this <textarea class="inputshout" id="message" name="message" rows="7" type="text" cols="100" value="Enter message here ..." maxlength="<?php $messagelength;?>" onfocus="this.value = ( this.value == this.defaultValue ) ? '' : this.value;return true;" </textarea>
but i does ot display my vaule message :S
rangana
05-17-2008, 11:15 AM
Erroneous!.
Should be like this:
<textarea class="inputshout" id="message" name="message" rows="7" type="text" cols="100"
value="Enter message here ..." maxlength="<?php $messagelength;?>"
onfocus="this.value = ( this.value == this.defaultValue ) ? '' : this.value;return true;">
</textarea>
If you want to see your message inside the textarea, do it as highlighted:
<textarea class="inputshout" id="message" name="message" rows="7" type="text" cols="100"
maxlength="<?php $messagelength;?>"
onfocus="this.value = ( this.value == this.defaultValue ) ? '' : this.value;return true;">
Enter message here ... </textarea>
P.S. You should'nt be editing your POST...as it does'nt send me any update :)
runnerjp
05-17-2008, 12:11 PM
currently in my css i have this
.inputshout {border: 1px solid #99b3b4;width: 500px;background: #e4ebeb url(../images/input_stripe.gif);font: 11px verdana, sans-serif;color:#99b3b4;padding:3px;outline:none;}
.inputshout:focus {border:1px solid #567475;background: #e4ebeb;}
any way to chnage it so the onclick.. it chnages the text colour to black.. i dunno if this is html or css lol
rangana
05-17-2008, 12:20 PM
First of all, you should say if the suggestion given has aide or not :rolleyes:
...Anyway, this could be done in JS:
<textarea class="inputshout" id="message" name="message" rows="7" type="text" cols="100"
maxlength="<?php $messagelength;?>"
onfocus="this.value = ( this.value == this.defaultValue ) ? '' : this.value;this.style.color='#000';return true;">
Enter message here ... </textarea>
Hope that helps ;)