title: Javascript typing effect
body: <p>The issue arises from the same issue as <a href="https://stackoverflow.com/questions/19654915/javascript-countdown-and-redirect">last time</a>. My websites run off a static domain, so I want to be able to use this script on each site without making duplicate copies.</p>
  
  <p>It functions as a typing text effect, I want to be able to define the text it prints out from the webpage itself and not the script.</p>
  
  <p><strong>Javascript</strong></p>
  
  <pre><code>var index = 0;
  var text = 'Text';
  
  function type()
  {
      document.getElementById('screen').innerHTML += text.charAt(index);
      index += 1;
      var t = setTimeout('type()',100);
  }
  </code></pre>
  
  <p>I've tried fiddling with the code and using them same method as my previous post, but I can't seem to get it to work.</p>