1. Other functions
obj = setinterval (' function name ', number of milliseconds); Clearinterval (obj); ---> This is equivalent to a timer;
obj = SetTimeout (' function name ', number of milliseconds); Cleartimeout (obj);
2. Scroll bar
! doctype html>Run results
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/89/46/wKioL1gOkMPBSRncAAAI1AfveRs827.png-wh_500x0-wm_3 -wmp_4-s_1529369556.png "title=" Qq20161024203244.png "alt=" Wkiol1gokmpbsrncaaai1afvers827.png-wh_50 "/>
3. Happy Lantern
<! doctype html>Run results
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/89/46/wKioL1gOkPmyq_weAAA_nQFY1mg411.png-wh_500x0-wm_3 -wmp_4-s_4063314371.png "title=" Qq20161024205627.png "alt=" Wkiol1gokpmyq_weaaa_nqfy1mg411.png-wh_50 "/>
4. Summary
(1), num = setinterval (' event function ', MS), this function (setinterval) is a timer, which executes the function once every few hours;
Clearinterval (NUM) is the terminating execution timer function;
(2), num = setTimeout (' event function ', milliseconds), this function executes only once and is not executed;
Cleartimeout (num), terminating the timer execution;
This article is from the "11586096" blog, please be sure to keep this source http://11596096.blog.51cto.com/11586096/1865255
Scroll bars and marquee lights