Pausing up-down Scroller
Note (Dec 21 16'): Script completely rewritten for various improvements.
Step 1: Insert the below code in the <head> section of your page:
The code references two external files, which you should by default upload to the same directory as where the scroller page resides:
Step 2: Then, inside the BODY section of your page, to display a scroller, simply use the below example code:
The code of Step 2 illustrates how to display a pausing scroller on your page. First, define an empty DIV where you wish the scroller to be housed:
<div id="pscroller1" class="pausescroller"> </div>
The CSS class should always be set to
following this DIV, initialize the scroller by calling the
pausescroller() constructor function:
The function should be passed the following parameters:
CSS_ID: The ID of the DIV that will show this scroller instance.
pause_in_ms: The pause between message changes, in milliseconds.
slideeffect_in_ms: The duration of the slide up effect, in milliseconds.
new pausescroller(), assign it to an arbitrary but
unique variable to access its methods later, in the above case, variable "
Pausing Scroller methods
||Pauses the scroller.|
||Resumes playing the scroller.|