i download jquery lazyload plugin from this site http://www.appelsiini.net/projects/lazyload .
from my document, I did not find that you can use any callback or not with the lazyload plugin.
suppose my html looks like
<div id="gallery" class="busy"><img src="blah.jpg" /></div> <div id="gallery" class="busy"><img src="blah2.jpg" /></div> <div id="gallery" class="busy"><img src="blah3.jpg" /></div>
my script how
$("#gallery img").lazyload();
A busy class simply sets the loaded image in the center of the div. so I need a callback and from the callback I need to determine if the image loading is completed or not, if it is finished, then I just remove the class from the corresponding parent div of the image tag.
so please show me a way to implement a callback with lazyload, and also need a code sample with which I can remove the class from the corresponding parent div of the image tag.
thanks
source share