我想做一种这样的效果:按住鼠标左键拖动一段距离后,再松开鼠标,便拖动便能在网页上话一条线,鼠标松开时绘画结束。我写了三个函数:<script>
document.onmousedown = function(){
    document.getElementById("a") = "down";  //让一文本框中显示down
}document.onmousemove = function(){
    document.getElementById("a") = "move";
}document.onmouseup = function(){
    document.getElementById("a") = "up";
}</script>....<input id = "a"/> 然后,我在ie中运行,发现点击的时候会显示down,然后鼠标不松开(一直按住左键)拖动,会显示move,但是拖动后再松开鼠标并没有显示 up,请问怎样做才能触发mouseup事件?