I use the Plugin “Post Snippet” to hold the Code and paste the Shortcode on the Page.
This is the Code:
<script type="text/javascript">
function ReplaceImage(filename)
{
document.getElementById("imagemap").src = filename;
}
function ReplaceImageBack()
{
document.getElementById("imagemap").src = 'https://cremoninsel.de/wp-content/uploads/2015/06/lageplan.png';
}
</script>
I use this in the image map:
<area shape="rect" coords="100,152,135,182" href="https://cremoninsel.de/mietpreise/haus-7/#m" onmouseover="ReplaceImage('https://cremoninsel.de/wp-content/uploads/2015/06/lageplan7.png')" onmouseout="ReplaceImageBack()">