»
AnglaisFran�aisVietnamien

Imprimer - Saisie de texte Script - JavaScriptBank.com

Version compl�te: jsB@nk » Texte » Rédaction » Saisie de texte Script
URL: https://www.javascriptbank.com/typing-text-script.html

Saisie de texte Script © JavaScriptBank.comUn script qui provoque un texte dans une balise d'être "dactylographié" dans Internet Explorer 4.x, une lettre à la fois. Tous les autres navigateurs, tout simplement voir tout le texte affiché dès le départ. Notez que tous les balises HTML ne seront pas inclus dans le tapé la production, pour les empêcher de causer des problèmes. Testé dans Firefox v1.0.7, v8 Opera, Konqueror v3.2.1, et IE v6.

Version compl�te: jsB@nk » Texte » Rédaction » Saisie de texte Script
URL: https://www.javascriptbank.com/typing-text-script.html



JavaScript
<script type="text/javascript">/***************************************************** Typing Text script- Dy Trey @ Dynamic Drive Forums* Visit Dynamic Drive for this script and more: http://www.dynamicdrive.com* This notice MUST stay intact for legal use****************************************************/interval = 10; // Interval in milliseconds to wait between charactersif(document.getElementById) {  t = document.getElementById("typing");  if(t.innerHTML) {    typingBuffer = ""; // buffer prevents some browsers stripping spaces    it = 0;    mytext = t.innerHTML;    t.innerHTML = "";    typeit();  }}function typeit() {  mytext = mytext.replace(/<([^<])*>/, "");     // Strip HTML from text  if(it < mytext.length) {    typingBuffer += mytext.charAt(it);    t.innerHTML = typingBuffer;    it++;    setTimeout("typeit()", interval);  }}</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<span id="typing">Pluto is the ninth planet in the solar system. Discovered in 1930 and immediately classified as a planet, its status is currently under dispute. Pluto has an eccentric orbit that is highly inclined in respect to the other planets and takes it inside the orbit of Neptune. Its largest moon is Charon, discovered in 1978; two smaller moons were discovered in 2005.</span><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->