Typing Text effect not working

Posted by Anthony Garand on Stack Overflow See other posts from Stack Overflow or by Anthony Garand
Published on 2010-06-01T19:57:47Z Indexed on 2010/06/01 20:03 UTC
Read the original article Hit count: 261

Filed under:

I'm writing a script to take an array of strings, split them by characters, and print them out to the screen. This is what I have and for some reason it is not doing anything. Any ideas?

function autowrite() {
        var write_text=["Your Memories","Your Thoughts","Your Photos"];
        var split_text = Array();
        var i;
        var c;
        for(i=0; i < write_text.length; i++)
        {
            split_text[i] = write_text[i].split("");
            for(c=0; i < split_text.length[i]; i++)
            {
                alert(split_text[i][c]);
            }
        }
    }

© Stack Overflow or respective owner

Related posts about JavaScript