Members I am new in Javacript, I want something like I have to write some lines of text on a webpage but i want the text to appear like its being typed. Like I am typing this messege now. It should appear as text on the page in some table or paragraph.
@Orc_ScorcherAug 01.2007 — #<script src="http://code.jquery.com/jquery-1.1.3.1.min.js"></script> <script> $(function ($) { var output = $("#output") var message = output.text() output.empty() var currentChar = 0 var interval = setInterval(function () { output.text(message.slice(0, ++currentChar)) if (currentChar == message.length) clearInterval(interval) }, 140) }) </script>
<div id="output">Members I am new in Javacript, I want something like I have to write some lines of text on a webpage but i want the text to appear like its being typed. Like I am typing this messege now. It should appear as text on the page in some table or paragraph.
Help Plz Aloha</div>Copy & paste the two script tags, put your message where you want it on your page in some containing element and give that element an [b]id="output"[/b] attribute. To adjust the typing speed, replace the 140 with some other number (smaller numbers mean faster typing).