开发者

Moving Objects Using Javascript

I want to make some interactions with some images on my site. I want to let the possibility to user of clicking on a 开发者_运维问答image, holding it and then drag it everywhere he wants it on the page. Is this possible using only Javascript, HTML5 and CSS3?

PS: I need it to run on iPhone Mobile Safari


Should be possible. This jQuery Mobile plugin seems to support what you need:

http://plugins.jquery.com/project/mobiledraganddrop


It is possible to implement drag and drop using only Javascript, see here.

However, it is not possible to implement this on mobile safari because it will interpret the drag operation as a scroll.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