Shout box knowledge Created 19 years ago2005-02-15 19:04:28 UTC by 96a2107 96a2107

Created 19 years ago2005-02-15 19:04:28 UTC by 96a2107 96a2107

Posted 19 years ago2005-02-15 19:04:28 UTC Post #90901
I see on the TWHL shoutbox 'name' input there is an initial value which says 'Shout here'. Just wanted to know how this effect is made. Is it just a regular Textarea command or does it require seperate coding?

Thanks
96 ;)
Posted 19 years ago2005-02-15 19:40:41 UTC Post #90915
The source, Luke, view the source.
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 19 years ago2005-02-15 20:53:15 UTC Post #90923
thank you obi wan kemonkeh, your words are wise
Posted 19 years ago2005-02-15 21:08:41 UTC Post #90928
Hey! I didnt say anything!
Posted 19 years ago2005-02-15 22:11:43 UTC Post #90948
Your both monkehs arnt you???
Posted 19 years ago2005-02-15 22:14:01 UTC Post #90949
and i still need to know, source didnt help me much, admins?
Posted 19 years ago2005-02-15 22:53:53 UTC Post #90953
It's probably some OnClick javascript thing.
m0p m0pIllogical.
Posted 19 years ago2005-02-15 22:59:04 UTC Post #90955
No, my name is Luke.
Luke LukeLuke
Posted 19 years ago2005-02-16 03:04:37 UTC Post #90980
Luke Skywalker > Luke Monkeychow
Posted 19 years ago2005-02-16 04:36:16 UTC Post #90982
  • > Luke Monkeychow
Trapt Traptlegend
Posted 19 years ago2005-02-16 04:45:36 UTC Post #90985
lol that should be his new name. fits him perfectly
Posted 19 years ago2005-02-16 07:16:39 UTC Post #90994
I bet his already registered it :P
Habboi HabboiSticky White Love Glue
Posted 19 years ago2005-02-16 07:33:03 UTC Post #90996
<INPUT TYPE="text" MAXLENGTH="200" NAME="str" SIZE="11" VALUE="Shout here" STYLE="border: black 1px solid;font-size:10pt;background-color:#FEFCE5;font-family:Verdana,Arial;margin-bottom:1px;" onFocus="JavaScript:(this.value=='Shout here')?this.value='':this.select();" onFocusOut="JavaScript:(this.value=='')?this.value='Shout here':this.value=this.value;">
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 19 years ago2005-02-16 12:02:24 UTC Post #91021
aha thanks monkey i can work with that, thanks for the help ;)
Posted 19 years ago2005-02-16 12:03:13 UTC Post #91022
can you invlude the this.select function please :)
Posted 19 years ago2005-02-16 13:31:53 UTC Post #91044
I think that's a native function. I just pulled the above from the source, and the only places I seem to find it are in textboxes. I suspect it may be to set focus inside the textbox?
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 19 years ago2005-02-16 15:06:39 UTC Post #91072
Cool thanks 7th
Posted 19 years ago2005-02-16 15:19:05 UTC Post #91073
My shoutbox msgarea is coded like this (jus to help anyone else trying to do it):

onFocus="if (this.value == this.defaultValue) { this.value = ''; }"
>Shout here!</textarea>

this code is just added to the textarea feild, slightly diffrent to the TWHL one, but works just as well. ;)
Posted 19 years ago2005-02-16 15:19:49 UTC Post #91075
mine works as follows: http://www.danhall.co.uk
Posted 19 years ago2005-02-16 15:30:37 UTC Post #91076
This is too all you people with 'obsolete' shout boxes...tut tut!

ahem..iemc,mop,zl etc etc
Posted 19 years ago2005-02-16 17:11:07 UTC Post #91083
Bah!

Your txtbox has nothing on my mangled one. ;)
Posted 19 years ago2005-02-16 19:17:17 UTC Post #91114
That poor text box :) , looks good though
Posted 19 years ago2005-02-17 15:58:19 UTC Post #91258
The only problem is that is looks messed as hell in Opera :(
Posted 19 years ago2005-02-17 18:21:40 UTC Post #91312
Mine is mangled. Just like yours. I changed its size. Nothing to extreme or difficult.

I may have to steal that code now, Dan.
Luke LukeLuke
Posted 19 years ago2005-02-17 21:38:42 UTC Post #91340
Dont use my real name!! youll reveal me too the intenet and ill be visited by crazy hillbillys and be spammed for life!! :P :P
Posted 19 years ago2005-02-17 21:45:00 UTC Post #91342
ok...

...Dan...

...Hall.
Luke LukeLuke
Posted 19 years ago2005-02-17 21:47:07 UTC Post #91345
How would you ever have known my full name :P youve just ruined my life :P
Posted 19 years ago2005-02-17 22:04:04 UTC Post #91356
BTW, i just stole your line of code.

And your identity... :badass:
Luke LukeLuke
You must be logged in to post a response.