Possible Duplicate:
How to show a spinner while loading an image via JavaScript
I have an img, next btn and previous btn
Next button loads next image as
crntSrc=$("img").attr('src');
nextSrc=(crntSrc+1);
$("img").attr('src',nextSrc);
but I want to show process.gif image until nextSrc completely loads.