title: Show loading image while image loads via jQuery
body: <p>I've got this javascript </p>
  
  <pre><code>$(function() {
      $('button').click(function() {         
          $('#imgText').html('&amp;lt;img src="imagecreator.php?param=' + $('input[name=username1]').val() + '"&amp;param="'+ $('input[name=username2]').val() + '" /&amp;gt;');
      });
  });​
  </code></pre>
  
  <p>It loads a GD image from an external source, and returns it.
  It can be slow, and I can't figure out how to show a loading gif while it loads the external image.</p>
  
  <p>Any input?</p>