Initial commit
This commit is contained in:
commit
d7619777af
915 changed files with 59386 additions and 0 deletions
14
scripts/cntchar.js
Normal file
14
scripts/cntchar.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
var x = "";
|
||||
var e = null;
|
||||
|
||||
function cntchar(m) {
|
||||
if(window.document.forms[0].text.value.length > m) {
|
||||
window.document.forms[0].text.value = x;
|
||||
} else {
|
||||
x = window.document.forms[0].text.value;
|
||||
}
|
||||
if(e == null)
|
||||
e = document.getElementById('cntChars');
|
||||
else
|
||||
e.childNodes[0].data = window.document.forms[0].text.value.length;
|
||||
}
|
||||
Loading…
Reference in a new issue