[jQuery] How to check if an element is done loading

[jQuery] How to check if an element is done loading


I'm looking for suggestions on how I can implement the following using
jQuery 1.3 and whatever plugins may help.
I need to insert an iframe or img that links to an external resource
onto a page, and if that iframe or img does not load within a certain
period of time, remove it and insert one that links to a local
resource instead.
My only hang-up is I'm not sure how to check if the iframe or img is
done loading.
Any help would be greatly appreciated.
-Jeff