MyBB Community Forums

Full Version: Insert Word Counter Into Posting Section
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Any luck?
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#800080">
<form method="POST" name="wordcount">
  <script language="JavaScript">
function wcount(){

var formcontent=document.wordcount.wordcount2.value
formcontent=formcontent.split(" ")
document.wordcount.wordcount3.value=formcontent.length
}
</script>
<table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="100%"><textarea rows="12" name="wordcount2" cols="60" wrap="virtual"></textarea></td>
    </tr>
    <tr>
      <td width="100%">
		<div align="right">
		<input type="button" value="Calculate Words" onClick="wcount()">
		<input type="text" name="wordcount3" size="20">
		</div>
	  </td>
    </tr>
  </table>
</form>
</BODY>
</HTML>

That's some really simple html code and javascript for a wordcounter I use. Maybe lex can help you incorporate it.
i have the jscript already =P Just the retarted textarea wont me let do any event on it due some onload stuff from other jscripts =P
LeX- you're probably referring to "message" as the ID or name of the textarea right? If you are, try using "message_new" instead.
See, that's the problem. I tried using values declared when the editor was created. That didn't work.
Wow, must be a hard code, eh? XD Any luck?
Bump.
Pages: 1 2