所以不想直接取map的id
--------------------
why not? you can also set the id attribute of image as you set the id attribute of the div.
--------------------
why not? you can also set the id attribute of image as you set the id attribute of the div.
调试欢乐多
is this the suitable way?
改成
var mapID=document.getElementById("sub"+type).all(map.toString());
document只能是全局的document
至于all的兼容性就看着办了