CN105786944B - Method and device for processing automatic page turning of browser - Google Patents

Method and device for processing automatic page turning of browser Download PDF

Info

Publication number
CN105786944B
CN105786944B CN201510897945.2A CN201510897945A CN105786944B CN 105786944 B CN105786944 B CN 105786944B CN 201510897945 A CN201510897945 A CN 201510897945A CN 105786944 B CN105786944 B CN 105786944B
Authority
CN
China
Prior art keywords
page
operation instruction
current display
gesture operation
display page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510897945.2A
Other languages
Chinese (zh)
Other versions
CN105786944A (en
Inventor
汪平仄
张涛
龙飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510897945.2A priority Critical patent/CN105786944B/en
Publication of CN105786944A publication Critical patent/CN105786944A/en
Application granted granted Critical
Publication of CN105786944B publication Critical patent/CN105786944B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/972Access to data in other repository systems, e.g. legacy data or dynamic Web page generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The method comprises the steps of obtaining a paging control code of a current display page of the browser, receiving a gesture operation instruction input by a user on the current display page, wherein the gesture operation instruction is used for triggering page turning, and controlling the current display page to jump to a display page corresponding to the gesture operation instruction according to the gesture operation instruction and the paging control code of the current display page. According to the method, a user can turn pages only by inputting a gesture operation instruction on the current display page, so that the method is convenient for the user to use.

Description

Method and device for processing automatic page turning of browser
Technical Field
The present disclosure relates to communications technologies, and in particular, to a method and an apparatus for processing an automatic page turning of a browser.
Background
When a user browses a webpage by using a browser, page turning is generally frequently used, and the page turning can be performed only by clicking page turning buttons or hyperlinks such as 'next page', '3', '4' and the like in the page by the user at present. The mobile terminal screen is small, so that a user is difficult to accurately click a page turning button or hyperlink on a page, and when the mobile terminal screen is large, the user is difficult to turn pages through one-hand operation, and inconvenience is brought to the user.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a method and an apparatus for automatically turning pages of a browser.
According to a first aspect of the embodiments of the present disclosure, a method for processing automatic page turning of a browser is provided, including:
acquiring a paging control code of a current display page of a browser;
receiving a gesture operation instruction input by a user on the current display page, wherein the gesture operation instruction is used for triggering page turning;
and controlling the current display page to jump to the display page corresponding to the gesture operation instruction according to the gesture operation instruction and the paging control code of the current display page.
Optionally, the controlling, according to the gesture operation instruction and the paging control code of the current display page, the current display page to jump to the display page corresponding to the gesture operation instruction includes:
determining page turning operation corresponding to the gesture operation instruction according to the gesture operation instruction;
and controlling a page turning button or hyperlink in the paging control code of the current display page to perform webpage skipping according to the page turning operation corresponding to the gesture operation instruction, and skipping to the display page corresponding to the gesture operation instruction.
Optionally, the method further includes: acquiring the page number of the current display page;
the step of controlling the current display page to jump to the display page corresponding to the gesture operation instruction according to the gesture operation instruction and the paging control code of the current display page includes:
determining the page number of the display page corresponding to the gesture operation instruction according to the gesture operation instruction and the page number of the current display page;
and controlling the page number of the display page corresponding to the gesture operation instruction in the page control code of the current display page to jump to the display page corresponding to the gesture operation instruction according to the page number of the display page corresponding to the gesture operation instruction.
Optionally, the obtaining of the paging control code of the current display page of the browser includes:
acquiring a hypertext markup language html source file of the current display page;
matching a page display template set obtained in advance with an html source file of the current display page, and identifying page control codes of the current display page from the html source file of the current display page, wherein the page display template set comprises at least two page display templates for controlling pages.
Optionally, the obtaining the page number of the current display page includes:
and acquiring the URL address of the current display page, and identifying the page number of the current display page from characters contained in the URL address.
Optionally, the obtaining the page number of the current display page includes:
and determining the page number of the current display page according to the display style of the page number of the page contained in the paging control code of the current display page.
Optionally, the gesture operation instruction includes a leftward sliding operation instruction and a rightward sliding operation instruction, the leftward sliding operation instruction is used to trigger turning back a page, and the rightward sliding operation instruction is used to trigger turning forward a page.
Optionally, the gesture operation instruction includes an upward sliding operation instruction and a downward sliding operation instruction, the upward sliding operation instruction is used for triggering to turn back a page, and the downward sliding operation instruction is used for triggering to turn forward a page.
According to a second aspect of the embodiments of the present disclosure, there is provided a processing apparatus for automatically turning pages of a browser, including:
the browser comprises a first acquisition module, a second acquisition module and a display module, wherein the first acquisition module is configured to acquire a paging control code of a current display page of the browser;
the receiving module is configured to receive a gesture operation instruction input by a user on the current display page, and the gesture operation instruction is used for triggering page turning;
and the page turning control module is configured to control the current display page to jump to the display page corresponding to the gesture operation instruction according to the gesture operation instruction and the paging control code of the current display page.
Optionally, the page turning control module includes:
the first determining submodule is configured to determine page turning operation corresponding to the gesture operation instruction according to the gesture operation instruction;
and the first control submodule is configured to control a page turning button or hyperlink in the paging control code of the current display page to perform webpage skipping according to the page turning operation corresponding to the gesture operation instruction, and skip to the display page corresponding to the gesture operation instruction.
Optionally, the apparatus further comprises:
the second acquisition module is configured to acquire the page number of the current display page;
the page turning control module further comprises:
the second determining submodule is configured to determine the page number of the display page corresponding to the gesture operation instruction according to the gesture operation instruction and the page number of the current display page;
and the second control submodule is configured to control the page number of the display page corresponding to the gesture operation instruction included in the paging control code of the current display page to perform webpage skipping according to the page number of the display page corresponding to the gesture operation instruction, and skip to the display page corresponding to the gesture operation instruction.
Optionally, the first obtaining module includes:
a first obtaining sub-module configured to obtain a hypertext markup language html source file of the current display page;
the first identification submodule is configured to match a paging display template set obtained in advance with an html source file of the current display page, identify paging control codes of the current display page from the html source file of the current display page, and the paging display template set comprises at least two paging display templates for controlling paging.
Optionally, the second obtaining module includes:
a second obtaining submodule configured to obtain a uniform locator URL address of the current display page;
and the second identification submodule is configured to identify the page number of the current display page from the characters contained in the URL address.
Optionally, the second obtaining module includes:
and the third obtaining sub-module is configured to determine the page number of the current display page according to the display style of the page number of the page contained in the paging control code of the current display page.
Optionally, the gesture operation instruction includes a leftward sliding operation instruction and a rightward sliding operation instruction, the leftward sliding operation instruction is used to trigger turning back a page, and the rightward sliding operation instruction is used to trigger turning forward a page.
The gesture operation instructions comprise an upward sliding operation instruction and a downward sliding operation instruction, the upward sliding operation instruction is used for triggering backward page turning, and the downward sliding operation instruction is used for triggering forward page turning.
According to a third aspect of the embodiments of the present disclosure, there is provided a processing apparatus for automatically turning pages of a browser, including:
a memory;
a memory configured to store processor-executable instructions;
wherein the processor is configured to:
acquiring a paging control code of a current display page of a browser;
receiving a gesture operation instruction input by a user on the current display page, wherein the gesture operation instruction is used for triggering page turning;
and controlling the current display page to jump to the display page corresponding to the gesture operation instruction according to the gesture operation instruction and the paging control code of the current display page.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the terminal device obtains the paging control code of the current display page of the browser, receives a gesture operation instruction input by a user on the current display page, the gesture operation instruction is used for triggering page turning, and then controls the current display page to jump to the display page corresponding to the gesture operation instruction according to the gesture operation instruction and the paging control code of the current display page. According to the method, a user can turn pages only by inputting a gesture operation instruction on the current display page, so that the method is convenient for the user to use.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow diagram illustrating a method for automatic page turning of a browser, according to an exemplary embodiment.
FIG. 2 is a flow diagram illustrating a method for automatic page turning of a browser, according to an exemplary embodiment.
FIG. 3 is a flow diagram illustrating a method for automatic page turning of a browser, according to an exemplary embodiment.
FIG. 4 is a flow diagram illustrating a method for automatic page turning of a browser, according to an exemplary embodiment.
FIG. 5 is a block diagram illustrating a processing device for automatically paging a browser, according to an example embodiment.
FIG. 6 is a block diagram illustrating a processing device for automatically paging a browser, according to an example embodiment.
FIG. 7 is a block diagram illustrating a processing device for automatically paging a browser, according to an example embodiment.
FIG. 8 is a block diagram illustrating a processing device for automatically paging a browser, according to an example embodiment.
FIG. 9 is a block diagram illustrating a processing device for automatically paging a browser, according to an example embodiment.
FIG. 10 is a block diagram illustrating a processing device for automatically paging a browser, according to an example embodiment.
FIG. 11 is a block diagram illustrating an entity of a processing device for automatically paging a browser according to an exemplary embodiment.
FIG. 12 is a block diagram illustrating an apparatus of a processing apparatus for automatically paging a browser, according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a browser automatic page turning processing method, which is used in a mobile terminal according to an exemplary embodiment, and the browser automatic page turning processing method, as shown in fig. 1, includes the following steps.
In step S101, the page control code of the currently displayed page of the browser is acquired.
The web page needs to be read by a browser, a source file of the web page generally stores a paging control code of the web page, and the paging control code is used for controlling paging operation of the web page, namely, displaying a previous page, a next page or an ith page of the current page to a user according to operation of the user.
In step S102, a gesture operation instruction input by a user on a currently displayed page is received, where the gesture operation instruction is used to trigger page turning.
When a user browses a webpage through a browser, if a page turning operation is required, the user can execute a corresponding gesture operation on a current display page to turn the page, the gesture operation instruction can be a sliding operation instruction, optionally, the sliding operation instruction comprises a leftward sliding operation instruction and a rightward sliding operation instruction, the leftward sliding operation instruction is used for triggering backward turning of the page, and the rightward sliding operation instruction is used for triggering forward turning of the page. Or, optionally, the sliding operation instruction includes an upward sliding operation instruction and a downward sliding operation instruction, the upward sliding operation instruction is used for triggering page turning backward, and the downward sliding operation instruction is used for triggering page turning forward.
The gesture operation instruction can also be a click operation instruction, and the click operation instruction can be a single click or double click operation in a preset area of a currently displayed page, for example, the click operation instruction includes an operation instruction for clicking a left screen of the terminal device and an operation instruction for clicking a right screen of the terminal device, the operation instruction for clicking the left screen of the terminal device is used for triggering forward page turning, and the operation instruction for clicking the right screen of the terminal device is used for triggering backward page turning. Or the click operation instruction comprises an operation instruction for clicking a screen on the upper side of the terminal device and an operation instruction for clicking a screen on the lower side of the terminal device, the operation instruction for clicking the screen on the upper side of the terminal device is used for triggering page turning forwards, and the operation instruction for clicking the screen on the lower side of the terminal device is used for triggering page turning backwards.
In step S103, the current display page is controlled to jump to the display page corresponding to the gesture operation instruction according to the gesture operation instruction and the page control code of the current display page.
The gesture operation instruction can trigger page turning operation, the terminal device triggers the paging control code to execute page skipping operation according to the gesture operation instruction, and the paging control code controls the page to skip from the current display page to the display page corresponding to the gesture operation instruction.
For example, when the gesture operation instruction is a leftward sliding operation instruction, the terminal device controls the page to jump from the current display page to the next page through the paging control code, and when the gesture operation instruction is a rightward sliding operation instruction, the terminal device controls the page to jump from the current display page to the previous page through the paging control code. Or when the gesture operation instruction is a downward sliding operation instruction, the terminal device controls the page to jump from the current display page to the previous page through the paging control code, and when the gesture operation instruction is an upward sliding operation instruction, the terminal device controls the page to jump from the current display page to the next page through the paging control code. Or when the gesture operation instruction is an operation instruction for clicking the screen on the left side of the terminal device, the terminal device controls the page to jump from the current display page to the previous page through the paging control code, and when the gesture operation instruction is an operation instruction for clicking the screen on the right side of the terminal device, the terminal device controls the page to jump from the current display page to the next page through the paging control code. Or when the gesture operation instruction is an operation instruction for clicking the upper side screen of the terminal device, the terminal device controls the page to jump from the current display page to the previous page through the paging control code, and when the gesture operation instruction is an operation instruction for clicking the lower side screen of the terminal device, the terminal device controls the page to jump from the current display page to the next page through the paging control code.
According to the method, the terminal device obtains the paging control code of the current display page of the browser, receives the gesture operation instruction input by the user on the current display page, and then controls the current display page to jump to the display page corresponding to the gesture operation instruction according to the gesture operation instruction and the paging control code of the current display page. According to the method, a user can turn pages only by inputting a gesture operation instruction on the current display page, so that the method is convenient for the user to use.
Fig. 2 is a flowchart illustrating a processing method for automatically turning pages of a browser according to an exemplary embodiment, where as shown in fig. 2, the method of the present embodiment includes the following steps.
In step S201, the page control code of the currently displayed page of the browser is acquired.
In step S202, a gesture operation instruction input by a user on a currently displayed page is received, where the gesture operation instruction is used to trigger page turning.
In step S203, a page turning operation corresponding to the gesture operation instruction is determined according to the gesture operation instruction.
For example, if the sliding operation instruction is a leftward sliding operation instruction, the terminal device determines that the page turning operation corresponding to the gesture operation instruction is that 1 is added to the page number of the currently displayed page; and if the sliding operation instruction is a rightward sliding operation instruction, the terminal equipment determines that the page turning operation corresponding to the gesture operation instruction is that the page number of the current display page is increased by 1. Or if the sliding operation instruction is a downward sliding operation instruction, the terminal device determines that the page turning operation corresponding to the gesture operation instruction is that the page number of the currently displayed page is reduced by 1; and if the sliding operation instruction is an upward sliding operation instruction, the terminal equipment determines that the page turning operation corresponding to the gesture operation instruction is that the page number of the current display page is increased by 1.
In step S204, according to the page turning operation corresponding to the gesture operation instruction, a page turning button or a hyperlink in the paging control code of the current display page is controlled to perform a page jump, and the display page corresponding to the gesture operation instruction is jumped to.
The method includes the steps that a current display page comprises a page with a previous page and a next page of operation buttons, correspondingly, a previous page, a next page and similar characters are also included in a paging control code of the current display page, after the paging control code of the current display page is obtained by a terminal device, the previous page or the next page and the similar characters are identified in the paging control code, a page turning operation corresponding to a gesture operation instruction is determined, namely the page turning operation is turned forward or backward, after the page turning operation is determined, a page turning button or a hyperlink in the paging control code of the current display page is triggered to carry out webpage skipping, and the display page on a browser can skip from the current display page to the display page corresponding to the gesture operation instruction. The display character strings of the page turning buttons or hyperlinks in the paging control codes in this embodiment are, for example:
display character string of the previous page: "previous page", "PREV", "PREV", "previous page", "< < …
Display character string of next page: "Next Page", "NEXT", "Next Page", "phi > …
The terminal equipment collects and arranges a display character string set corresponding to the page turning button or the hyperlink in advance, then matches a character string contained in the paging control code of the current display page with the display character string set corresponding to the page turning button or the hyperlink collected and arranged in advance, identifies the display character string corresponding to the page turning button or the hyperlink in the paging control code of the current display page, and then triggers the page turning button or the hyperlink to skip the page.
According to the method, the terminal device determines the page turning operation corresponding to the gesture operation instruction according to the gesture operation instruction, controls the page turning button or hyperlink in the paging control code of the current display page to perform webpage skipping according to the page turning operation corresponding to the gesture operation instruction, and skips to the display page corresponding to the gesture operation instruction. According to the method, a user can turn pages only by inputting a gesture operation instruction on the current display page, so that the method is convenient for the user to use.
Fig. 3 is a flowchart illustrating a processing method for automatically turning pages of a browser according to an exemplary embodiment, where as shown in fig. 3, the method of the present embodiment includes the following steps.
In step S301, the page control code of the currently displayed page of the browser is acquired.
In step S302, the page number of the currently displayed page is acquired.
In one implementation, a terminal device obtains a Uniform Resource Locator (URL) address of a current display page, and identifies a page number of the current display page from characters included in the URL address. The characters that generally describe the page number of a page are "p" and "page", for example, the URL of the currently displayed page is http:// www.newsmth.net/nForum/./1597537? If p is 2, the value 2 of the character p in the URL is the page number of the currently displayed page, that is, the page number of the currently displayed page is 2.
In another implementation manner, the page number of the currently displayed page is determined according to the display style of the page number of the page included in the paging control code of the currently displayed page. The page number of the currently displayed page in the webpage is generally different from the color, background color, font and the like of the page numbers of other pages, and the page number of the currently displayed page can be identified by comparing the display patterns among the page numbers.
In step S303, a gesture operation instruction input by a user on the currently displayed page is received, where the gesture operation instruction is used to trigger page turning.
In step S304, the page number of the display page corresponding to the gesture operation instruction is determined according to the gesture operation instruction and the page number of the current display page.
The scenario used in this embodiment is that the current display page includes a digital paging button, for example, the paging button adopts the following template: digital paging, total page number, and accordingly, the paging control code of the currently displayed page also includes the characters of the digital paging. Therefore, in this embodiment, it is further required to obtain a page number of the current display page, and further determine the page number of the page corresponding to the gesture operation instruction according to the gesture operation instruction and the page number of the current display page, for example, the page number of the current display page is 5, and the gesture operation instruction is a leftward sliding operation instruction, then the page number of the display page corresponding to the gesture operation instruction is 6, and if the gesture operation instruction is a rightward sliding operation instruction, then the page number of the display page corresponding to the gesture operation instruction is 4.
In step S305, according to the page number of the display page corresponding to the gesture operation instruction, the page number of the display page corresponding to the gesture operation instruction included in the paging control code of the current display page is controlled to perform a webpage jump, and the display page corresponding to the gesture operation instruction is jumped to.
In this embodiment, the page number of each displayed page is included in the paging control code, for example, the current page is located in a webpage having 10 pages, and then the paging control code includes 10 pages, for example, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, where each page number corresponds to one hyperlink. Assuming that the page number of the display page corresponding to the gesture operation instruction is 6, the terminal device controls the page number of the 6 th page included in the paging control code of the current display page (the 5 th page) to perform the webpage jump, and the webpage jumps to the 6 th page.
According to the method, the terminal device obtains the page number of the current display page, determines the page number of the display page corresponding to the gesture operation instruction according to the gesture operation instruction and the page number of the current display page, and controls the page number of the display page corresponding to the gesture operation instruction included in the paging control code of the current display page to perform webpage skipping to the display page corresponding to the gesture operation instruction according to the page number of the display page corresponding to the gesture operation instruction. According to the method, a user can turn pages only by inputting a gesture operation instruction on the current display page, so that the method is convenient for the user to use.
Fig. 4 is a flowchart illustrating a processing method for automatically turning pages of a browser according to an exemplary embodiment, where as shown in fig. 4, the method of the present embodiment includes the following steps.
In step S401, an html source file of the current display page is acquired.
Each web page has a corresponding html source file, which is an uncompiled text code or a whole source code file of a web site, and is a series of human-readable computer language instructions. For each web page, it is actually composed of a large heap of source code that is translated into what the user sees (e.g., a hundred degree home page) by a browser (e.g., Microsoft's IE browser, Google's Chrome browser, etc.) or a server.
In step S402, matching the pre-obtained pagination display template set with the html source file of the current display page, and identifying the pagination control code of the current display page from the html source file of the current display page, where the pagination display template set includes at least two pagination display templates for controlling pagination.
The terminal device collects the paging display templates of the arranged web pages in advance, and common paging display templates comprise the following types:
template 1: previous page and next page
Template 2: previous page, digital paging, next page
Template 3: digital paging
And (4) template: digital page division, total page count
Wherein: the display character strings of the previous page and the next page of the same pagination display template need to correspond, for example: "upper page" - "lower page", "PREV" - "NEXT", "preceding page" - "succeeding page", "<" - ">".
The terminal equipment identifies the paging control code of the current display page from the html source file of the current display page by matching the display character of each paging display template in the paging display template set with the character included in the html source file of the current display page.
In step S403, a gesture operation instruction input by a user on the currently displayed page is received, where the gesture operation instruction is used to trigger page turning.
In step S404, the current display page is controlled to jump to the display page corresponding to the gesture operation instruction according to the gesture operation instruction and the page control code of the current display page.
In the method of the embodiment, the terminal device acquires an html source file of a current display page, matches a pre-acquired paging display template set with the html source file of the current display page, and identifies a paging control code of the current display page from the html source file of the current display page.
FIG. 5 is a block diagram illustrating a processing device for automatically paging a browser, according to an example embodiment. Referring to fig. 5, the apparatus includes: a first obtaining module 11, a receiving module 12 and a page turning control module 13.
The first obtaining module 11 is configured to obtain a paging control code of a currently displayed page of the browser;
the receiving module 12 is configured to receive a gesture operation instruction input by a user on the current display page, wherein the gesture operation instruction is used for triggering page turning;
and the page turning control module 13 is configured to control the current display page to jump to the display page corresponding to the gesture operation instruction according to the gesture operation instruction and the paging control code of the current display page.
Optionally, the gesture operation instruction includes a leftward sliding operation instruction and a rightward sliding operation instruction, the leftward sliding operation instruction is used to trigger turning back a page, and the rightward sliding operation instruction is used to trigger turning forward a page. Or the gesture operation instruction comprises an upward sliding operation instruction and a downward sliding operation instruction, the upward sliding operation instruction is used for triggering backward page turning, and the downward sliding operation instruction is used for triggering forward page turning.
FIG. 6 is a block diagram illustrating a processing device for automatically paging a browser, according to an example embodiment. As shown in fig. 6, in the apparatus of the present embodiment, based on the apparatus shown in fig. 5, the page turning control module 13 includes:
the first determining submodule 131 is configured to determine, according to the gesture operation instruction, a page turning operation corresponding to the gesture operation instruction;
the first control sub-module 132 is configured to control a page turning button or a hyperlink in the paging control code of the current display page to perform a webpage jump according to a page turning operation corresponding to the gesture operation instruction, and jump to the display page corresponding to the gesture operation instruction.
FIG. 7 is a block diagram illustrating a processing device for automatically paging a browser, according to an example embodiment. As shown in fig. 7, the apparatus of the present embodiment is based on the apparatus shown in fig. 5, and the apparatus further includes:
a second obtaining module 14 configured to obtain a page number of the currently displayed page;
the page turning control module 13 includes:
the second determining submodule 133 is configured to determine, according to the gesture operation instruction and the page number of the current display page, the page number of the display page corresponding to the gesture operation instruction;
the second control submodule 134 is configured to control, according to the page number of the display page corresponding to the gesture operation instruction, the page number of the display page corresponding to the gesture operation instruction included in the paging control code of the current display page to perform a webpage jump, and jump to the display page corresponding to the gesture operation instruction.
FIG. 8 is a block diagram illustrating a processing device for automatically paging a browser, according to an example embodiment. As shown in fig. 8, on the basis of the apparatus shown in fig. 5, the first obtaining module 11 includes:
a first obtaining sub-module 111 configured to obtain a html source file of the hypertext markup language of the current display page;
the first identifying sub-module 112 is configured to match a pre-obtained pagination display template set with the html source file of the current display page, and identify the pagination control code of the current display page from the html source file of the current display page, where the pagination display template set includes at least two pagination display templates for controlling pagination.
FIG. 9 is a block diagram illustrating a processing device for automatically paging a browser, according to an example embodiment. As shown in fig. 9, on the basis of the apparatus shown in fig. 7, the second obtaining module 14 includes:
a second obtaining submodule 141 configured to obtain a uniform locator URL address of the current display page;
and a second identifying submodule 142 configured to identify the page number of the currently displayed page from the characters included in the URL address.
FIG. 10 is a block diagram illustrating a processing device for automatically paging a browser, according to an example embodiment. As shown in fig. 10, on the basis of the apparatus shown in fig. 7, the second obtaining module 14 includes:
the third obtaining sub-module 143 is configured to determine the page number of the currently displayed page according to the display style of the page number of the page included in the paging control code of the currently displayed page.
With regard to the processing apparatus for automatically turning pages of a browser in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment related to the method, and will not be described in detail herein, it should be noted that each module included in the above embodiment may be combined or replaced as long as it is not mutually inconsistent.
Fig. 11 is a block diagram illustrating an entity of a processing apparatus for automatically paging a browser according to an exemplary embodiment, where, as shown in fig. 11, the processing apparatus 200 for automatically paging a browser includes: a processor 21 and a memory 22 for storing instructions executable by the processor 21, the memory 22 being coupled to and in communication with the processor 21 via a system bus.
Wherein the processor 21 is configured to:
acquiring a paging control code of a current display page of a browser;
receiving a gesture operation instruction input by a user on the current display page, wherein the gesture operation instruction is used for triggering page turning;
and controlling the current display page to jump to the display page corresponding to the gesture operation instruction according to the gesture operation instruction and the paging control code of the current display page.
In the physical embodiment of the Processing apparatus for automatically turning pages of a browser, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), and the like. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor, and the aforementioned memory may be a read-only memory (ROM), a Random Access Memory (RAM), a flash memory, a hard disk, or a solid state disk. The steps of a method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
FIG. 12 is a block diagram illustrating an apparatus of a processing apparatus for automatically paging a browser, according to an example embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 12, the apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 806 provides power to the various components of device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of the components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or a component of the apparatus 800, the presence or absence of user contact with the apparatus 800, orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the processing method of the browser automatic page turning as described in the embodiments of fig. 1 to 4.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions in the storage medium, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the processing method for automatically turning pages of a browser as described in the embodiments of fig. 1 to 4.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (15)

