jquery拖动层,改成拼图的时候,内元素为img为产生异常,求解?求高手 本帖最后由 ambition0326 于 2011-01-20 16:10:02 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 current = $(this); top=e.pageY-parseInt(current.css("top")); left=e.pageX-parseInt(current.css("left")); move=true; return false;如此便可 如果是被选中的问题在mousemove里window.getSelection?window.getSelection().removeAllRanges() : document.selection.empty();//清除选择 恩 ,加上这个就可以了 把同样位置替换成if(e.preventDefault)e.preventDefault(); else e.returnValue=false;即为:current = $(this); top=e.pageY-parseInt(current.css("top")); left=e.pageX-parseInt(current.css("left")); move=true; if(e.preventDefault)e.preventDefault(); else e.returnValue=false;只是还是不明天为什么 ,还望讲解下 求解啊??谢谢 通过正则查找字符串 请教js数组的push方法怎么实现的 textare 换行 <script language=javascript src="XXX.asp?id="+id><script>变量不被识别 如何获取一个网页中的所有元素? 如何判断对象是否存在? 遇到一个JS的问题,向大家请教 如何取小数点后面的位数 如何控制主页面窗口为无边框窗口,尽可能不用ONLOAD来加载请帮忙。 解决JavaScript的错误信息 js游戏编程高手请进 textarea的奇怪问题
top=e.pageY-parseInt(current.css("top"));
left=e.pageX-parseInt(current.css("left"));
move=true;
return false;
如此便可
在mousemove里
window.getSelection?window.getSelection().removeAllRanges() : document.selection.empty();//清除选择
恩 ,加上这个就可以了 把同样位置替换成
if(e.preventDefault)e.preventDefault();
else e.returnValue=false;
即为:current = $(this);
top=e.pageY-parseInt(current.css("top"));
left=e.pageX-parseInt(current.css("left"));
move=true;
if(e.preventDefault)e.preventDefault();
else e.returnValue=false;
只是还是不明天为什么 ,还望讲解下 求解啊??
谢谢