Nieuw lid |
|
Deze komt van Leejoo en stond op n andere site, is groter als de rest, dus misschien ook wat effectiever:
<script language="JavaScript">
// Verander hier de tijd dat er refreshed moet worden ( in seconden )
var refreshinterval=60
// Wil je de refresh in je statusbalk zichtbaar ? ( yes of no )
var displaycountdown="no"
var starttime
var nowtime
var reloadseconds=0
var secondssinceloaded=0
function starttime() {
starttime=new Date()
starttime=starttime.getTime()
countdown()
}
function countdown() {
nowtime= new Date()
nowtime=nowtime.getTime()
secondssinceloaded=(nowtime-starttime)/1000
reloadseconds=Math.round(refreshinterval-secondssinceloaded)
if (refreshinterval>=secondssinceloaded) {
var timer=setTimeout("countdown()",1000)
if (displaycountdown=="yes") {
window.status="Page refreshing in "+reloadseconds+ " seconds"
}
}
else {
clearTimeout(timer)
window.location.reload(true)
}
}
window.onload=starttime
</script>
<script language="JavaScript"> // Verander hier de tijd dat er refreshed moet worden ( in seconden ) var refreshinterval=60 // Wil je de refresh in je statusbalk zichtbaar ? ( yes of no ) var displaycountdown="no" var starttime var nowtime var reloadseconds=0 var secondssinceloaded=0 function starttime() { starttime=starttime.getTime() countdown() } function countdown() { nowtime=nowtime.getTime() secondssinceloaded=(nowtime-starttime)/1000 reloadseconds =Math .round(refreshinterval -secondssinceloaded ) if (refreshinterval>=secondssinceloaded) { var timer=setTimeout("countdown()",1000) if (displaycountdown=="yes") { window.status="Page refreshing in "+reloadseconds+ " seconds" } } else { clearTimeout(timer) window.location.reload(true) } } window.onload=starttime </script>
|