title: Realtime changing images
body: <p>Well, I've just started a project and I'm already stuck, I real need a help.</p>
  
  <p>I have 16 (4x4) images and I'm presenting them in a page.</p>
  
  <pre><code>$max_images = $_GET['images'];
  $num_images = $max_images;
  while  (($num_images &gt; 0) &amp;&amp; ($num_images &lt;= $max_images))
  {
  echo '&lt;img class="nomarge" alt="" src="image' . $num_images . '.jpeg"/&gt;';
  $num_images--;
  }
  </code></pre>
  
  <p>They all have names like "image1.jpeg, image2.jpeg, ..." so this will work. Now, I want to change only one of the 16 images without a reload, and only if the image in the source is different from the one shown. </p>
  
  <p>Basically, I think I need to build something similar to the code presented in the stock markets (<a href="http://economico.sapo.pt/" rel="nofollow">http://economico.sapo.pt/</a> is an excellent example of what I'm trying to do, on the right down corner, it shows a stock variation that is always changing, and it is not always reloading all the page, not even all the results, only the ones that change)</p>
  
  <p>What is the best way to do that, and do you know any examples like these with images?</p>