1. A processing method for automatically turning pages of a browser is characterized by comprising the following steps:
acquiring a paging control code of a current display page of a browser;
receiving a gesture operation instruction input by a user on the current display page, wherein the gesture operation instruction is used for triggering page turning;
controlling the current display page to jump to a display page corresponding to the gesture operation instruction according to the gesture operation instruction and the paging control code of the current display page;
the method further comprises the following steps:
acquiring the page number of the current display page;
the step of controlling the current display page to jump to the display page corresponding to the gesture operation instruction according to the gesture operation instruction and the paging control code of the current display page includes:
determining the page number of the display page corresponding to the gesture operation instruction according to the gesture operation instruction and the page number of the current display page;
and controlling the page number of the display page corresponding to the gesture operation instruction in the page control code of the current display page to jump to the display page corresponding to the gesture operation instruction according to the page number of the display page corresponding to the gesture operation instruction.
2. The method according to claim 1, wherein the controlling, according to the gesture operation instruction and the paging control code of the current display page, the current display page to jump to the display page corresponding to the gesture operation instruction comprises:
determining page turning operation corresponding to the gesture operation instruction according to the gesture operation instruction;
and controlling a page turning button or hyperlink in the paging control code of the current display page to perform webpage skipping according to the page turning operation corresponding to the gesture operation instruction, and skipping to the display page corresponding to the gesture operation instruction.
3. The method of claim 1 or 2, wherein the obtaining of the paging control code of the currently displayed page of the browser comprises:
acquiring a hypertext markup language html source file of the current display page;
matching a page display template set obtained in advance with an html source file of the current display page, and identifying page control codes of the current display page from the html source file of the current display page, wherein the page display template set comprises at least two page display templates for controlling pages.
4. The method of claim 1, wherein the obtaining the page number of the currently displayed page comprises:
and acquiring a uniform locator (URL) address of the current display page, and identifying the page number of the current display page from characters contained in the URL address.
5. The method of claim 1, wherein the obtaining the page number of the currently displayed page comprises:
and determining the page number of the current display page according to the display style of the page number of the page contained in the paging control code of the current display page.
6. The method according to claim 1, wherein the gesture operation instruction comprises a leftward sliding operation instruction and a rightward sliding operation instruction, the leftward sliding operation instruction is used for triggering page turning backwards, and the rightward sliding operation instruction is used for triggering page turning forwards.
7. The method according to claim 1, wherein the gesture operation instruction comprises an upward sliding operation instruction and a downward sliding operation instruction, the upward sliding operation instruction is used for triggering page turning backwards, and the downward sliding operation instruction is used for triggering page turning forwards.
8. A device for automatically turning pages of a browser, comprising:
the browser comprises a first acquisition module, a second acquisition module and a display module, wherein the first acquisition module is configured to acquire a paging control code of a current display page of the browser;
the receiving module is configured to receive a gesture operation instruction input by a user on the current display page, and the gesture operation instruction is used for triggering page turning;
the page turning control module is configured to control the current display page to jump to a display page corresponding to the gesture operation instruction according to the gesture operation instruction and the paging control code of the current display page;
the device further comprises:
the second acquisition module is configured to acquire the page number of the current display page;
the page turning control module further comprises:
the second determining submodule is configured to determine the page number of the display page corresponding to the gesture operation instruction according to the gesture operation instruction and the page number of the current display page;
and the second control submodule is configured to control the page number of the display page corresponding to the gesture operation instruction included in the paging control code of the current display page to perform webpage skipping according to the page number of the display page corresponding to the gesture operation instruction, and skip to the display page corresponding to the gesture operation instruction.
9. The apparatus of claim 8, wherein the page flip control module comprises:
the first determining submodule is configured to determine page turning operation corresponding to the gesture operation instruction according to the gesture operation instruction;
and the first control submodule is configured to control a page turning button or hyperlink in the paging control code of the current display page to perform webpage skipping according to the page turning operation corresponding to the gesture operation instruction, and skip to the display page corresponding to the gesture operation instruction.
10. The apparatus of claim 8 or 9, wherein the first obtaining module comprises:
a first obtaining sub-module configured to obtain a hypertext markup language html source file of the current display page;
the first identification submodule is configured to match a paging display template set obtained in advance with an html source file of the current display page, identify paging control codes of the current display page from the html source file of the current display page, and the paging display template set comprises at least two paging display templates for controlling paging.
11. The apparatus of claim 8, wherein the second obtaining module comprises:
a second obtaining submodule configured to obtain a uniform locator URL address of the current display page;
and the second identification submodule is configured to identify the page number of the current display page from the characters contained in the URL address.
12. The apparatus of claim 8, wherein the second obtaining module comprises:
and the third obtaining sub-module is configured to determine the page number of the current display page according to the display style of the page number of the page contained in the paging control code of the current display page.
13. The device according to claim 8, wherein the gesture operation instruction comprises a leftward sliding operation instruction and a rightward sliding operation instruction, the leftward sliding operation instruction is used for triggering page turning backwards, and the rightward sliding operation instruction is used for triggering page turning forwards.
14. The device according to claim 8, wherein the gesture operation instruction comprises an upward sliding operation instruction and a downward sliding operation instruction, the upward sliding operation instruction is used for triggering page turning backwards, and the downward sliding operation instruction is used for triggering page turning forwards.
15. A device for automatically turning pages of a browser, comprising:
a memory;
a memory configured to store processor-executable instructions;
wherein the processor is configured to perform the method of any of claims 1 to 7.
CN201510897945.2A 2015-12-08 2015-12-08 Method and device for processing automatic page turning of browser Active CN105786944B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510897945.2A CN105786944B (en) 2015-12-08 2015-12-08 Method and device for processing automatic page turning of browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510897945.2A CN105786944B (en) 2015-12-08 2015-12-08 Method and device for processing automatic page turning of browser

