title: showing a preloading gif until the image is fully loaded?
body: <p>I have this html: <code>&lt;img src="myimage.jpg" id="idimg"&gt;</code></p>
  
  <p>Is there a way with javascript to change that src to my <code>ajax.gif</code> until the image is fully loaded?</p>
  
  <p>Please note i have already watched here: <a href="https://stackoverflow.com/questions/2499022/how-to-display-a-wait-gif-until-image-is-fully-loaded">How to display a wait gif until image is fully loaded</a></p>
  
  <p>but i don't want that because I want my initial html to be as I wrote there (with the src of the original image) and not with a fake div container</p>
  
  <p>thx</p>