hello forumotion team
how can i have auto refresh in my home pege?
for example for each 20 sec
how can i have auto refresh in my home pege?
for example for each 20 sec
This is a Hitskin.com skin preview
Install the skin • Return to the skin page
jQuery().ready(function($){
refresh_interval = 20000; // 20 sec
setTimeout(function(){
window.location.reload();
console.log("refresh time is" + refresh_interval)
}, refresh_interval);
});
i mean i want auto refresh in my forum but when im not using forum and when im not in chat box or write topicsInFeRn0 wrote:I do not understand what you mean.
You want a class / id to Forum Refresh?
$(function() {
var idletime=0;
setInterval(function() {
idletime += 1;
if (idletime > 20) {
window.location.reload();
}
}, 1000);
$(this).on('mousemove', function(e) {
idletime=0;
});
$(this).on('keypress', function(e) {
idletime=0;
});
});
if (idletime > 20)