ok
1) an html image map does not change its color, it assignes a portion of the image as a link
you can use the gd [man]image[/man] libararies from php to alter an image to perhaps do what you want..
you would make php return binary data instead of html, and could activate it like this
<img src="script_that_makes_image.php?image=Dark_storm.php&highlight=yes" />
2) php and javascript do not 'talk', php can write html, and javascript lives in html, to php can write javascript also, if you have an array in php you can write out each item of the array that is valid javascript, then when the page is sent.. so in a sense php has talked to javascript...
javascript can manipulate form values before being sent, one they are sent php will read them, so then in a sense javascript has talked to php...
but neither of them talk directly during execution of a script...