jquery image gallery showing loader gif
<p>I am developing jquery image gallery plugin.
I checked loading of the image like this:</p>

<pre><code>$("#loading").show();
        $('.preview').load(function () {
            $("#loading").hide();
        });
</code></pre>

<p>But I didnt success.
I want to show loading gif when  my image is loaded.How can I do this? For ex:
<a href="http://blueimp.github.com/Bootstrap-Image-Gallery/" rel="nofollow">http://blueimp.github.com/Bootstrap-Image-Gallery/</a></p>
