'... kører over et bestemt sted på kortet ...' :
Det pejer i retning af image-map, tror jeg.
Måske er denne arbejds model brugbar som inspiration:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<title>780937</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<script type="text/javascript">
function showInfo(idx){
var dst = document.getElementById('infoDisp');
dst.replaceChild(document.createTextNode("Info "+idx), dst.firstChild);
dst.style.display='block';
}
function hideInfo(){
document.getElementById('infoDisp').style.display='none';
}
function editInfo(idx){
alert('edit'+idx)
}
var hh,ww,trkImg;
window.onload = function(){
var areas = document.getElementsByTagName('area');
for (var ii=0, nn=areas.length; ii<nn; ii++) {
var showII=new Function('','showInfo('+ii+')');
areas[ii].onmouseover=showII;
areas[ii].onfocus=showII;
areas[ii].onmouseout=hideInfo;
areas[ii].onblur=hideInfo;
areas[ii].onclick=new Function('','editInfo('+ii+')');
}
}
</script>
<style type='text/css'>
#mainImg {
position: absolute; top: 0px; left: 0px; z-index: 0
}
#infoDisp{
position:absolute; display:none; color:#FFFFFF; background-color:#000000; z-index:2
}
#dbgDisp{
position:absolute; top:680px; left:400px; z-index:3
}
</style>
</head>
<body>
<div><map name="FPMap0">
<area shape="circle" coords="160, 367, 35" href='#' alt='Klik = Edit'>
<area shape="circle" coords="360, 367, 35" href='#' alt='Klik = Edit'>
</map><img id='mainImg' border="0" src="
http://www.google.com/logos/Logo_50wht.gif" width="1024" height="680" usemap="#FPMap0" alt='Klik = Edit'></div>
<div id='infoDisp'>info</div>
<div id='dbgDisp'>debug</div>
</body>
</html>