开发者

Adding HTML Touch events to jQuery

开发者 https://www.devze.com 2023-02-17 01:04 出处:网络
I am looking t开发者_Go百科o add touch events to my site.The HTML page I have built has a 6 icon display with a carousel that goes between the 14 icons (6 show, others are hidden, arrow shows the next

I am looking t开发者_Go百科o add touch events to my site. The HTML page I have built has a 6 icon display with a carousel that goes between the 14 icons (6 show, others are hidden, arrow shows the next 6) I am trying to create an iPad version so that users can swipe across the icons to get to the next set of icons. Looking on how to best incorporate touch events to accomplish this...looking for help getting started.

Here is the code: http://jsfiddle.net/gVJQW/ (arrows are missing but they are directly to the left and right of the icons)

Any help is greatly appreciated!

Kevin


http://jquerymobile.com/

Has everything you'll need to extend jquery to mobile devices including swipes and gestures... :)


if you only want swipe You can try something like the swipe plugin for jquery

jQuery Swipe

im sure you can find more plugins depending on what you need

0

精彩评论

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