How to loop a simple JQuery function?
<p>I'm trying to do something very simple: continuously loop a background image. I'm doing this via the <a href="http://plugins.jquery.com/project/backgroundPosition-Effect" rel="nofollow">"Background Position Animations" plugin</a>.</p>

<p>My current code:</p>

<pre><code>$(function skyloop() {  
  $('#header').animate ({backgroundPosition:"(-250 0)"}, {duration:1000});  
});
</code></pre>

<p>I need a way to call the 'skyloop' function at the end of the animation, which would cause it to loop, but I can't seem to find the way to do that.</p>

<p><strong>[EDIT]</strong>
I've read all of the replies and I can't figure it out; nothing seems to work. It simply refuses to run again. The only thing I can think of is that the issues is caused by the plugin as I'm modifying a background image. I'll try to find another way to move a background image continuously (I'm trying to simulator a sky, by the way).</p>
