Something I forgot - Some browsers look for a close tag for the text
area, so put that in immediately after.
atthepeacock2004 wrote:
> Bless you, Auggy.
> Even Robert tried this, with no luck. You are a guru.
> Thank you so much for your time. I'll let you know how we do with
> all your help.
> Best regards,
> Acara
>
>
> --- In phpmychat%40yahoogroups.com">phpmychat
yahoogroups.com, Auggy <philodox
...> wrote:
>
>> Okay - what you're going to want to do is alter the input.php(3)
>>
> file.
>
>> Search the file for something that say "<input type="text" name
>>
> ="M"
>
>> ....> and change it. What I have is as follows:
>> <textarea name="M" valign="baseline" rows="3" cols="55" VALUE="<?
>>
> php
>
>> echo(htmlspecialchars(stripslashes($ValM))); ?>"
>> onKeyDown="limitText(this.form.M,this.form.countdown,500);"
>> onKeyUp="limitText(this.form.M,this.form.countdown,500);"
>> onkeypress="ifEnter(this,event);">
>> This gives me a fairly large textarea to work with. It also changes
>>
> the
>
>> character limit to 500 characters (the onKeyDown="limitText...part)
>>
> and
>
>> allows people to send a message by hitting enter (onkeypress). The
>> character limit is strongly advised - Otherwise people can flood
>>
> the
>
>> chat unintentionally. Having said that, here's the javascript that
>>
> goes
>
>> along with it, which should be in the <head> section of the file:
>> <script language="javascript" type="text/javascript">
>> function limitText(limitField, limitCount, limitNum) {
>> if (limitField.value.length > limitNum) {
>> limitField.value = limitField.value.substring(0, limitNum);
>> } else {
>> limitCount.value = limitNum - limitField.value.length;
>> }
>> }
>> </script>
>>
>>
.