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 |