用谷歌地图来检查你的maxthon2,不信你试试如下代码!!!
最近项目开发用到google map,发现在利用maxthon2(windows7下2.10.xx、2.13.xx 、2.14.xx)时出现 如下错误:
Line:83
Char:13
Code:0
Error:'document.getElementsByName(...).0' 为空或不是对象
网址:http://localhost:1041/fzWeb/googleMap/AddrMapTest.htm
于是,用IE8,Chrome,ff进行测试,均正常。
只是... 在ie test中 ie5.5 6 7均报错(Line:183 Char:108 error:unspecified error)
<!DOCTYPE html PUBLIC "-//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=utf-8"/>
<title>地名搜索得位置</title>
<script src="http://maps.google.com/maps?file=api&v=2&key=internal" type="text/javascript"></script>
<script src="http://www.google.com/uds/api?file=uds.js&v=1.0&key=internal" type="text/javascript"></script>
<script src="http://www.google.com/uds/solutions/localsearch/gmlocalsearch.js" type="text/javascript"></script>
<style type="text/css">
@import url("http://www.google.com/uds/css/gsearch.css");
@import url("http://www.google.com/uds/solutions/localsearch/gmlocalsearch.css");
#map {
height : 300px;
border-bottom : 1px solid #979797;
}
#wrapper {
border : 1px solid #979797;
width : 400px;
}
#map .gmls {
width : 100%;
}
#results {
margin-top : 30px;
margin-bottom : 1px;
margin-left : 2px;
margin-right : 2px;
}
#results .gmls-app,
#map .gmls-app {
border : none;
}
#results .gmls-ads-box-234x60_as .gmls_inline_ads {
left : 83px;
}
</style>
<script type="text/javascript">
var str="中国福州晋安鼓山苑";
function load() {
if (GBrowse