js typing text to screen
<p>hey guys i have a problem with a function which runs just fine on my localhost by when i upload it to the server it doesn't work, could some one please point me to the solution:</p>

<pre><code>var text = "some text";
var textArray = text.split("");
var looptimer;
function letterloop(){
    if (textArray.length &gt; 0){
        $("#divx").append(textArray.shift());
    }
    else {
        clearTimeout(looptimer);
        var div = $("&lt;a href=\"#\" onmousedown=\"javascript:continueOne();\" style=\"margin-top:70px; display:block; text-align:center;\" id=\"continue\" class=\"send_msg_blue\"&gt;continue&lt;/a&gt;").hide().fadeIn(4000);
        $("#div").append(div);
        return false;
    }
    looptimer = setTimeout("letterloop()",60);
}
letterloop();
</code></pre>
