Let the web page automatic scroll screen automatic scroll screen is divided into the scrolling subtitles in the page and the entire web page automatically scroll. The scrolling subtitles in the page can be used in the page "announcement" or "latest news" and other information release, and the entire web page automatically scrolls Suitable for users to browse a network of ten-pages, eliminating the trouble of manual flipping. The implementation method of these two technologies is described below:
First, a piece of text is scrolling in the page
This method is cleverly utilizes the title element of the HTML language
The marker grammatical format is as follows:
Locate = 0;
Function AutoScroll ()
{IF (locate! = 400)
{locate ; scroll (0, locate);
Cleartimeout (Timer);
Var Timer = setTimeout ("AutoScroll ()", 3); Timer;}
}
->
script>
Change your HTML file
section as follows:
Explanation: The length of the display page can be controlled by changing the value of Locate (the original code is Locate! = 400). "3" "3" "" "" "" "" "", "" "" "" "" "" "" "" "" "" "" "" ""
There are many other methods that implement web content, such as "Layer" combined with JavaScript and other technologies, you can make the scroll more flexible, smoothed, readers can test themselves, and may also find more convenient and effective methods.