TEST
<html><head><meta http-equiv="content-type" content="text/html; charset=ANSI" /><title>Google Maps Multiple Markers</title><script src="" type="text/javascript" data-mce-src="http://maps.google.com/maps/api/js?sensor=false"></script></head><body> <div id="map" style="width: 1500px; height: 1000px;"></div> <script type="text/javascript"> var locations = [ ['Goettingen', 51.54128040000001, 9.915803500000038, 'http://www.google.de'], ['Kassel', 51.31271139999999, 9.479746100000057,0, 'http://www.stackoverflow.com'], ['Witzenhausen', 51.33996819999999, 9.855564299999969,0, 'www.http://developer.mozilla.org.de'] ]; var map = new google.maps.Map(document.getElementById('map'), { zoom: 10, center: new google.maps.LatLng(51.54376, 9.910419999999931), mapTypeId: google.maps.MapTypeId.ROADMAP }); var infowindow = new google.maps.InfoWindow(); var marker, i; for (i = 0; i < locations.length; i++) { marker = new google.maps.Marker({ position: new google.maps.LatLng(locations[i][1], locations[i][2]), map: map, url: locations[i][4] }); google.maps.event.addListener(marker, 'mouseover', (function(marker, i) { return function() { infowindow.setContent(locations[i][0]); infowindow.open(map, marker); } })(marker, i)); google.maps.event.addListener(marker, 'click', (function(marker, i) { return function() { infowindow.setContent(locations[i][0]); infowindow.open(map, marker); window.location.href = this.url; } })(marker, i)); } </script></body></html>