I'm running an infinite loop of a color changing background on my website using the jQuery timers plugin (plugins.jquery.com/project/timers):
jQuery(document).ready(function($) {
$('body').everyTime(1,function() {
$(this).animate({ backgroundColor: "#000000" }, 20000).animate({ backgroundColor: "#ffffff" }, 20000);
});
});
Now, if you're in "home", and you click a link, it takes you to the appropriate page and it restarts the animation. The thing is, I'd like the animation not to restart and to be continuous throughout the whole site.
Is there any way to do it?
Can you run a script that doesn't stop and restart every time you go to a differente page, as long as you stay in the same domain?