window.event.offsetx 是鼠标X坐标位置
<BODY onmousemove="window.status = 'X=' + window.event.offsetX + 
    ' Y=' + window.event.offsetY" ondblclick="offsetCoords()">
copy 到 body 里,看状态栏就知道了。
document.capture(event.mousedown) 好像不对吧?
看看这个:
if(is_nav4up){
document.captureEvents(Event.MOUSEMOVE);
document.onmousemove=mousemenu;
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickmenu;
}else{
document.onmousemove=mousemenu;
document.onmousedown=clickmenu;
}
function mousemenu(e){
  //......
}function clickmenu(e){
  //......
}

解决方案 »

  1.   

    对了,忘记解释:
    在代码里我判断浏览器如果是NETSCAPE,是则调用javascript(注意不是JScript)里的捕捉事件方法来捕获鼠标事件,再转换该事件来调用下面的某个函数(function mousemenu(e))。
      

  2.   

    offsetX
    Sets or retrieves the x-coordinate of the mouse pointer's position relative to the object firing the event.