topical media & game development 
  
 
 
 
 
  
    
    
  
 lib-js-math-calculator-instance.htm / htm
  
  <!-- TWO STEPS TO INSTALL INSTANCE COUNTER:
  
    1.  Copy the coding into the HEAD of your HTML document
    2.  Add the last code into the BODY of your HTML document  -->
  
  <!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->
  
  <HEAD>
  
  <!-- This script and many more are available free online at -->
  <!-- The JavaScript Source!! http://javascript.internet.com -->
  <!-- Original:  Philip Peterson (IronMagma@hotmail.com) -->
  <!-- Web Site:  http://www.ironmagma.tk -->
  <script language=javascript>
  <!--
  function countInstances(element,word) {
  montage=element.split(word).length-1;
  if(montage==0){montage="no"}
  if(montage==1){alert("The selection specified contains 1 instance of the phrase \""+word+"\".")}
  else{alert("The selection specified contains "+montage+" instances of the phrase \""+word+"\".")}
  }
  
->
</script>
</HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document  -->
<BODY>
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! 
http://javascript.internet.com -->
<!-- Original:  Philip Peterson (IronMagma@hotmail.com) -->
<!-- Web Site:  
http://www.ironmagma.tk -->
<textarea id=area>This is where your text goes.  It will search for instances of 'text'
</textarea>
<input type=submit onClick="countInstances(document.all.area.value,'text')" value="Count!">
<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided
<br>
by <a href="
http://javascriptsource.com">The JavaScript Source
</a></font>
</center><p>
<!-- 
Script Size:  1.50 KB -->
    
  
    
  
  
  
  
  
  
  
  (C) Æliens 
  20/2/2008
  
  
  You may not copy or print any of this material without explicit permission of the author or the publisher. 
  In case of other copyright issues, contact the author.
  
  
 
  <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
  </script>
  <script type="text/javascript">
  _uacct = "UA-2780434-1";
  urchinTracker();
  </script>