鼠标移动到那里,都会有其坐标的显示,是以那种紧随鼠标的白色框显示的,
其内容是鼠标的坐标。
谢谢

解决方案 »

  1.   

    脚本说明:
    第一步:把如下代码加入<body>区域中:
     <SCRIPT LANGUAGE="JavaScript">
    if (navigator.appName == 'Netscape')
     {
    document.captureEvents(Event.MOUSEMOVE);
    document.onmousemove = netscapeMouseMove;
    }function netscapeMouseMove(e) {
    if (e.screenX != document.test.x.value && e.screenY != document.test.y.value)
     {
    document.test.x.value = e.screenX;
    document.test.y.value = e.screenY;

    }function micro$oftMouseMove() {
    if (window.event.x != document.test.x.value && window.event.y != document.test.y.value)
     {
    document.test.x.value = window.event.x;
    document.test.y.value = window.event.y;
    }
    }
    </SCRIPT>
    <FORM NAME="test">
    X: <INPUT TYPE="TEXT" NAME="x" SIZE="4"> Y: <INPUT 
    TYPUE="TEXT" NAME="y" SIZE="4">
    </FORM>
    第二步:把<body>中内容改为:
    <body bgcolor="#fef4d9" onMousemove="micro$oftMouseMove()">
      

  2.   

    谢谢,上面的兄弟。
    我需要的是 C# Win32
      

  3.   

    Cursor.Position.X
    Cursor.Position.y
      

  4.   

    1.响应MouseMove事件
    2.修改状态栏
      

  5.   

    获取,鼠标事件,和位置,可以做到了,
    困难的是如何跟随鼠标的那个信息条?
    这个信息条类似于Windows右下角的那种,但是我想要的那种要跟随鼠标。
    谢谢,上面三位兄弟的帮忙
    继续..........
      

  6.   

    用个label就可以实现吧,用鼠标移动控制label的位置以及显示等。
    再设置一下label的背景色、字体颜色等等就可以了。