33 posts
    Has been part of the Envato Community for over 6 years Has sold $40,000+ on Envato Market Has collected 10+ items on Envato Market Located in Europe
+1 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