Hi,
I understand that the image changes. But when you call the image, it is know from which data it is to be generated, otherwise you cannot generate the image, right?
So at that moment you should be able to say, include a script which first generates the image, but only retains the image-map coordinates. Then the second part it calls itself with the same set of data, but with an extra variable, which makes the age switch to the generate image section:
include("showimage.php");
showimage.php:
if($page ="")
{
// produce image, return imageinfo
echo "<MAP NAME=\"mymap\">
<AREA SHAPE=\"rect\" COORDS=\"$mycords\" ALT=\"la\" HREF=\"lala\">
</MAP>
"
echo "<img src=\"showimage.php?data=$data&page=show\">";
}
else
{
//produce image, and spit out imagestream
}