Javascript code to implement ultra-streamlined link list scrolling in a fixed area _ javascript skills

Source: Internet
Author: User
This article mainly introduces code for JS to implement ultra-simplified link list scrolling in a fixed area. it is very common to implement page element attribute conversion control to implement scrolling effect, which is simple and practical, for more information, see the examples in this article. the code for JS to implement the ultra-simplified link list scrolling in a fixed area is described. We will share this with you for your reference. The details are as follows:

This ultra lite version of the link list text scrolling code can be scrolled in the specified area, of course, the area size can be set by yourself.

The running effect is as follows:

The online demo address is as follows:

Http://demo.jb51.net/js/2015/js-link-list-scroll-style-codes/

The code is as follows:

Text link list scrolling
 

Colorful computer chassis icons, many colors and styles ...... Website construction scheme of the local tax bureau ...... Get the system memory and use a pie chart to show the percentage ...... Colorful computer chassis icons, many colors and styles ...... Fully compatible with IE, FF, Opera, and others that have not been tested ...... Website construction scheme of the local tax bureau ...... Colorful computer chassis icons, many colors and styles ...... Website construction scheme of the local tax bureau ...... Fully compatible with IE, FF, Opera, and others that have not been tested ...... Get the system memory and use a pie chart to show the percentage ...... Fully compatible with IE, FF, Opera, and others that have not been tested ...... Get the system memory and use a pie chart to show the percentage ......

Script var speed = 40var demo = document. getElementById ("demo"); var demo2 = document. getElementById ("demo2"); var demo1 = document. getElementById ("demo1"); demo2.innerHTML = demo1.innerHTMLfunction Marquee () {if (demo2.offsetTop-demo. scrollTop <= 0) demo. scrollTop-= demo1.offsetHeight else {demo. scrollTop ++} var MyMar = setInterval (Marquee, speed) demo. onmouseover = function () {clearInterval (MyMar)} demo. onmouseout = function () {MyMar = setInterval (Marquee, speed)} script

I hope this article will help you design JavaScript programs.

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.