随便让一个时间触发不久行啦??
<script>
document.onkeydown()=function(){
oView .style.cursor="wait"
}
</script>

解决方案 »

  1.   

    function Timer()
    {
    oView.style.cursor=Cursor[nCount];
    lTimerID=window.setTimeout("Timer()" ,120);
    nCount=nCount+1;
    if (nCount>3) nCount=0;
    }这个事件怎么不起作用?如何设置整个屏幕的鼠标形状?而不是table的?
      

  2.   

    document.documentElement.style.cursor=Cursor[nCount];
    可以整个屏幕了,但是如何不需要移动鼠标就可以改变鼠标形状??
      

  3.   

    不明白,楼上明示麻烦大家试一下我的代码如下代码,可以旋转鼠标,但是鼠标不移动,鼠标的箭头也不会改变
    有没有什么办法,不移动鼠标,让鼠标箭头改变?<html>
    <head>
    <title></title>
    </head><body>
    <table id=oView width="80" height="80" border=0 cellspacing=0 cellpadding=0 bgcolor=#5555ef>
    <tr><td>&nbsp</td></tr>
    </table>
    </body>
    </html>
    <script language=javascript>
    var lTimerID;
    var Cursor = new Array();var nCount;window.onload=function()
    {
    nCount=0;
    Cursor[0]="se-resize";
    Cursor[1]="ne-resize";
    Cursor[2]="nw-resize";
    Cursor[3]="sw-resize";
    Timer();
    }function Timer()
    {
    //oView.style.cursor=Cursor[nCount];
             document.documentElement.style.cursor=Cursor[nCount];
    lTimerID=window.setTimeout("Timer()" ,120);
    nCount=nCount+1;
    if (nCount>3) nCount=0;
    }
    </script>
      

  4.   

    你只须把Timer中的“document.documentElement”换成“document.body”就可以了。
    IE6。0测试通过。document.documentElement是HTML文档的ROOT,即“<html>”,可能是这个节点对“STYLE”的支持并不太象其它的标记一样原因,不太清楚。
      

  5.   

    <html>
    <head>
    <title></title>
    </head><body>
    <table id=oView width="80" height="80" border=0 cellspacing=0 cellpadding=0 bgcolor=#5555ef>
    <tr><td>&nbsp</td></tr>
    </table>
    <p id=oShow></p>
    </body>
    </html>
    <script language=javascript>
    var lTimerID;
    var Cursor = new Array();var nCount;window.onload=function()
    {
    nCount=0;
    Cursor[0]="se-resize";
    Cursor[1]="ne-resize";
    Cursor[2]="nw-resize";
    Cursor[3]="sw-resize";
    Timer();
    }
    function Timer()
    {
    //oView.innerText ="<table id=oView width=80 height=80 border=0 cellspacing=0 cellpadding=0 bgcolor=#5555ef><tr><td>" + Cursor[nCount] +"</td></tr></table>";
    document.body.style.cursor=Cursor[nCount];
    lTimerID=window.setTimeout("Timer()" ,120);
    nCount=nCount+1;
    oShow.innerHTML=nCount;
    if (nCount>3) nCount=0;
    }
    </script>谁帮我up 下,谢谢