Full version: jsB@nk » Text » Writting » Typing Text Script
URL: https://www.javascriptbank.com/typing-text-script.html
A script that causes any text inside a particular tag to be 'typed out' in IE 4.x, one letter at a time. All other browsers will simply see the text fully displayed from the start. Note that any HTML tags will not be included in the typed output, to prevent them from causing problems. Tested in Firefox v1.0.7, Opera v8, Konqueror v3.2.1, and IE v6.
Full version: jsB@nk » Text » Writting » Typing Text Script
URL: https://www.javascriptbank.com/typing-text-script.html
<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-->
<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-->