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.