Версия 08:51, 2 августа 2009 (править) Buslov Anton (Обсуждение | вклад)
← К предыдущему изменению |
Версия 12:37, 10 августа 2009 (править) (отменить) Buslov Anton (Обсуждение | вклад)
К следующему изменению → |
| Строка 8: |
Строка 8: |
| | <html> | | <html> |
| | <center> | | <center> |
| - | <!-- ++Begin Map Search Control Wizard Generated Code++ --> | |
| - | <!-- | |
| - | // Created with a Google AJAX Search Wizard | |
| - | // http://code.google.com/apis/ajaxsearch/wizards.html | |
| - | --> | |
| | | | |
| - | <!-- | + | <IFRAME src='http://samaratrans.info/yamap_smr.html' width=100% height=500 scrolling='no' frameborder=0>[Your user agent does not support frames or is currently configured not to display frames. However, you may visit <A href='http://samaratrans.info/yamap_smr.html'>the related document.</A>]</IFRAME> |
| - | // The Following div element will end up holding the map search control. | + | |
| - | // You can place this anywhere on your page | + | |
| - | --> | + | |
| - | <div id="mapsearch"> | + | |
| - | <span style="color:#676767;font-size:11px;margin:10px;padding:4px;">Loading...</span> | + | |
| - | </div> | + | |
| - | | + | |
| - | <!-- Maps Api, Ajax Search Api and Stylesheet | + | |
| - | // Note: If you are already using the Maps API then do not include it again | + | |
| - | // If you are already using the AJAX Search API, then do not include it | + | |
| - | // or its stylesheet again | + | |
| - | // | + | |
| - | // The Key Embedded in the following script tags is designed to work with | + | |
| - | // the following site: | + | |
| - | // http://www.samaratrans.info | + | |
| - | --> | + | |
| - | <script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAsWU0g8HDOlCOCpK995EF7xQZbVGbwZETa0OslVNRON8bjLxvJhSrOTX_xl1WfM-sOVU9l6zV0bGX2Q" | + | |
| - | type="text/javascript"></script> | + | |
| - | <script src="http://www.google.com/uds/api?file=uds.js&v=1.0&source=uds-msw&key=ABQIAAAAsWU0g8HDOlCOCpK995EF7xQZbVGbwZETa0OslVNRON8bjLxvJhSrOTX_xl1WfM-sOVU9l6zV0bGX2Q" | + | |
| - | type="text/javascript"></script> | + | |
| - | <style type="text/css"> | + | |
| - | @import url("http://www.google.com/uds/css/gsearch.css"); | + | |
| - | </style> | + | |
| - | | + | |
| - | <!-- Map Search Control and Stylesheet --> | + | |
| - | <script type="text/javascript"> | + | |
| - | window._uds_msw_donotrepair = true; | + | |
| - | </script> | + | |
| - | <script src="http://www.google.com/uds/solutions/mapsearch/gsmapsearch.js?mode=new" | + | |
| - | type="text/javascript"></script> | + | |
| - | <style type="text/css"> | + | |
| - | @import url("http://www.google.com/uds/solutions/mapsearch/gsmapsearch.css"); | + | |
| - | </style> | + | |
| - | | + | |
| - | <style type="text/css"> | + | |
| - | .gsmsc-mapDiv { | + | |
| - | height : 600px; | + | |
| - | } | + | |
| - | | + | |
| - | .gsmsc-idleMapDiv { | + | |
| - | height : 600px; | + | |
| - | } | + | |
| - | | + | |
| - | #mapsearch { | + | |
| - | width : 800px; | + | |
| - | margin: 10px; | + | |
| - | padding: 4px; | + | |
| - | } | + | |
| - | </style> | + | |
| - | <script type="text/javascript"> | + | |
| - | function LoadMapSearchControl() { | + | |
| - | | + | |
| - | var options = { | + | |
| - | zoomControl : GSmapSearchControl.ZOOM_CONTROL_ENABLE_ALL, | + | |
| - | title : "Самара", | + | |
| - | url : "http://www.samaratrans.info", | + | |
| - | idleMapZoom : GSmapSearchControl.ACTIVE_MAP_ZOOM-2, | + | |
| - | activeMapZoom : GSmapSearchControl.ACTIVE_MAP_ZOOM-2 | + | |
| - | } | + | |
| - | | + | |
| - | new GSmapSearchControl( | + | |
| - | document.getElementById("mapsearch"), | + | |
| - | "Россия, Самара", | + | |
| - | options | + | |
| - | ); | + | |
| - | | + | |
| - | } | + | |
| - | // arrange for this function to be called during body.onload | + | |
| - | // event processing | + | |
| - | GSearch.setOnLoadCallback(LoadMapSearchControl); | + | |
| - | </script> | + | |
| - | <!-- ++End Map Search Control Wizard Generated Code++ --> | + | |
| - | | + | |
| | | | |
| | </center> | | </center> |