Publications (2)

Publication Number Publication Date
CN105786944A CN105786944A (en) 2016-07-20
CN105786944B true CN105786944B (en) 2020-03-17

Family

ID=56389899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510897945.2A Active CN105786944B (en) 2015-12-08 2015-12-08 Method and device for processing automatic page turning of browser

Country Status (1)

Country Link
CN (1) CN105786944B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106527954B (en) * 2016-11-28 2020-07-03 北京小米移动软件有限公司 Equipment control method and device and mobile terminal
CN106775394B8 (en) * 2016-12-09 2018-05-01 掌阅科技股份有限公司 Content revealing method, device and electronic equipment, storage medium
CN107256255B (en) * 2017-06-09 2021-01-29 携程旅游网络技术(上海)有限公司 Page browsing method and system
CN109508132A (en) * 2017-09-15 2019-03-22 阿里巴巴集团控股有限公司 The method, apparatus and electronic equipment of page info are provided
CN107734144A (en) * 2017-09-19 2018-02-23 捷开通讯(深圳)有限公司 Intelligent terminal and its automatic page turning method, the device with store function
CN108446061A (en) * 2018-02-13 2018-08-24 广州视源电子科技股份有限公司 page turning method, device, terminal device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1475962A (en) * 2002-08-12 2004-02-18 ���ǵ�����ʽ���� Device and method used for personal infomation terminal leafing
CN101685343A (en) * 2008-09-26 2010-03-31 联想(北京)有限公司 Method, device and electronic aid for realizing gesture identification
CN102043560A (en) * 2009-10-20 2011-05-04 腾讯科技(深圳)有限公司 Method and device for realizing electronic document page turning
CN102929846A (en) * 2012-10-26 2013-02-13 北京小米科技有限责任公司 Method and device for processing long text

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101613838B1 (en) * 2009-05-19 2016-05-02 삼성전자주식회사 Home Screen Display Method And Apparatus For Portable Device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1475962A (en) * 2002-08-12 2004-02-18 ���ǵ�����ʽ���� Device and method used for personal infomation terminal leafing
CN101685343A (en) * 2008-09-26 2010-03-31 联想(北京)有限公司 Method, device and electronic aid for realizing gesture identification
CN102043560A (en) * 2009-10-20 2011-05-04 腾讯科技(深圳)有限公司 Method and device for realizing electronic document page turning
CN102929846A (en) * 2012-10-26 2013-02-13 北京小米科技有限责任公司 Method and device for processing long text

