HTML Scrolling Image
This page contains examples of scrolling images that were created using the
<marquee> tag. For a standards-compliant version, see CSS Scrolling Image instead.
The HTML method of creating a scrolling image is to place an
<img> element inside a
<marquee> element. Although the
<marquee> element is not part of the official HTML specification, it is widely supported by most major browsers.
Right to Left
To make your image scroll left (i.e. from right to left), use
direction="left". Here's an example:
Left to Right
To make your image scroll right (i.e. from left to right), use
To make your image scroll up (i.e. from bottom to top), use
To make your image scroll down (i.e. from top to bottom), use
direction="down". Like this:
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:
More Marquee Codes
You can do much more with HTML marquees than is covered on this page. Here's the full list of marquee codes on this website:
Also check out the Marquee Generator.
Try to be careful when using HTML marquees. Many web users dislike websites that contain scrolling or bouncing images and other elements, so try to use them tastefully :)