[ka-Map-users] why ka-map is no rule?
=?gb2312?B?5a2ZIOe9kei+iQ==?=
myhk109 at hotmail.com
Tue Dec 5 05:01:54 EST 2006
other web map have a rule!
this is a sample,who can add to ka-map?
<html xmlns:v="urn:schemas-microsoft-com:vml">
<STYLE>
v\:* { Behavior: url(#default#VML) }
</STYLE>
<head>
<script>
document.onmousedown = doMouseDown;
document.onmousemove = doMouseMove;
document.onmouseup = doMouseUp;
var x = 0;
var y = 0;
var oldx = 0;
var oldy = 0;
var size = 1;
var color = "red";
var mousedown = false;
var html = "";
function doMouseDown(){
if(event.button==1){
mousedown = true;
x = event.x ;
y = event.y;
}
}
function doMouseMove(){
if(event.button==1&&mousedown==true){
paint();
}
}
function doMouseUp(){
mousedown = false;
}
function paint(){
oldx = x;
oldy = y;
x = event.x-5;
y = event.y-5;
html = event.srcElement.innerHTML;
var h = "";
h += "<v:line style='position:absoult;'
from='"+oldx+","+oldy+"' to='"+x+","+y+"' />";
event.srcElement.innerHTML = html+h;
}
</script>
</head>
<body>
</body>
</html>
_________________________________________________________________
ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn
More information about the ka-Map-users
mailing list