html>
谷歌地图测试#gmap{ width: 640px; height: 480px; }
window.onload = function()
{
document.getElementById("form_position").οnclick=function(){
var addr = document.getElementById('form_addr').value;
gmap.setPoint(addr);
};
var addr = document.getElementById('form_addr').value;
gmap.init('gmap', {'addr': addr, 'mtitle': '北京', 'mcontent': '这里是天安门'});
}
var gmap = {
// 初始值
map: null,
point: null,
marker: null,
opt: {
addr: '',
lat: null,
lng: null,
mtitle: '',
mcontent: '',
form_lng: 'form_lng',
form_lat: 'form_lat'
},
init: function(gmapId, option){
// 初始参