Solved

Faster text scroll

Posted on 2007-11-19
1
264 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
It's sometimes a bit tricky to use date functions in Oracle BPEL. I'll explain quickly how you can add N days to the current date. In a BPEL process this can be useful, and you can adapt it to fit your needs. First of all, let's see how to add 1 …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

813 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