Well, I've just started a project and I'm already stuck, I real need a help.
I have 16 (4x4) images and I'm presenting them in a page.
$max_images = $_GET['images'];
$num_images = $max_images;
while (($num_images > 0) && ($num_images <= $max_images))
{
echo '<img class="nomarge" alt="" src="image' . $num_images . '.jpeg"/>';
$num_images--;
}
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.
Basically, I think I need to build something similar to the code presented in the stock markets (http://economico.sapo.pt/ 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)
What is the best way to do that, and do you know any examples like these with images?