Home > Web Front-end > JS Tutorial > Use javascript to implement the rolling subtitle effect code that replaces marquee_javascript skills

Use javascript to implement the rolling subtitle effect code that replaces marquee_javascript skills

WBOY
Release: 2016-05-16 19:08:11
Original
1406 people have browsed it

Since the marquee tag is used less and less now, most scrolling effects are implemented using javascript
The reason why marquee is abandoned is because marquee is a thing that seriously affects the user experience. If you put dozens of Compressing rows of content to a few scroll lines does help you compress the layout space, but have you ever thought that users may have to wait on your scroll for half a day because they want to read one or two lines of content? Take the scrolling aggregated text on the right side of the advertising text "BlogBeta Digital Engine p4 3.0 server only costs 6,999 yuan/year" at the top of the classic forum page as an example. Do you think this is a good user experience? Are the W3C experts less thoughtful than a bunch of ignorant kids? It’s a joke
The first method: use javascript to simulate marquee’s approach.
Source: NetEase Games


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template