
Originally Posted by
green
I'm surprised you just get ignored here. DD didn't used to be like that. Ho hum.
Hey Green. Sorry to hear that you feel that. Unfortunately DD Is just a user forum that relies on members of the community to help out. The original writer of that particular script is no longer around.
What you're asking for is possible without any modifications to the script itself.
Please check out the following example page that should have the features you asked for -
HTML Code:
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="TypingText.js">
/****************************************************
* Typing Text script- By Twey @ Dynamic Drive Forums
* Visit Dynamic Drive for this script and more: http://www.dynamicdrive.com
* Please keep this notice intact
****************************************************/
</script>
</head>
<body>
<p id="example2">This text has a <b>slashing cursor</b> at the end. <br />And this is on a new line, thanks to the <br> tag.</p>
<input type="button" id="pause" value="pause">
<input type="button" id="resume" value="resume">
<br />
<input type="text" value="100" id="typingSpeed"><input type="button" id="changeSpeed" value="Change Speed">
<script type="text/javascript">
typer = new TypingText(document.getElementById("example2"), 100, function(i){ var ar = new Array("\\", "|", "/", "-"); return " " + ar[i.length % ar.length]; });
document.getElementById("pause").onclick = function() {
typer.running = true;
};
document.getElementById("resume").onclick = function() {
typer.running = false;
typer.run();
};
document.getElementById("changeSpeed").onclick = function() {
var speed = document.getElementById("typingSpeed").value;
typer.interval = speed;
};
typer.run();
</script>
</body>
</html>
Bookmarks