Also Published As

Publication number Publication date
CN105786944A (en) 2016-07-20

Similar Documents

Publication Publication Date Title
CN105786944B (en) Method and device for processing automatic page turning of browser
CN109032606B (en) Native application compiling method and device and terminal
EP2924591A1 (en) Method and device for controlling page rollback
CN104834559B (en) Notification message display method and device
EP3232340A1 (en) Method for operating a display device and display device for displaying pages of an application program
EP3316527A1 (en) Method and device for managing notification messages
EP3128411B1 (en) Interface display method, terminal, computer program and recording medium
CN107423106B (en) Method and apparatus for supporting multi-frame syntax
CN107193606B (en) Application distribution method and device
CN107203398B (en) Application distribution method and device
CN104317402B (en) Description information display method and device and electronic equipment
CN109063101B (en) Video cover generation method and device
CN107562349B (en) Method and device for executing processing
CN105511777B (en) Session display method and device on touch display screen
CN110704053B (en) Style information processing method and device
CN117390330A (en) Webpage access method and device
CN110413169B (en) Information display method, device and medium
CN112948704B (en) Model training method and device for information recommendation, electronic equipment and medium
CN111814088A (en) Page processing method and device
CN106775210B (en) Wallpaper changing method and device
CN105808304B (en) Code deployment method, device and system
CN108984098B (en) Information display control method and device based on social software
CN107179837B (en) Input method and device
CN106940653B (en) Method, apparatus and computer-readable storage medium for controlling application program
CN106919302B (en) Operation control method and device of mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant