<div  id="bg">
  <div  id="top"></div>
  <div id="content"></div>
</div>
鼠标点击在top移动,,cursor=move但是移动的时候变成了文本型的指针,,怎么保持 move$(top).onmousemove=function(){
  this.style.cursor="move"
}还是没反应

解决方案 »

  1.   

    这jQuery对象和IE里的DOM模型混在了一起,要么$(),要么document.getElementById()$(function () {
        $('#top').mousemove(function () {
            $(this).css("cursor", "move");
        });
    });document.getElementById('content').onmousemove = function () {
        this.style.cursor = "move";
    };
      

  2.   

     if(document.all&&event.button==1){witchButton=true;}
           else{if(event.button==0)witchButton=true;}
           if(witchButton)
           {
            cn.onmousemove=function(event){
             cn.style.cursor="move";
             cn.style.left=event.clientX-x1+"px"; 
             cn.style.top=event.clientY-y1+"px"; 
            }
            cn.onmouseup=function(event){
    cn.onmousemove=null;
     //var evt = window.event || event一点反应也没有,,2楼我的写法不过是一个样例,,不是jquery
      

  3.   

    移动的时候无法保持鼠标move型....why
      

  4.   

    var cn=$$(bg).cloneNode(true);
    cn.style.position="absolute";
    cn.style.left=($$(dom).style.left ||$$(dom).offsetLeft)+"px";
    cn.style.top=($$(dom).style.top ||$$(dom).offsetTop)+"px";
    document.body.appendChild(cn);
    cn就是bg元素的克隆
      

  5.   

    举个例子  http://www.mianfeimoban.com/shubiaoshijian_tx/5585.html
    别人做的也不行,,,鼠标不能保持
      

  6.   

    这个实现了啊。。只要鼠标在那个div里肯定是move的