HTML PUBLIC"-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
drawCircle条件
半 径 :
圆心横坐标:
圆心纵坐标:
n++;
}
obj.style.left=xpos-r;
obj.style.top=ypos-r;
obj.style.width=2*r;
obj.style.height=2*r;
obj.innerHTML=result;
}this.startDrag=function(win){if(event.button==1){
x0=event.clientX;
y0=event.clientY;
x1=parseInt(win.offsetLeft);
y1=parseInt(win.offsetTop);
moveable=true;
}
}this.drag=function(win)
{if(moveable){
win.style.left=x1+event.clientX-x0;
win.style.top=y1+event.clientY-y0;
}
}this.stopDrag=function(win)
{if(moveable){
win.releaseCapture();
<