Looking for help with word counter

Discussion in 'HTML & Website Design' started by allwayslearning, Apr 27, 2009.

  1. #1
    Where can I find java or html to past in my block by block SBI site that will make it so people can write content and get the total number of characters and or words/?
    Here is a link to a site that already does this. http://www.internetbasedmoms.com/freebies/word-count.htm I want it for my site because the site were I get words and characters counted is one I go to all the time and eventually I became interested in the other stuff on the site. I figure that if I have a word and character counter on my site it will bring people back like what happened to me in regard to the site I have been using for word counting.

    I know no html or java so just point mt to somewhere that I can copy and past it in to my site.
    See this site to see what I am talking about
    http://www.internetbasedmoms.com/freebies/word-count.htm
     
    allwayslearning, Apr 27, 2009 IP
  2. Tim46

    Tim46 Peon

    Messages:
    132
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Heres one for ya

    <form method="POST" name="wordcount">
    <script language="JavaScript">

    function countit(){

    /*Word count script
    By JavaScript Kit (http://javascriptkit.com)
    Over 400+ free scripts here!
    */

    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"><p><input type="button" value="Calculate Words"
    onClick="countit()"> <input type="text" name="wordcount3" size="20"></p>
    <div align="center"><center><p><font face="arial" size="-2">This free script provided by</font>
    <font face="arial, helvetica" size="-2"><a href="http://javascriptkit.com">JavaScript
    Kit</a></font></p>
    </center></div></div></td>
    </tr>
    </table>
    </form>

    just copy and paste it where you want it to appear on your page
     
    Tim46, Apr 27, 2009 IP