<div id="bg">
<div id="top"></div>
<div id="content"></div>
</div>
鼠标点击在top移动,,cursor=move但是移动的时候变成了文本型的指针,,怎么保持 move$(top).onmousemove=function(){
this.style.cursor="move"
}还是没反应
<div id="top"></div>
<div id="content"></div>
</div>
鼠标点击在top移动,,cursor=move但是移动的时候变成了文本型的指针,,怎么保持 move$(top).onmousemove=function(){
this.style.cursor="move"
}还是没反应
解决方案 »
- 发张帖子求指教
- Jquery 插件 疑难杂症,求高手解答
- 刚学javaScript,想找个人带带我
- arguments.callee困惑呀.........
- 沒有 ID 的圖片,要如何修改
- 请教:下面的代码中如何使用setTimeout("hiddenDiv();",1000)来代替setTimeout("document.all.AdLayer.style.display = 'none';",5000);
- 看谁这么牛
- 做了一个模拟窗口,问题是有什么好的办法让拖动标题的时候也使整个窗口拖动?
- 校验只能是0123456789和校验a-z,A-Z的字符
- 被js伤透了心
- 请教各位:关于JS模拟类的问题
- 请问为什么Jquery中的toggle()执行起来有问题?
$('#top').mousemove(function () {
$(this).css("cursor", "move");
});
});document.getElementById('content').onmousemove = function () {
this.style.cursor = "move";
};
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
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元素的克隆
别人做的也不行,,,鼠标不能保持