If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Mouseover changing images in an image map

I have a large picture with many little boxes in it. As the user moves the mouse over a box, I would like to change the image of what is in the box. Currently I have only found how to change the entire image. I could make it work by making tons of pictures each of which has a different box with the color changed and then match them with the correct map hot stops, but I want to know if there is a better solution; a way of simply overlaying a smaller image at a certain hot spot when the mouse is placed over it. Is this possible?

Here is the section of my current code (it changes the entire image when the mouse if moved over a single hot spot) :

There's likely a better way than this but it should work.
after making this I realized there's probably a way to just pass which block you moused over to the function and let it extract the information from it rather than passing all the information over again.