How to use JavaScript to realize scrolling display
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!