Javascript / jQuery or something to change text every some seconds

后端 未结 4 2131
执笔经年
执笔经年 2020-12-13 10:52

Need JavaScript or jQuery something to change text every some seconds... with user doing anything.

Example:

\"Welcome\" changes to \"Salmat datang\" change

4条回答
  •  伪装坚强ぢ
    2020-12-13 11:18

    You may take a look at the setInterval method. For example:

    window.setInterval(function() {
        // this will execute on every 5 seconds
    }, 5000);
    

提交回复
热议问题