【文件属性】:
文件名称:jquery 拖动图片
文件大小:27KB
文件格式:RAR
更新时间:2015-11-02 08:37:35
jquery
实现jquery图片拖动
function allowDrop(ev)
{
ev.preventDefault();
}
function drag(ev)
{
ev.dataTransfer.setData("Text",ev.target.id);
}
function drop(ev)
{
var data=ev.dataTransfer.getData("Text");
ev.target.appendChild(document.getElementById(data));
ev.preventDefault();
}
[removed]
</head>
<body>
</body>
</html>
【文件预览】:
point.png
index.html
lyhuc.gif
bg.jpg
js
----jquery.ui.touch.js(3KB)
----_notes()
--------dwsync.xml(177B)
currentpoint.png
_notes
----dwsync.xml(713B)
style.css
网友评论
- 比较简单,可以参考,但是不是我想要的效果。