DHTML Text Typing Effect
Use this simple function to achieve the effect of having text typed out onto your website. You can speed it up or slow it down by changing the number of millisecond of the interval.
Just replace the contents of this div with your own text
interval = 80; // milliseconds to wait between typing characters
if(document.getElementById) {
typeTextHolder = document.getElementById("toType");
if(typeTextHolder.innerHTML) {
typingBuffer = ""; // prevents stripping spaces
i = 0;
typeText = typeTextHolder.innerHTML;
typeTextHolder.innerHTML = "";
type();
}
}
function type() {
regex = /<([^<])*>/; //html markup to remove
typeText = typeText.replace(regex, "");
if(i < typeText.length) {
typingBuffer += typeText.charAt(i);
typeTextHolder.innerHTML = typingBuffer;
i++;
setTimeout("type()", interval);
}
}
</script>

on April 6th, 2006 at 5:04 am
http://www.justin-cook.com/wp/2006/03/31/dhtml-text-typing-effect/
instead of
"if(it
on April 6th, 2006 at 5:07 am
use "if(i" instead of "if(it"….
maybe think about converting code into HTML chars….
regards, zara