How to load images loading.gif before load iframe in jquery?
<p>I have a Jquery code:</p>

<pre><code>&lt;script type='text/javascript'&gt;
jQuery(function ($) {
    $('.basic').click(function (e) {
        var loading = '&lt;img src="loading.gif"/&gt;';
            $('&lt;div&gt;&lt;/div&gt;').load(loading);
        var src = 'test.php';
            var html = '&lt;iframe src="'+src+'&amp;output=embed" style="border:0"&gt;&lt;/iframe&gt;';
            $.modal(html);
            return false;
    });
});
&lt;/script&gt;
</code></pre>

<p>How to load a image loading.gif before load a iframe ?</p>
