The method and system of touch-type mobile terminal browser automatic page turningTechnical field:
The present invention relates to mobile communication technology, the method and system of particularly a kind of touch-type mobile terminal browser automatic page turning.
Background technology:
Along with the development of mobile communication technology and with the fusion day by day of the Internet, become universal day by day by portable terminal browsing pages such as mobile phones.Present mobile phone user webpage is realized by browser or third party's browser of embedded in mobile phone mostly, because the restriction of mobile phone screen size, can't on a screen, show a large amount of literal, when will be the time, must carry out paging to webpage and handle at the whole webpage of handset displays.The user browse must through repeatedly page turning could be complete read one piece of article.Because mobile network's speed is relatively slow, the each page turning of user all needs the wait process through the long period, expends time in very much.
At present, have the browser of reading function in advance and be applied in the reality, the content of one page was saved in the buffer memory under browser can be discerned and load when showing current page, when user's page turning, browser directly reads the page in the buffer memory, thereby improves access speed.
Yet in the prior art, the cellphone subscriber must could realize page turning by the literal link of clicking page turning, for touch-type mobile terminal equipment, when the user clicks the literal link, often maloperation occurs owing to can not accurately locating.
Summary of the invention:
The objective of the invention is shortcoming,, provide a kind of more perfect technical solution especially to the method and system of touch-type mobile terminal browser automatic page turning for the method and system that overcomes existing browser page turning.
The invention provides the method for a kind of touch-type mobile terminal browser automatic page turning, comprising:
The distance of the pulling page reaches the distance that browser is set;
When the described page has when reading content in advance and supporting to read function in advance, open and read the page in advance.
The method of above-mentioned automatic page turning also comprises:
When the distance of the described pulling page do not reach that browser sets apart from the time, described browser is not operated.
The method of above-mentioned automatic page turning also comprises:
When the described page does not have when perhaps not supporting to read function in advance in reading in advance, described browser is not operated.
The present invention also provides the system of a kind of touch-type mobile terminal browser automatic page turning, comprising:
Page response unit: be used to respond the action of the pulling page, and calculate the pull distance of the page;
Read judging unit in advance: when the pull distance of the described page reach that browser sets apart from the time, judge whether the described page has to read content in advance and support to read in advance function;
Read display unit in advance:, open and read the page in advance when the described page has when reading content in advance and supporting to read function in advance.
Wherein, the pull distance of the page that calculates when described page response unit do not reach that browser sets apart from the time, described browser is not operated.
Wherein, when the described described page of judgment unit judges of reading does not in advance have when perhaps not supporting to read function in advance in reading in advance, described browser is not operated.
By the present invention, when user capture had the page of reading function in advance, the user can open by the bounce-back effect of pulling page bottom and read the page in advance, has reduced the operation of user's button click, for the user provides more convenient, intelligent reading experience.
Description of drawings:
Fig. 1 is the synoptic diagram of the system of touch-type mobile terminal browser automatic page turning;
Fig. 2 is the process flow diagram of the method for touch-type mobile terminal browser automatic page turning.
Embodiment:
Describe the specific embodiment of the present invention in detail below in conjunction with accompanying drawing.
Fig. 1 shows the synoptic diagram of the system of touch-type mobile terminal browser automatic page turning.As shown in Figure 1, the system of touch-type mobile terminal browser automatic page turning comprises:page response unit 1, and readjudging unit 2 in advance and readdisplay unit 3 in advance.Page response unit 1 is readjudging unit 2 in advance and is readdisplay unit 3 in advance, and data interface unit 4 is connected bydata bus 6 with CPU5.CPU5 is bydata bus 6 controlpage response unit 1, the operation ofreading judging unit 2 in advance andreading display unit 3 in advance.The system of touch-type mobile terminal browser automatic page turning connects mobile terminal device by data interface unit 4.
Page response unit 1 is used to respond the action of the pulling page, when spurring the page on the screen page of user at portable terminal, calculates the pull distance of the page.
Readjudging unit 2 in advance and be used to judge whether the described page has reads content in advance and support to read in advance function.The pull distance of the page that calculates when describedpage response unit 1 reach browser predefined apart from the time, readjudging unit 2 in advance and start working; The pull distance of the page that calculates when describedpage response unit 1 do not reach browser predefined apart from the time, described browser does not carry out any operation.The concrete numerical value of the predefined distance of this browser can be the arbitrary numerical value by developer's setting of browser.For example, when the developer of browser is set at 20px with pull distance, describedpage response unit 1 can convert according to the physical size of the screen of the portable terminal pull distance to the page, when the pull distance of the described page that calculates when describedpage response unit 1 reaches 20px, readjudging unit 2 in advance and start working.
Readingdisplay unit 3 in advance is used to open and reads the page in advance.Judge that the current page of browsing has and read content in advance and when supporting to read function in advance, readdisplay unit 3 in advance and start working when the describedjudging unit 2 read in advance, open the next page of reading in advance; Judge that when the describedjudging unit 2 read in advance the current page of browsing does not have when perhaps not supporting to read function in advance in reading in advance, described browser does not carry out any operation.
Fig. 2 shows the process flow diagram of the method for touch-type mobile terminal browser automatic page turning.As shown in Figure 2, in step S1, the user spurs the page on the screen page of portable terminal, has started the program of touch-type mobile terminal browser automatic page turning.In step S2, described browser response user spurs the action of the page, calculates the pull distance of the page, judges whether this distance reaches the distance that described browser is set.When described pulling page distance do not reach that browser sets apart from the time (step S2: not), described browser does not carry out any operation.
When described pulling page distance reach that browser sets apart from the time (step S2: be), execution in step S3, browser judge whether the current page of browsing has and read content in advance.When judging that the current page of browsing does not have when reading content in advance that (step S3: not), described browser does not carry out any operation.
When judging that the current page of browsing has (step S3: be) when reading content in advance, execution in step S4, browser judge whether the current page of browsing supports to read in advance function.(step S4: not), described browser does not carry out any operation when judging that the current page of browsing is not supported to read function in advance.
When judging that the current page support of browsing is read function in advance (step S4: be), execution in step S5 opens the next page of reading in advance.
By the present invention, when user capture had the page of reading function in advance, the user can open by the bounce-back effect of pulling page bottom and read the page in advance, has reduced the operation of user's button click, for the user provides more convenient, intelligent reading experience.
Aforesaid detailed description and accompanying drawing are undertaken by literal interpretation and diagram, and its purpose does not lie in the protection domain that limits claim.Each mutation of embodiment in this instructions is apparent for those of ordinary skill, and is in the protection domain of claim and equivalent technologies thereof.