开发者

Moving Objects Using Javascript

开发者 https://www.devze.com 2023-02-02 20:45 出处:网络
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 pag

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

精彩评论

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

关注公众号