< html > < head > < xml:namespace ns ="urn:schemas-microsoft-com:vml" prefix ="v" /> < style > ... v:* {...}{ behavior: url(#default#VML);} </ style > < link type ="text/css" rel ="stylesheet" href ="MapTools.css" /> <!-- 配置文件 --> < script src ="MapConfig.js" ></ script > < script src ="highwaysConfig.js" ></ script > <!-- 应用程序 --> < script src ="Common.js" ></ script > < script src ="CMap.js" ></ script > < script src ="VMLDrawer.js" ></ script > < script src ="Trigger.js" ></ script > < script src ="MapTools.js" ></ script > </ head > < body > < div id ="mapContainer" ></ div > < script > ... //初始化 var map = new CMap($("mapContainer")); map.onMapMoved = onMapMoved; map.onCompleted = onCompleted; map.init(); function onCompleted()...{ //加载完成 alert("地图加载完成"); } function onMapMoved()...{ //地图移动缩放 alert("地图移动缩放"); } </ script > </ body > </ html >