var t = 0; var t_e = 0; var n = aryText[0].length; function typingText() { var obj = document.getElementById('textbox'); obj.innerText = aryText[t].substring(0, t_e) + '_'; if(t_e++ == n) { t_e = 0; setTimeout('typingText()', 1000); t++; if(t == aryText.length) { t = 0; n = aryText[t].length; } } else setTimeout('typingText()', 100); } window.onload = typingText; //ũƮ -->