Post Reply 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Shelters fom the Storm
01-12-2021, 12:28 AM
Post: #1
Shelters fom the Storm

This demonstrates typewriter text and a moving background.

This how to create and position the typewriter text.

var i = 0;
var txt = 'some text to use.';
var speed = 50;

function marquee() {
if (i < txt.length) {
document.getElementById("show").innerHTML += txt.charAt(i);
setTimeout(marquee, speed);<!---->set speed to value. higher value slower text-->


#show{<!------>This id matches the id in the script. It positions and styles the text
text-align:justify; <------>set text alignment for proper typewriter effect


<div id=show></div> <!---->this div displays the text

The moving background was created using a trick. I'll leave the method up to the detectives to sleuths here, You'll laugh when you see how simple it is.

Visit this user's website Find all posts by this user
Quote this message in a reply
01-18-2021, 06:26 PM
Post: #2
RE: Shelters fom the Storm
Very nice work Professor.

Find all posts by this user
Quote this message in a reply
Post Reply 

Forum Jump:

User(s) browsing this thread: 1 Guest(s)