| Hodges | 
					 | 
			
|---|---|
| 
					 Hey, 
						
					I've got a google map on a page set to html mode. To make it work I require this in the header: <script type="text/javascript"> 
  function initialize() {
    var myLatlng = new google.maps.LatLng(53.381883, -1.477755);
    var myOptions = {
      zoom: 15,
      center: myLatlng,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    }
    var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
    
    var marker = new google.maps.Marker({
        position: myLatlng, 
        map: map,
        title:"Sir Robert Hadfield Building"
    });   
  }
</script>And this in the body tag: <body onLoad="initialize()">Thing is, I don't won't this code including anywhere else on the site. How would you guys solve this elegantly? Cheers.  |