flash-typewriter effect
flash-typewriter effect
Out of context: Reply #12
- Started
- Last post
- 12 Responses
- krust0
sorted
stop();
function doVidiprinterEffect(textfield, strtext, speed) {
if (strtext == undefined) {
strtext = textfield.htmlText;
textfield.htmlText = "";
}
string_index = 0;
clearInterval(typeI);
typeI = setInterval(typeF, 1000/speed, textfield, strtext);
}
function typeF(tf, s) {
tf.text += s.charAt(string_index);
string_index++;
if (string_index == s.length) {
clearInterval(typeI);
}
}
doVidiprinterEffect(this.display...