<!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>标注点</title>

    <style type="text/css">
        * {
            margin: 0;
            padding: 0;
            list-style-type: none;
        }

        a, img {
            border: 0;
        }

        body {
            font: 12px/180% Arial, Helvetica, sans-serif, "新宋体";
        }

        .demo {
            width: 850px;
            margin: 20px auto;
        }

        #l-map {
            height: 400px;
            width: 600px;
            float: left;
            border: 1px solid #bcbcbc;
        }

        #r-result {
            height: 400px;
            width: 230px;
            float: right;
        }

        html, body {
            margin: 0;
            padding: 0;
        }

        .iw_poi_title {
            color: #CC5522;
            font-size: 14px;
            font-weight: bold;
            overflow: hidden;
            padding-right: 13px;
            white-space: nowrap;
        }

        .iw_poi_content {
            font: 12px arial,sans-serif;
            overflow: visible;
            padding-top: 4px;
            white-space: -moz-pre-wrap;
            word-wrap: break-word;
        }

        .btnbz {
            text-align: center;
        }
    </style>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.4"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type="text/javascript">
        function msg(print) {
            var objprint = print;
            var objcity = document.getElementById("txtcity");
            if (confirm("是否确定将当前坐标点位置标注为:" + objcity.value + "?")) {
                alert("ok");
            }
        }
    </script>
</head>
<body>

    <div class="demo">

        <p style="height: 40px;">
            输入城市:<input ).value;
            local.search(city);                 // 初始化地图,设置城市和地图级别。
            //启用滚轮放大缩小
        }
    </script>
</body>
</html>

相关文章:

  • 2021-04-12
  • 2022-12-23
  • 2022-02-27
  • 2022-12-23
  • 2021-04-16
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案