33 posts
  • 7 Years of Membership
  • Author Level 6
  • Collector Level 2
  • Exclusive Author
+2 more
grubforce
says

Hi everyone,

Currently i’m creating a new theme with a contact page that uses the google maps api. Although ik got it to work in all browsers (even ie6 :-) it doesn’t work in IE7 !

here’s the code that i placed in the header:

<script type="text/javascript">

function initialize() {
var latlng = new google.maps.LatLng(35.221903,9.750301);
var myOptions = {
zoom: 10,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP,
navigationControl: false
};

var map = new google.maps.Map(document.getElementById("Googlemaps"), myOptions);

}

window.onload=function(){window.onload;initialize()};
window.onunload=function(){window.onunload;GUnload()};

</script>

If anyone knows how to solve this it would be great!

by
by
by
by
by
by