“模板:Test”的版本间的差异

来自Jamesqi
跳转至: 导航搜索

 
(未显示同一用户的17个中间版本)
第1行: 第1行:
<html>
+
<small>说明:您看到的本页可能是缓存内容,可点击:<html><a href="http://</html>{{SERVERNAME}}/index.php?title={{FULLPAGENAMEE}}&action=purge<html>"><u>查看当前最新信息</u></a></html></small>[[分类:无缓存]]<noinclude>--[[用户:James Qi|James Qi]] 2010年9月26日 (日) 16:33 (CST)</noinclude>
    <script src="http://ditu.google.cn/maps?file=api&amp;v=2.x&amp;key=ABQIAAAAsec4RV8oAB2Dy0WfBAQeBRSeF8OSOK12RnhJK901ydzsR0THTBRE8kQzmJpyswMlPPfG9sTs3NQYLA&hl=zh-CN" type="text/javascript"></script>
 
    <script type="text/javascript">  
 
 
    var map = null;
 
    var geocoder = null;
 
 
    function initialize() {
 
      if (GBrowserIsCompatible()) {
 
        map = new GMap2(document.getElementById("map_canvas"));
 
        geocoder = new GClientGeocoder();
 
showAddress(address);
 
      }
 
    }
 
 
    function showAddress(address) {
 
      if (geocoder) {
 
        geocoder.getLatLng(
 
          address,
 
          function(point) {
 
            if (!point) {
 
              alert("不能解析: " + address);
 
            } else {
 
              map.setCenter(point, 8);
 
              var marker = new GMarker(point);
 
              map.addOverlay(marker);
 
              marker.openInfoWindowHtml("地址:"+address+"<br>"+display);
 
            }
 
          }
 
        );
 
      }
 
    }
 
    </script>  
 
 
  <body onload="initialize()" onunload="GUnload()">  
 
<script type="text/javascript">  
 
var address = "</html>{{{1}}}<html>";
 
var display = "</html>{{{2}}}<html>";
 
</script>
 
      <div id="map_canvas" style="width: 360px; height: 280px">正在载入地图,请稍等...</div>
 
  </body>
 
</html>
 

2010年9月26日 (日) 16:33的最新版本

说明:您看到的本页可能是缓存内容,可点击:查看当前最新信息--James Qi 2010年9月26日 (日) 16:33 (CST)