There are two main parts, one is the scrolling content part; the other is the JS scrolling code part, which only has two sentences.
1. Traditional rolling code
Traditional scrolling code application effect It is relatively simple, and there are often browser compatibility issues. For example, on FIREFOX, the special effects of marquee will be invalid.
2. Scroll effect implemented by Javascript If you need to introduce external Js, you need to refresh to execute
]
The above is the complete JS scrolling Code, if you want to achieve vertical scrolling, you only need to make simple modifications, that is, use the pixTop attribute of style. Excerpted from Tianyuan Blog