the delay() function

the delay() function

Hello,

This function allow to stop animation of selected object but only animation, not manipulation.

ex :
  1. $('#my_id').fadeOut().delay(500).fadeIn();
No problem :), but
  1. $('#my_id').fadeOut().delay(500).text('hello').fadeIn();
function text() is immediately called.

Is there a function as delay() wich really "stop" code for a while ?

Thanks, and excuse my english I'm french.