Loop timer in JavaScript

前端 未结 6 907

I need to execute a piece of JavaScript code say, each 2000 milliseconds.

setTimeout(\'moveItem()\',2000)

The above will execute a function

6条回答
  •  情深已故
    2020-11-28 21:46

    Here the Automatic loop function with html code. I hope this may be useful for someone.

    
    
    
    
    
    
    
    

    Fiddle: DEMO

提交回复
热议问题