HTML Tag marquee achieves rolling effect, tag marquee

Source: Internet
Author: User

HTML Tag marquee achieves rolling effect, tag marquee

The automatic Page scrolling effect can be achieved by javascript, but today we accidentally discovered an html Tag-<marquee> </marquee> to achieve multiple scrolling effects without js control.

You can use the marquee mark to move text, images, tables, and so on.

Syntax: <marquee>... </marquee>; Description: add the content to be rolled between tags.


Important attributes:

1. Scroll direction ction (including four values: up, down, left, and right)

Syntax: <marquee direction = "rolling direction">... </marquee>

2. scroll mode behavior (scroll: cyclic scroll, default effect; slide: Stop only once; alternate: scroll back and forth)

Syntax: <marquee behavior = "rolling mode">... </marquee>

3. scrollamount)

Syntax: <marquee scrollamount = "5">... </marquee>

4. scrolldelay (set the interval of scrolling in milliseconds)

Syntax: <marquee scrolldelay = "100">... </marquee>

5. Rolling loop (the default value is-1, and the scrolling continues)

Syntax: <marquee loop = "2">... </marquee>

6. Scroll range: width and height

7. Scroll background color bgcolor

8. Blank Space (for example, the number of empty spaces)


<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" ""> 



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.