|
Post by darkangel on Apr 15, 2008 18:01:51 GMT -5
Can you add a word counter? It makes it easier to post when you see how many words you have.
|
|
|
Post by Daphne Greengrass on Apr 15, 2008 21:23:17 GMT -5
Well I was bored, so I found the code for you, just in case. It goes in to your Global Footer =] <script type='text/javascript'> <!-- /* Posting/PM Word Count - created by Eton Bones */
//set to minimum word count needed in order to make a post //or set to 0 to disable word count enforcement. var wordCountLimit=0;
if(document.postForm && document.postForm.message){ var __submitBtn,__wc,__msg __msg=document.postForm.message; __submitBtn=document.getElementsByTagName('input'); for(var count=0;count<__submitBtn.length;count++){ if(__submitBtn[count].accessKey && __submitBtn[count].accessKey=='s'){__submitBtn=__submitBtn[count];break;} } if(typeof(__submitBtn.length)=="undefined"){ __btnText=__submitBtn.value; __wc=document.createElement('div'); __wc.id="wordcount"; __wc.appendChild(document.createTextNode('Word Count: ')); __wc.appendChild(document.createElement('span')); __submitBtn.parentNode.appendChild(__wc); count=__msg.value.match(/\b\w+\b/g); count=(count)?count.length:0; __wc.lastChild.innerHTML=count; if(count<wordCountLimit){__submitBtn.disabled=true;} if(document.addEventListener){ __msg.addEventListener("keyup",wordUp,false); __msg.addEventListener("input",wordUp,false); __msg.addEventListener("change",wordUp,false); }else if(document.attachEvent){ __msg.attachEvent("onpropertychange",wordUp); }else{ __msg.onkeyup=wordUp; __msg.onmouseup=wordUp; __msg.onchange=wordUp; } } }
function wordUp(event){ if(this.document){var thiss=event.srcElement;}else{var thiss=this;} var count=thiss.value.match(/\b\w+\b/g); count=(count)?count.length:0; if(count>=wordCountLimit && wordCountLimit >0 && __submitBtn.disabled){ __submitBtn.disabled=false; } __wc.lastChild.innerHTML=count;
}
//--> </script>
|
|
|
Post by Hermione Granger on Apr 15, 2008 21:26:40 GMT -5
If you use word it's also a lot easier. There's a word count there, automatic spell check and after a while you know where to aim to get say 400 words or something.
|
|
|
Post by Daphne Greengrass on Apr 15, 2008 21:31:50 GMT -5
I personally don't have Word - if I want to know how many words something is I have to count it by hand =/
|
|
|
Post by Hermione Granger on Apr 15, 2008 22:05:59 GMT -5
Really?? I thought all computers these days have wordcount. Well on here if you press reply and if you fill the whole box once it's 150 words generally. So if you fill it say three times you have aroung 450 words.
|
|
|
Post by Bellatrix Lestrange on Apr 16, 2008 6:22:09 GMT -5
Hey if you go online to good and search for
"Online word counter."
they'll be websites where all you have to do is copy and paste everything that you've written and it'll count the words in like seconds ^_^.
I use it for drama essays *shifty*
|
|
|
Post by Daphne Greengrass on Apr 16, 2008 7:19:21 GMT -5
Really? Ooooh, I'll have to look that in to that - thank you =]
|
|
|
Post by Bellatrix Lestrange on Apr 16, 2008 8:01:33 GMT -5
No problem ^_^
=)
|
|
|
Post by Ofelia Cruz on Apr 16, 2008 11:50:39 GMT -5
There you go, I added the code for you guys.
|
|