<div id=strs></div><br><br>
<div style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0px solid #000000; " contenteditable="true" class="drag" onmouseover="javascript:alert(this.style.cursor);">
<div style="position: absolute; top: 50; left: 50; width: 512; height: 24; border: 1px solid #000000; " contenteditable="true">asfasf</div>
<div id="layer1" style="position:absolute; left:261px; top:174px; width:187px; height:145px; z-index:1">rrr</div>
</div>

解决方案 »

  1.   

    详细代码如下:
    <div id="layer1" style="position:absolute; left:261px; top:174px; width:187px; height:145px; z-index:1;cursor:hand;">请把鼠标移过来。</div>
    <a href="#" onClick="DoTest('hand');">hand状鼠标</a>
    <a href="#" onClick="DoTest('move');">move状鼠标</a>
    <a href="#" onClick="DoTest('default');">default状鼠标</a>&nbsp;
    <button onClick="DoTest1();">弹出鼠标形状</button>
      

  2.   

    上面代码漏掉了一段正确代码如下:
    <script>
    function DoTest(type)
    {
       layer1.style.cursor=type;
    }
    function DoTest1()
    {   alert(layer1.style.cursor);
    }</script>
    <div id="layer1" style="position:absolute; left:261px; top:174px; width:187px; height:145px; z-index:1;cursor:hand;">请把鼠标移过来。</div>
    <a href="#" onClick="DoTest('hand');">hand状鼠标</a>
    <a href="#" onClick="DoTest('move');">move状鼠标</a>
    <a href="#" onClick="DoTest('default');">default状鼠标</a>&nbsp;
    <button onClick="DoTest1();">弹出鼠标形状</button>
      

  3.   

    什么呀!不是的
    判断下边这个
    <div id=strs></div><br><Br>
    <div style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0px solid #000000; " contentEditable="true" class="drag">
    <div style="position: absolute; top: 50; left: 50; width: 512; height: 24; border: 1px solid #000000; " contentEditable="true">asfasf</div>
    <div id="Layer1" style="position:absolute; left:261px; top:174px; width:187px; height:145px; z-index:1">rrr</div>
    </div>
      

  4.   

    你是不是要这样的效果啊?
    http://www.walterzorn.com/dragdrop/dragdrop_e.htm
      

  5.   

    可以用IF来判断呀!if(divid.style.cursor=="default")
                          alert("default")
                       else(.....)