Help! newbie with looping issue

Help! newbie with looping issue

Hi

I'm just getting into jQuery and am in need of some assistance

I've got an asp page which gets a random record from a database each time you load the page

I'd like to use jQuery to pull this page into a <div> fade it in, pause, fade it out and then run the whole thing again without refreshing the page.

so far I've got

$.ajax({
  url: "random.asp",
  cache: false,
  success: function(asp){
    $("#content").append(asp);
   $("#content").hide();
   $("#content").fadeIn(3000);
   $("#content").animate({opacity: 1.0}, 3000)
   $("#content").fadeOut(3000);
   $("#content").animate({opacity: 0.0}, 3000)
  }
});


which works great but I'm stuck on how to loop it. It just needs to loop over and over again infinitely.

Any help would be much appreciated.

Cheers
Ben