The scrolling text examples on this page have all been created using the
marquee tag. The purpose of this page is to provide more scrolling text examples than that are on the other marquee related pages. Whereas some of those use scrolling images etc, this page concentrates solely on scrolling text.
I placed this example at the top for a reason. The text slides in, then stays there. Being near the top of the page, there is a better chance of the sliding text being seen. If I'd placed it further down the page, it's more likely to be missed (due to the user not seeing it until they scroll down - in which case the text would probably have finished sliding in!).
Therefore, if you don't see the text sliding in here, refresh the page - the text probably slid in before you noticed it. Otherwise, your browser may have an issue in displaying the scrolling text/marquee.
This example sets the text to slide in, and then stay there. It doesn't loop continuously. It simply slides in, then stops. This is acheived by using
Many websites tend to use continuous scrolling. That is, the text scrolls continuously - each time it reaches the end, it starts all over again.
This HTML marquee is scrolling from right to left. Although this tends to be the default, you can specify
direction="left" in the HTML code.
Here, the HTML marquee scrolls left to right because we add
direction="right" to the code.
Here, the text scrolls upward. This is acheived by using both
Here, the text scrolls downward. This is acheived by using both
Here, the scroller makes the text nudge itself across the screen. This is done by adding
Here, the scroller makes the text jump across the screen. Same as the above example, but this time we add
scrollamount="10" to speed the text up.
Here, the text bounces back and forth. We do this by using
behavior="alternate" (as opposed to
Let's speed the scroller up using the
As seen above, you can speed up or slow down your scrolling text by using the
scrollamount attribute along with a numeric value. Here, we use several values to set different marquees speed.
Life in the fast lane...
In this example, we nest one
marquee inside of another. The outside marquee scrolls the text to the right. The inside marquee scrolls it upward.
You can use scrolling text for some great effects. Check out this falling text (based on code generated with the Falling Text Generator by Quackit).
<marquee> tag accepts a number of attributes (some of which are included in the above examples). Feel free to experiment with these settings to see the effect they have on your scrolling text. The full list of attributes are:
|Sets the width of the marquee||How far to jump as it moves|
|Sets the height of the marquee||How many times it should loop|
|Sets the direction of the marquee||Sets the background color of the marquee|
|Whether to slide, bounce, or scroll||Sets the amount of horizontal space around the marquee|
|How long the marquee should wait before each jump||Sets the amount of vertical space around the marquee|