JS中引用百度地图并将百度地图的logo和信息去掉

时间:2013-09-29    点击:98   
采用CSS覆盖的方法就可以了,但是官方是不允许这么做的,参考:http://developer.baidu.com/map/question.htm
复制代码 代码如下:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>javascript移除百度地图LOGO和版权信息</title>
<script type="text/javascript" src="//jquery.js"></script>
<script src="http://api.map.baidu.com/api?v=1.3" type="text/javascript"></script>
<script type="text/javascript">
function initialize() {
var mp = new BMap.Map('map');
mp.centerAndZoom(new BMap.Point(121.491, 31.233), 11);
}
window.onload = initialize;
</script>=
<style type="text/css">
.anchorBL{
display:none;
}
</style>

</head>
<body>
<input type="button" onclick="$('#map div.anchorBL').hide();" value="移除地图LOGO和版权说明"/>
<div id="map" style="width:400px;height:40px"></div>
</body>
</html>
使用非html5实现js板连连看游戏示例代码
基于jquery实现一张图片点击鼠标放大再点缩小
getJSON调用后台json数据时函数被调用两次的原因猜想
jquery事件与函数的使用介绍
Jquery选中或取消radio示例
> 返回     
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络 Product All Rights Reserved