Solved

Faster text scroll

Posted on 2007-11-19
1
247 Views
Last Modified: 2010-04-06
I have text that scrolls on this page, www.nuacs.com. It starts too slow. How can I start it faster.
0
Comment
Question by:stevek65
1 Comment
 
LVL 2

Accepted Solution

by:
eulac earned 250 total points
ID: 20313170
try using this javascript, instead of marquee.. you can set the scroll delay here.


<html>
 <head>
  <title>scrolling text with JavaScript and forms</title>
  <script>

message = "This is a scrolling marquee message.";
initial_delay = 0;
scroll_delay = 75;
max_indent = 50;

function scroll ()
{
    message =   message . substring (1, message . length)
              + message . substring (0, 1);
    document . scrollbox_form . scrollbox . value = message;
    window . setTimeout ("scroll ()", scroll_delay);
}

function start_scroll ()
{
    for (var i = 1; i <= max_indent; i ++)
        message = " " + message;
    scrollbox = document . scrollbox_form . scrollbox;
    window . setTimeout ("scroll ()", initial_delay);
}

  </script>
 </head>
 <body onLoad="start_scroll ();">
  This text appears above the marquee.
  <form name=scrollbox_form>
   <input type=text name=scrollbox size=25>
  </form>
  This text appears below the marquee.
 </body>
</html>
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now