Scrolling Text
Right to Left
To make your text scroll left (i.e. from right to left), use
behavior="scroll"
and direction="left"
. Like this:Source Code | Result |
---|---|
Left to Right
To make your text scroll right (i.e. from left to right), use
behavior="scroll"
and direction="right"
. Like this:Source Code | Result |
---|---|
Scroll Up
To make your text scroll up (i.e. from bottom to top), use
behavior="scroll"
and direction="up"
. Like this:Source Code | Result |
---|---|
Scroll Down
To make your text scroll down (i.e. from top to bottom), use
behavior="scroll"
and direction="down"
. Like this:Source Code | Result |
---|---|
Speed
You can change the scrolling speed of your marquee. For example,
scrollamount="1"
sets the marquee to a very slow scroll, while scrollamount="20"
will make it faster. You can use whatever number you like though. Like this:Source Code | Result |
---|---|
Usability of Marquees
You should be careful when using marquees in HTML. Many web users dislike websites that contain scrolling text and other elements, so try to use them tastefully :)
Also note that the
<marquee>
tag is not part of the official HTML specification. Having said that, it is recognized by most major browsers.
No comments:
Post a Comment