Code for replacing marquee with JavaScript

Source: Internet
Author: User

As the number of Marquee labels is getting fewer and fewer, most of the scrolling effects are implemented using JavaScript.
Marquee is abandoned because marquee is a theme that seriously affects user experience. compressing dozens of lines of content to several rows of scrolling helps you compress the typographical space, but have you ever thought that users may have to wait for half a day on your scroll because they want to read one or two lines of content? Take the aggregation text scroll on the right of the advertisement text on the top of the "blogbeta Digital Engine P4 3.0 server for 6999 RMB/year" on the classic forum page as an example. Do you think this is a good user experience? Are W3C experts not as considerate as a group of ignorant little p-kids? It's a joke.
Method 1: use JavaScript to simulate marquee.
Source: Netease games <textarea id="runcode95977"></textarea> Xmlns = "http://www.w3.org/1999/xhtml">


Rolling news

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: info-contact@alibabacloud.com 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.