87,907
社区成员
![](https://csdnimg.cn/release/cmsfe/public/img/topic.427195d5.png)
![](https://csdnimg.cn/release/cmsfe/public/img/me.40a70ab0.png)
![](https://csdnimg.cn/release/cmsfe/public/img/task.87b52881.png)
![](https://csdnimg.cn/release/cmsfe/public/img/share-circle.3e0b7822.png)
<!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312"/>
<title>Google Maps JavaScript API Example </title>
<script src="http://ditu.google.com/maps?file=api&v=2&key=ABQIAAAAPr2lg_u1GjwBae5jGI7LVRR7ZeNdEDFZ60daBOzX0qLOwUWzGRTzdd3JdKOyd6mvqWKZ-w6MO2yBUw" type="text/javascript"></script>
<script type="text/javascript">
function initialize()
{
if (GBrowserIsCompatible())
{
map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(39.9493, 116.3975), 13);
}
}
</script>
<style>
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.map {
height: 500px;
width: 800px;
}
.map div div div div img{
cursor:url(http://www.javatimes.cn/images/3dgmove.cur), default;;
}
</style>
</head>
<body onload="initialize()" onunload="GUnload()">
<div id="map_canvas" class="map"></div>
</body>
</html>
@charset "gb2312";
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.map {
height: 500px;
width: 800px;
}
.map img{
CURSOR: url(../images/pencil.cur);
}
<!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312"/>
<title>Google Maps JavaScript API Example</title>
<script src="http://ditu.google.cn/maps?file=api&v=2&ie=gb2312&oe=gb2312&hl=zh-CN&key=abcdefg&sensor=true_or_false" type="text/javascript"></script>
<script type="text/javascript">
function initialize()
{
if (GBrowserIsCompatible())
{
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(39.9493, 116.3975), 13);
}
}
</script>
<link href="../images/css/map.css" rel="stylesheet" type="text/css" />
</head>
<body onload="initialize()" onunload="GUnload()">
<div id="map_canvas" class="map"></div>
</body>
</html>
@charset "gb2312";
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.map {
height: 500px;
width: 800px;
CURSOR: url(../images/pencil.cur);
}