Tony, your suggestion worked! But I also had to add a keyframe at the beginning of the animation, to make sure each element starts and ends at the same time and loop together in harmony.
Cheers!
Phil
<script>
setTimeout(function(){
window.location.reload(1);
}, 5000);
</script>
<script>
setTimeout(function(){
window.location.reload(1);
}, 5000);
</script>
How do you get it to stop after 3 loops?
Thanks
function reload() {
if (counter < 3) {
counter++;
window.location.reload(1);
} else {
clearInterval(intID);
}
}
var counter = 0;
var intID = setInterval(reload, 5000);
Do whatever you need to do WRT globals, etc.