FREE HTML CODE
Search HTML Code

JavaScript Scroll

Instructions


First of all, copy/paste the following code into a file called xbMarquee.js


Once you've done that, you can use any of the following codes to display your JavaScript scroller. These codes simply provide the parameters for the xbMarquee.js file. These parameters determine things such as the scroll direction, the text to scroll, the speed of the marquee etc. You only need to reference xbMarquee.js once on any page that uses the code (regardless of how many marquees are on that page).


Right to Left


This marquee scrolls from right to left.

Example:



JavaScript scrolling text


Code:





Left to Right

This text scrolls from left to right.
Example:

JavaScript scrolling text

Code:


Faster

This text scrolls from right to left, but much faster than the previous examples.
Example:

JavaScript scrolling text

Code:



Scrolling Up

This text scrolls upwards. The height of the marquee has changed too - from 19px to 100px.
Example:

JavaScript scrolling text

Code:


Scrolling Down

This text scrolls downwards.
Example:

JavaScript scrolling text
| More