"Jquerymobile" uses jquerymobile to achieve the effect of sliding page flipping

Source: Internet
Author: User

Swipe gestures are popular in mobile devices and are common in sliding pages in mobile devices

Although this feature can be implemented in Jquerymobile, individuals and the previous "JQuery" on the difficulty of dragging in mobile browsers (click the Open link) has been, because this is viewed in a mobile browser, rather than a standalone app for Android, So do not frequently remove mobile device gestures other than click, in order to avoid the mobile phone browser and the phone system itself, the gesture conflicts.

So, what is the effect of using jquerymobile to achieve sliding page flipping?


I. BASIC OBJECTIVES

In the Jquerymobile frame page of the mobile browser, the real-world swipe gesture features such as:


It also records the number of pages in the current page and automatically increases and decreases as the user slides.


Second, the production process

About the Jquerymobile interface how to decorate, no longer detailed, please read my previous written "Jquerymobile" HelloWorld and page switch (click to open the link),

The following code comments are mainly about how to implement the above page by using the Jquerymobile encapsulated swipe gesture jquery mobile swipeleft and the jquery Mobile swiperight processing, the "jquery Mobile Touch event (click to open link) The narrative of this is problematic, and the experimental code is not consistent with the code given:

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
Note that DIV1 does not have a right-slip gesture, because this is the first page and DIV4 does not have a left swipe gesture because this is the last page.


"Jquerymobile" uses jquerymobile to achieve the effect of sliding page flipping

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.