Bonjour,
J'aimerai mettre un lien dans ce code (mon_texte). J'ai cherché partout mais n'ai rien trouvé. J'espère que vous pourez m'aider.
TextField.prototype.typewritter = function(txt, speed) {
this.i = 0;
this.txt = txt;
this.text = "";
this.write = function() {
this.text += this.txt.charAt(this.i);
this.i++;
if (this.i == this.txt.length) {
clearInterval(this.interval);
}
};
this.stop = function() {
clearInterval(this.interval);
};
this.stop();
this.interval = setInterval(this, "write", speed);
};
mon_texte
"Brochure de présentation 4 pages";vitesse 20;
affichage.typewritter(mon_texte, vitesse);