jQuery UI has some excellent samples available
You can choose to freeze the background by setting 'modal' to 'true':
$( ".selector" ).dialog({ modal: true });
jQuery will not pause any setInterval()
, but you can hook up to events, so you will probably be able to stop them from executing code yourself.
Check out this working fiddle that does just that...