title: jquery, images type
body: <p>I'd  like to change image type with jquery, for example:</p>
  
  <pre><code>&lt;img width="250" height="61" alt="Stack Overflow" src="http://sstatic.net/so/img/logo.png"/&gt;
  </code></pre>
  
  <p>to</p>
  
  <pre><code>&lt;a href="/"&gt;&lt;img width="250" height="61" alt="Stack Overflow" src="http://sstatic.net/so/img/logo.gif"/&gt;&lt;/a&gt;
  </code></pre>
  
  <p>To change ".png: in ".gif" (in this case)</p>
  
  <p>Thanks !</p>