各位大侠,我想把百度地图放到我的网上来,怎么弄呀,难不难? 我可不是要链接的哦.多谢啦.. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 那个 用google的可以不、??你用谷歌百度一下有一个js就可以把她嵌套在你自己的网页中类 搜了一下,这个百度地图提供了js调用接口<script src ="http://api.map.baidu.com/api?v=1.3" type ="text/javascript" >< /script >引入这个js文件就可以调用百度提供的地图使用函数了简单试了一下:<html xmlns="http://www.w3.org/1999/xhtml" ><head id="Head1" runat="server"> <title>无标题页</title></head><script type="text/javascript" src ="http://api.map.baidu.com/api?v=1.3"></script><script type ="text/javascript">setTimeout(function(){var map = new BMap.Map("container"); // 创建地图实例 创建地图实例var point = new BMap.Point(116.404, 39.915); // 创建点坐标map.centerAndZoom(point, 15); // 初始化地图,设置中心点坐标和级别 初始化地图,设置中心点坐标和级别},1000);</script ><body><form runat="server"> <div id="container" style="width:700px;height:450px"></div></form> </body></html>要真正使用请看api文档http://dev.baidu.com/wiki/static/map/API/doc/developer.pdf cookie跨域 问题 求救:js兼容问题 怎么让div始终浮动在浏览器的上边缘? JS 在、select 中选择一条记录其他的选择项跟着变动 提取某个字符串中特定的内容 XMLDOM,XMLHTTP取来的东西总被IE缓冲! JavaScript跳转链接问题 被恶意网站www.58q.com篡改的IE配置,如何恢复? 如何定位问题,给100分. extjs的问题 求各位大神救救小弟 jquery ui 中的button,如何点击后留住状态? 遇到一个有点奇怪的问题
<script src ="http://api.map.baidu.com/api?v=1.3" type ="text/javascript" >< /script >
引入这个js文件就可以调用百度提供的地图使用函数了
简单试了一下:<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>无标题页</title>
</head>
<script type="text/javascript" src ="http://api.map.baidu.com/api?v=1.3"></script>
<script type ="text/javascript">
setTimeout(function(){
var map = new BMap.Map("container"); // 创建地图实例 创建地图实例
var point = new BMap.Point(116.404, 39.915); // 创建点坐标
map.centerAndZoom(point, 15); // 初始化地图,设置中心点坐标和级别 初始化地图,设置中心点坐标和级别
},1000);
</script >
<body>
<form runat="server">
<div id="container" style="width:700px;height:450px"></div>
</form> </body>
</html>要真正使用请看api文档
http://dev.baidu.com/wiki/static/map/API/doc/developer.pdf