Website with a map and regions.

groths06

New Member
I have a website where I created a map of the United States and I have regions on this map where the user can click. I used Fireworks to trace out the regions with the polygon hot spot tool. And now I want to make each region when you hover over them visible in a different color. Is there any way to do this with css and javascript?
 

chrishirst

Well-Known Member
Staff member
Is there any way to do this with css and javascript?

Yes,


Cut out the sections you want to change colour, set the area outside the coloured area to transparent, overlay the complete image then set the relavent section to change to a higher z-index on :hover (or onMouseOver).
 
Top