MediaWiki:Common.js: Unterschied zwischen den Versionen

Peter (Diskussion | Beiträge)
GMaps-Header
Peter (Diskussion | Beiträge)
KKeine Bearbeitungszusammenfassung
Zeile 140: Zeile 140:
   document.write('<script src="http://maps.google.com/maps?v=2&file=api&key='+gmapsKey+'" type="text/javascript"></script>');
   document.write('<script src="http://maps.google.com/maps?v=2&file=api&key='+gmapsKey+'" type="text/javascript"></script>');


document.write('    <style type="text/css">');
  document.write('    <style type="text/css">');
document.write('    v\:* {');
  document.write('    v\:* {');
document.write('      behavior:url(#default#VML);');
  document.write('      behavior:url(#default#VML);');
document.write('    }');
  document.write('    }');
document.write('    </style>');
  document.write('    </style>');
document.write('    <script type="text/javascript"> ');
  document.write('    <script type="text/javascript"> ');
document.write('  ');
  document.write('  ');
document.write('    var map;');
  document.write('    var map;');
document.write('    var geoXml = new document.write('GGeoXml("http://www.skipperguide.de/extension/GoogleEarthIntegration.php");');
  document.write('    var geoXml = new GGeoXml("http://www.skipperguide.de/extension/GoogleEarthIntegration.php");');
document.write('    var toggleState = 1;');
  document.write('    var toggleState = 1;');
document.write('');
  document.write('');
document.write('function onLoad() {');
  document.write('function onLoad() {');
document.write('  if (GBrowserIsCompatible()) {');
  document.write('  if (GBrowserIsCompatible()) {');
document.write('    map = new GMap2(document.getElementById("map")); ');
  document.write('    map = new GMap2(document.getElementById("map")); ');
document.write('    map.addControl(new GLargeMapControl());');
  document.write('    map.addControl(new GLargeMapControl());');
document.write('    map.addControl(new GMapTypeControl());');
  document.write('    map.addControl(new GMapTypeControl());');
document.write(' map.setCenter(new GLatLng(36,-20), 3);');
  document.write(' map.setCenter(new GLatLng(36,-20), 3);');
document.write('    map.addControl(new GLargeMapControl());');
  document.write('    map.addControl(new GLargeMapControl());');
document.write('    map.addOverlay(geoXml); ');
  document.write('    map.addOverlay(geoXml); ');
document.write('  }');
  document.write('  }');
document.write('} ');
  document.write('} ');
document.write('');
  document.write('');
document.write('</script> ');
  document.write('</script> ');
 
} // if Frontpage
  } // if Frontpage


  // END import Onlyifediting-functions
  // END import Onlyifediting-functions
  // ============================================================
  // ============================================================