style="cursor: url(custom.cur)"
document.all.theTop.style.cursor = "url(custom.cur)";
custom.cur为cur文件   自定义网页里的鼠标形状(IE6.0+)

解决方案 »

  1.   

    <style>
    body{cursor:url(ant_logo.ico)}
    </style>
      

  2.   

    LxcJie(肖冲) 老大 如果能写在css里面我就不问了
      

  3.   

    to  meizz(梅花雪) 
    提示页面有错误啊!
    case "zoomout":
    // zoom out mode
    toolMode = 2;
    panning=false;
    selectBox=false;
    if (isIE) {
    style="cursor: url(3dwmove.cur)"
    document.all.theTop.style.cursor = "url(3dwmove.cur)";
    // document.all.theTop.style.cursor ="crosshair";
    theCursor = document.all.theTop.style.cursor;
    }
    modeBlurb = modeList[1];
    //if (useTextFrame) parent.TextFrame.document.location= appDir + "text.htm";
    break;
      

  4.   

    <script>
    function change(mouse)
            {
                document.getElementById("map").style.cursor = mouse;  
            }
    </script><div id=map></div>
    <input type=button onclick=change("mouse.cur") value="Change">
      

  5.   

    <body>
    </body>
    <SCRIPT LANGUAGE="JavaScript">
    document.body.style.cursor = "url(ant_logo.ico)"
    </SCRIPT>
      

  6.   

    图标已经能显示了,可是只能显示一次,再执行就没有效了,WHY!!
    case "zoomout":
    // zoom out mode
    toolMode = 2;
    panning=false;
    selectBox=false;
    if (isIE) {
    alert(document.all.theTop.style.cursor);<------显示情况见下面
    document.all.theTop.style.cursor = "url(3dwmove.cur)";
    theCursor = document.all.theTop.style.cursor;

    }第一次光标正常显示时:显示crosshair 
    第二次光标不正常显示时:显示url('3dwmove.cur')
    第三次再执行的时候显示:url('url(3dwmove.cur')
    那位大哥知道这是为什么阿?
      

  7.   

    .........自己找到原因了,真不容易!
    document.all.theTop.style.cursor = "3dwmove.cur";
    直接这样写就可以了