In response to this question about jQuery effects, I thought about using the callback
argument to .fadeIn( 500, my_function )
.
While in principle, this is a viable idea, I have no clue (and neither has the jQuery documentation :( ) if the callback is allowed to recurse:
function keep_animating(){
$("#id").fadeIn(500).fadeOut(500, keep_animating );
}