Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use JavaScript to realize scrolling display

Shulou Source: shulou.com Published: 2022-06-02 18:23:36 11月14日 Update

This article mainly shows you "how to use JavaScript to achieve scrolling display", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to use JavaScript to achieve scrolling display" this article.

The original code is as follows:

< html >

< head >

< script language= "Javascript" >

Locate=0

Function my_scroller ()

{

If (locate! = 400)

{

Locate++;// value increased

Scroll (0Jing Zhe)

ClearTimeout (timer)

Var timer = setTimeout ("my_scroller ()", 2); / / controls the scrolling time

Timer

}

}

-- >

< / script >

< / head >

< body OnLoad= "my_scroller ()" >

Introduction to the author: < br > < br >

< br > < br > Guangzhou < br > < br >

< br > < br > Guangzhou < br > < br >

< br > < br >

Contact address: < br > < br >

Guangzhou < br > < br > Xiaoxin < br > < br > www.yisu.com

< / body >

< / html >

The above is all the contents of the article "how to use JavaScript to achieve scrolling display". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Content article Guangzhou learning help code author address time easy to understand more organization knowledge introduction tape contact address industry information channel error Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft macOS Huawei Redmi Shulou Technology