1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
| CodeHTML := '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"'
+'"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'#13
+'<html xmlns="http://www.w3.org/1999/xhtml">'#13
+'<head>'#13
+'<meta http-equiv="content-type" content="text/html; charset=utf-8"/>'#13
+'<title>Google Maps JavaScript API Example</title>'#13
+'<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAFw0lDRKsdCra15LPvIxvehS3Kl_ZRrzIrsFqDz8GBXIeW1O52xQh3P31Xg2eTvqFRAyuOMY4dQrRQw" type="text/javascript"></script>'#13
+'<script type="text/javascript">'#13
+'if (GBrowserIsCompatible()) {'#13
+'function load() { '#13
+'if('+ ProjetGM.Items[ProjetGM.ItemIndex] +'=="MB2")'#13
+'{'#13
+'alert("zazzz");'#13
+'plop=3;'#13
+'}'#13
+'var map = new GMap2(document.getElementById("map"));'#13
+'map.setCenter(new GLatLng(46.636226,2.709890),6);'#13
+'}'#13
+'}'#13
+'</script>'#13
+'</head>'#13
+'<body onload="load()" onunload="GUnload()">'#13
+'<div id="map" style="width: 900px; height: 550px"></div>'#13
+'</body>'#13
+'</html>'#13 |