?
Path : /home/admin/public_html/old/ |
Current File : /home/admin/public_html/old/mapgoo.html |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head><style> html, body, #map-canvas { height: 329px; width: 474 px; margin: 0px; padding: 0px } </style><script src="https://maps.googleapis.com/maps/api/js?v=3.exp"></script> <script> var map; function initialize() { var mapOptions = { zoom: 17, center: new google.maps.LatLng(13.80208,100.608121) }; map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions); var marker = new google.maps.Marker({ position: map.getCenter(), map: map, title: 'Click to zoom' }); google.maps.event.addListener(map, 'center_changed', function() { // 3 seconds after the center of the map has changed, pan back to the // marker. window.setTimeout(function() { map.panTo(marker.getPosition()); }, 3000); }); var infowindow = new google.maps.InfoWindow({ content: 'Promice co.,Ltd', position: myLatLng }); infowindow.open(map); } google.maps.event.addDomListener(window, 'load', initialize); </script> <body> <div align="center"> <table id="Table_2" width="700" height="52" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="19"><div id="map-canvas"></div></td> </tr> </table> </div> </body> </html>