sqwerl wrote:
I need to detect when one of these loads like the load event of
<image /> like $("#imageId").load(function(){ });
I have a background div with a spinner gif that shows until the image
loads. The image button is mostly transparent except it shows a small
image placeholder and some alt text until the image loads.
This would all be fine except I have some transparent pngs and I need
to know when the image button image finishes loading so I can remove
the background.
Found this...
http://jqueryfordesigners.com/image-loading/
Even better. I have some code to rewrite now.
--
Alan Gutierrez
http://twitter.com/bigeasy