JavaScript typewriter script not working
<p>Well basically I tried to make a typewriter script from scratch, for my little terminal web app junkie xD</p>

<p>Well, I've got this JavaScript thingy:</p>

<pre><code>var str = "dude";
var num = 1000;
for (var i = 0, len = str.length; i &lt; len; i++) {
var num = num + 100;
var dude = str[i];
setTimeout('document.getElementById("guide").innerHTML +=dude;', num);
}
</code></pre>

<p>which obviously writes to a <code>div</code> with the <code>ID</code> <code>guide</code>, "d" "u" "d" "e" in 100 milisecond intervals, but guess what ?</p>

<p>It doesn't do that !! </p>

<p>NOW what it DOES do it print "e" as many times as they are characters in the string, dude!!</p>

<p>:|</p>

<p>Thank you,</p>

<p>I'm probably super stupid</p>

<p>but I'd love a fix!</p>

<p>Thanks in advance!</p>
