<
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 ="UserConfig.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();
map.init();
map.addLine(...{
id:”point”,
location:...{x:100,y:100},
src:"icon.gif",
size:...{width:13,height:13},
events:...{
click:...{callback:point_clicked},
mouseon:...{callback: point_mouseon},
mouseout:...{callback: point_mouseout}
}
});
map.drawVml();
</ script >
</ body >
</ 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 ="UserConfig.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();
map.init();
map.addLine(...{
id:”point”,
location:...{x:100,y:100},
src:"icon.gif",
size:...{width:13,height:13},
events:...{
click:...{callback:point_clicked},
mouseon:...{callback: point_mouseon},
mouseout:...{callback: point_mouseout}
}
});
map.drawVml();
</ script >
</ body >
</ html >