我在画布上点第一个点后,为什么我只能在第一个记忆点的右下方画线?onmousedown事件xx=event.x;yy=event.y;zz+=1
if(poly1==null){
oldx=xx;oldy=yypoly1=div1.appendChild(document.createElement("<v:polyline points='0 0 0 0' style='position:absolute;z-index:"+zz+";left:"+xx+";top:"+yy+";' strokecolor='"+color1+"' strokeweight='"+size1+"' fillcolor='"+color2+"'/>"))
}
if(oldx-tempx<1&&oldy-tempy<1)oldvalue=poly1.points.value.replace(/,/g,' ')
break;onmousemove事件tempx=event.x;tempy=event.y;temp1=0;temp2=0
zuobiao.value=tempx-allform1.offsetLeft-8+","+parseInt(tempy-toptd1.offsetHeight-7)
if(oldx-tempx<0&&oldy-tempy<0)
poly1.points.value=oldvalue+" "+(tempx-oldx)+" "+(tempy-oldy)
}onmouseup事件
省略...大家帮我看看为什么会这样~~