A Simple Loop

A Simple Loop

Hello,

A friend made this code for me:

$(document).ready(function(){
   $("body")
   //.animate({ queue: false, duration: 7000 })
   .animate({ backgroundColor: "orange" }, 1000)
   .animate({ backgroundColor: "yellow" }, 1000)
   .animate({ backgroundColor: "green" }, 1000)
   .animate({ backgroundColor: "blue" }, 1000)
   .animate({ backgroundColor: "indigo" }, 1000)
   .animate({ backgroundColor: "violet" }, 1000)
   .animate({ backgroundColor: "red" }, 1000);
});


And, well ... I'd like to loop it. I don't know jQuery, I've tried some stuff I know in AS, like calling the function again, tried the "each" thing, the "setInterval" thing ... can't quite get it.

If I'm out of my league (eg. If this is not a beginner-type question), please let me know. If not ... help is appreciated!

Thanks a bunch,
Mark.

PS: This code controls this guy: http://plugins.jquery.com/project/color
PPS: It's going here, non-looped: http://www.mark-stuckert-blog.com/