The automatic scrolling effect of the page can be implemented by JavaScript, but today I accidentally discovered an html tag - <marquee></marquee> can achieve multiple scrolling effects without js control.
Using marquee markers can not only move text, but also pictures, tables, etc.
Syntax: <marquee>...</marquee>; Description: Add content to scroll between marks. Important attributes:1. Scroll direction direction (including 4 values: up, down, left and right)
Syntax: <marquee direction=scroll direction>...</marquee>
2. Scroll method behavior (scroll: loop scroll, default effect; slide: stop when scrolling only once; alternate: scrolling back and forth alternately)
Syntax: <marquee behavior=scrolling method>...</marquee>
3. Scroll speed scrollamount (Scroll speed is the length of movement when each scroll is set, in pixels)
Syntax: <marquee scrollamount=5>...</marquee>
4. Scroll delay scrolldelay (set the scrolling time interval, unit is milliseconds)
Syntax: <marquee scrolldelay=100>...</marquee>
5. Scroll loop loop (the default value is -1, and the scrolling will continue to loop)
Syntax: <marquee loop=2>...</marquee>
6. Scroll range width, height
7. Scroll background color bgcolor
8. Empty space hspace, vspace
JavaScript Code Copy content to clipboard