HighDots Forums  

textarea

alt.html.tags alt.html.tags


Discuss textarea in the alt.html.tags forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Obscurr
 
Posts: n/a

Default textarea - 09-24-2003 , 04:27 AM






hi,

is there a way of limiting the textarea to e.g. 5 lines of text? And
if someone write the whole 5 lines full, there will not be possible to
go to the 6th line. ( maybe some way of cutting the scrollbar? )

obscurr

Reply With Quote
  #2  
Old   
J&D
 
Posts: n/a

Default Re: textarea - 09-24-2003 , 11:46 AM






If you want some example, look http://zlatylist.d2.cz/smsbrana.html

There is the code you maybe want

<script language="JSCRIPT">

<!--
function cnt(f,p) {
str = f.zprava.value
len = str.length
f.counter.value=len
}
//-->
</script>


....

<textarea name="zprava" cols="70" rows="3" class="formItem"
onchange="cnt(document.one,0)" onkeyup="cnt(document.one,0)"
onblur="cnt(document.one,0)" onfocus="cnt(document.one,1)"
onmousemove="cnt(document.one,1)"></textarea>

<br />You wrote <input type="text" name="counter" size="4" maxlength="4"
class="formItem"> chars of XXX possible




"Obscurr" <obscurr (AT) hotmail (DOT) com> píse v diskusním príspevku
news:4452c409.0309240127.2e8a9062 (AT) posting (DOT) google.com...
Quote:
hi,

is there a way of limiting the textarea to e.g. 5 lines of text? And
if someone write the whole 5 lines full, there will not be possible to
go to the 6th line. ( maybe some way of cutting the scrollbar? )

obscurr



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.