PhoneGap:如何在html中使用滑动手势来制作图片库?

如何显示图片库,当用户从左或右滑动图片相应地改变?

这是Phonegap制作iPad应用程序的可能性。

任何人都可以给我提示吗?


<script>
$("ul").delegate("li", "swiperight", function() {
 // The user has swiped to the right on a list view item. Show an edit menu.
//$(this).find(".menu-edit").show();//change here according to your need.
})
</script>

您可以使用其中的许多Carousel / Slide画廊。 我使用Bootstrap http://twitter.github.com/bootstrap/javascript.html#carousel的Carousel,它很好。

然后你可以将它与@vikky提到的jQuery Mobile事件结合起来。 这提供了swipeleft和swiperight,您可以使用它来触发您选择的Carousel上的下一个/上一个方法。 http://jquerymobile.com/demos/1.1.0/docs/api/events.html

链接地址: http://www.djcxy.com/p/4607.html

上一篇: PhoneGap: How to use swipe gesture for images in html to make image gallery?

下一篇: How to keep track of origin/master in my dev git branch