Here are some samples, just to get you started.
First of all, download
If you prefer not to download the file, you can copy/paste the contents into a file (see bottom of this article).
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.
Left to Right
This text scrolls from left to right.
This text scrolls from right to left, but much faster than the previous examples.
This text scrolls upwards. The height of the marquee has changed too - from
This text scrolls downwards.
Below are the full contents of
xbMarquee.js. You will need this for the above marquee examples to work.