CN105094627B - Browser page control method and device - Google Patents

Browser page control method and device Download PDF

Info

Publication number
CN105094627B
CN105094627B CN201510409591.2A CN201510409591A CN105094627B CN 105094627 B CN105094627 B CN 105094627B CN 201510409591 A CN201510409591 A CN 201510409591A CN 105094627 B CN105094627 B CN 105094627B
Authority
CN
China
Prior art keywords
target pages
page
address information
slide
sliding distance
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
CN201510409591.2A
Other languages
Chinese (zh)
Other versions
CN105094627A (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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
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 Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201510409591.2A priority Critical patent/CN105094627B/en
Publication of CN105094627A publication Critical patent/CN105094627A/en
Application granted granted Critical
Publication of CN105094627B publication Critical patent/CN105094627B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The invention provides a method and a device for controlling a browser page. Wherein, the method comprises the following steps: receiving a sliding operation input by a user in a current page of a browser, and determining the sliding direction of the sliding operation; determining a switching instruction corresponding to the sliding operation according to the sliding direction and a corresponding relation between the sliding direction and the switching instruction which is stored in advance, and acquiring first address information of a target page according to the switching instruction and a current page; acquiring a first sliding distance corresponding to the sliding operation, and judging whether the first sliding distance exceeds a first preset threshold value; and if the first sliding distance exceeds a first preset threshold value, loading a preview page containing the thumbnail of the target page based on the acquired first address information. According to the control method of the browser page, the user can preview the page to be switched to, consumption of network resources is reduced, the user can conveniently control the mobile terminal through gestures, and interaction experience between the user and the mobile terminal is improved.

Description

The control method and device of browser page
Technical field
The present invention relates to mobile internet technical field more particularly to a kind of control method and device of browser page.
Background technology
With the continuous development in mobile Internet epoch, the function of mobile terminal such as smart mobile phone the next powerful, user The application program of various functions can be installed in the terminal according to demand, mobile terminal has become people's live and work A part.
The advantage of mobile terminal is to surf the Internet convenient and efficient, is not influenced by time zone, can surfed the Internet whenever and wherever possible. For example, user can be surfed the Internet by the mobile phone browser in smart mobile phone, during user browses webpage, user can pass through hand Switch between " advance " or " retrogressing " button progress webpage that either upper right corner provides of the machine browser upper left corner.
However, with the extension in large-screen mobile phone market, mobile phone screen constantly increases.In user's one-handed performance large-screen mobile phone In the process, if user needs to switch over the webpage of browsing, since screen is larger, it is most upper that user's one hand is not easy Touch Screen Side or bottom, this causes, and handover operation is inconvenient, efficiency is low, can not realize being switched fast between the page.In addition, passing through " advance " either browser is loaded directly into " advancing " or " retrogressing " button is corresponding during " retrogressing " button switching webpage Webpage, if the user find that do not have to need the web page contents checked comprising oneself in webpage after advancing or retreating, at this point, with Family needs that webpage is switched to current page by " advance " or " retrogressing " button again, in the process for toggling webpage, disappears A large amount of Internet resources have been consumed, have affected the interactive experience between user and terminal.
Invention content
The present invention is directed to solve at least some of the technical problems in related technologies.For this purpose, the present invention First purpose be to propose a kind of control method of browser page, and this method causes what user can will be switched to preview The page reduces the consumption of Internet resources, facilitates user and mobile terminal is controlled by gesture, improves user with moving Interactive experience between dynamic terminal.
Second object of the present invention is to propose a kind of control device of browser page.
To achieve the above object, first aspect present invention embodiment proposes a kind of control method of browser page, packet It includes:The slide that user inputs in the current page of browser is received, and determines the glide direction of the slide;Root Determine that the slide is corresponding with the correspondence of switching command according to the glide direction and the glide direction pre-saved Switching command, and according to the first address information of the switching command and current page acquisition target pages;Described in acquisition Corresponding first sliding distance of slide, and judge first sliding distance whether more than the first predetermined threshold value;If institute The first sliding distance is stated more than first predetermined threshold value, then first address information based on acquisition, loading includes described The preview page of the thumbnail of target pages.
Optionally, first address information based on acquisition, thumbnail of the loading comprising the target pages Preview page, including:The first address information of the target pages is sent to server, and receives the institute that the server returns State the second address information of the thumbnail of target pages and according to second address information by the breviary of the target pages Figure is loaded onto in the preview page, user to be facilitated to check the thumbnail of the target pages;Alternatively, according to the page object First address information in face obtains the web page contents of the target pages, and sectional drawing is carried out, and will be intercepted to the web page contents The sectional drawing arrived is loaded onto the preview page as the thumbnail of the target pages and by the thumbnail of the target pages In.
Optionally, in first address information based on acquisition, loading includes the thumbnail of the target pages Preview page after, further include:
Again slide of the user on first sliding distance is received, and slides behaviour described in acquisition again The second sliding distance made;Judge the sum of first sliding distance and second sliding distance whether more than the second default threshold Value, if second sliding distance is more than second predetermined threshold value, according to the first address information of the target pages It opens and shows the target pages.
Optionally, the touch that the slide is included since the edge of touch screen to the left is slided, wherein, the basis The corresponding switching command of slide and the current page obtain the address information of target pages, including:According to described The corresponding switching command of slide obtains corresponding first webpage of forwarding button in current page, and first webpage is made The first address information for the target pages and the acquisition target pages.
Optionally, the touch that the slide is included since the edge of touch screen to the right is slided, wherein, the basis The corresponding switching command of slide and the current page obtain the first address information of target pages, including:According to The corresponding switching command of the slide obtains corresponding second webpage of backspace button in current page, and by second net First address information of the page as the target pages and the acquisition target pages.
Optionally, in first address information based on acquisition, loading includes the thumbnail of the target pages Preview page after, further include:When detecting the glide direction of the slide by being switched to the left to the right, institute is obtained The third sliding distance that user slides to the left is stated, and judges whether the third sliding distance is more than third predetermined threshold value, if The third sliding distance is more than third predetermined threshold value, then closes the preview page, and show the current page.
Optionally, in first address information based on acquisition, loading includes the thumbnail of the target pages Preview page after, further include:When detecting the glide direction of the slide by being switched to the right to the left, institute is obtained The 4th sliding distance that user slides to the right is stated, and whether judges the 4th sliding distance more than the 4th predetermined threshold value, if 4th sliding distance is more than the 4th predetermined threshold value, then closes the preview page, and show the current page.
The control method of browser page according to embodiments of the present invention receives slide input by user, and determines The glide direction of slide, then, according to glide direction and the glide direction and the correspondence of switching command that pre-save It determines the corresponding switching command of slide, and obtains the first address information of target pages and judging slide When corresponding sliding distance is more than the first predetermined threshold value, the first address information loading based on acquisition includes the breviary of target pages The preview page of figure.As a result, the page that user can will be switched to preview, reduces the consumption of Internet resources, it is convenient User controls mobile terminal by gesture, improves the interactive experience between user and mobile terminal.
To achieve the above object, second aspect of the present invention embodiment proposes a kind of control device of browser page, packet It includes:Receiving module for receiving the slide that user inputs in the current page of browser, and determines the slide Glide direction;First acquisition module, for according to the glide direction and the glide direction pre-saved and switching command Correspondence determines the corresponding switching command of the slide, and obtains mesh according to the switching command and the current page Mark the first address information of the page;Second acquisition module, for obtaining corresponding first sliding distance of the slide;Judge Module, for judging first sliding distance whether more than the first predetermined threshold value;Load-on module, for being slided described first When distance is more than first predetermined threshold value, first address information based on acquisition, loading includes the target pages The preview page of thumbnail.
Optionally, the load-on module, is specifically used for:The first address information of the target pages is sent to server, And receive the second address information of the thumbnail for the target pages that the server returns and according to second address The thumbnail of the target pages is loaded onto in the preview page by information, user to be facilitated to check the contracting of the target pages Sketch map;Alternatively, the web page contents of the target pages are obtained according to the first address information of the target pages, to the webpage Content carries out sectional drawing, and using the sectional drawing being truncated to as the thumbnail of the target pages and by the target pages Thumbnail is loaded onto in the preview page.
Optionally, described device further includes:First processing module, in described of the load-on module based on acquisition One address information after loading includes the preview page of the thumbnail of the target pages, receives the user described first Slide again on sliding distance, and obtain described in second sliding distance of slide again and judgement Whether the sum of the first sliding distance and second sliding distance second sliding distance are more than the second predetermined threshold value, if institute The second sliding distance is stated more than second predetermined threshold value, then opens and shows according to the first address information of the target pages The target pages.
Optionally, the touch that the slide is included since the edge of touch screen to the left is slided, wherein, described first Acquisition module is specifically used for:It is corresponding that forwarding button in current page is obtained according to the corresponding switching command of the slide First webpage, and using first webpage as the first address information of the target pages and the acquisition target pages.
Optionally, the touch that the slide is included since the edge of touch screen to the right is slided, wherein, described first Acquisition module is specifically used for:It is corresponding that backspace button in current page is obtained according to the corresponding switching command of the slide Second webpage, and using second webpage as the first address information of the target pages and the acquisition target pages.
Optionally, described device further includes:Second processing module, in described of the load-on module based on acquisition One address information, after loading includes the preview page of the thumbnail of the target pages, if detecting the slide Glide direction by being switched to the right to the left, then obtain the third sliding distance that the user slides to the left, and judge described Whether three sliding distances are more than third predetermined threshold value, if the third sliding distance is more than third predetermined threshold value, close institute Preview page is stated, and shows the current page.
Optionally, described device further includes:Third processing module, in described of the load-on module based on acquisition One address information, after loading includes the preview page of the thumbnail of the target pages, if detecting the slide Glide direction by being switched to the left to the right, then obtain the 4th sliding distance that the user slides to the right, and judge described Whether four sliding distances if fourth sliding distance be more than fourth predetermined threshold value, close institute more than the 4th predetermined threshold value Preview page is stated, and shows the current page.
The control device of browser page according to embodiments of the present invention receives slip input by user by receiving module Operation, and determine the glide direction of slide, then, the first acquisition module is according to glide direction and the slip side pre-saved The corresponding switching command of slide is determined to the correspondence with switching command, and obtains the first address letter of target pages Breath, the second acquisition module obtain the sliding distance of slide, and whether judgment module judges the corresponding sliding distance of slide More than the first predetermined threshold value, load-on module is when sliding distance is more than the first predetermined threshold value, the first address information based on acquisition, The preview page of thumbnail of the loading comprising target pages.As a result, the page that user can will be switched to preview, is reduced The consumption of Internet resources, facilitates user mobile terminal is controlled by gesture, improve user and mobile terminal it Between interactive experience.
Description of the drawings
Fig. 1 is the flow chart of the control method of browser page according to an embodiment of the invention.
Fig. 2 is the schematic diagram of the current page shown in mobile phone browser.
Fig. 3 is that user accesses the schematic diagram of previous page accessed before current page.
Fig. 4 is the schematic diagram of the preview page shown in mobile phone browser.
Fig. 5 is the flow chart of the control method of browser page in accordance with another embodiment of the present invention.
Fig. 6 is the flow chart according to the control method of the browser page of a specific embodiment of the invention.
Fig. 7 is the structure diagram of the control device of browser page according to an embodiment of the invention.
Fig. 8 is the structure diagram of the control device of browser page in accordance with another embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the control method and device of the browser page of the embodiment of the present invention are described.
Fig. 1 is the flow chart of the control method of browser page according to an embodiment of the invention.
As shown in Figure 1, the control method of the browser page includes:
S101 receives the cunning that user inputs in the current page of browser
Dynamic operation, and determine the glide direction of slide.
Specifically, during user browses webpage by mobile phone browser, if receiving user from touch screen The touch that edge starts to the left is slided, then can determine the glide direction of slide for the left;If it receives user to receive Touch of the user since the edge of touch screen to the right is slided, then can determine the glide direction of slide for the right.
S102 determines slide according to glide direction and the glide direction and the correspondence of switching command that pre-save Corresponding switching command, and according to the first address information of switching command and current page acquisition target pages.
For example it is assumed that the glide direction and the correspondence of switching command that pre-save are:Glide direction is corresponding to the right Switching command is instructed to retreat;Corresponding switching command is advancement commands to glide direction to the left.If user is received from touch The touch that the left side edge of screen starts to the right is slided, it may be determined that the glide direction of slide is to the right, then, according to slip side It can determine that the corresponding switching command of current slide is instructed to retreat to the correspondence with switching command.
It in one embodiment of the invention, can be according to switching command after the corresponding switching command of slide is determined The first address information of target pages is obtained with current page.Specifically, if it is determined that the corresponding switching of current slide It instructs as advancement commands, corresponding first webpage of forwarding button in current page can be obtained, and using the first webpage as page object Face and the first address information for obtaining target pages.Wherein, the first webpage is accessed for user after current page is accessed Latter webpage.
If it is determined that the corresponding switching command of current slide is instructed to retreat, backspace button in current page can be obtained Corresponding second webpage, and using the second webpage as the first address information of target pages and acquisition target pages.Wherein, Second webpage is the previous webpage that user accesses before current page is accessed.
S103 obtains corresponding first sliding distance of slide, and judges whether the first sliding distance is pre- more than first If threshold value.
S104, if the first sliding distance is more than the first predetermined threshold value, the first address information based on acquisition, loading packet The preview page of thumbnail containing target pages.
Wherein, the first predetermined threshold value is system to load the pre-set distance value of preview page.For example, the first default threshold It is worth 1/3rd of the screen width for mobile terminal, is monitoring the corresponding sliding distance of slide more than screen width When 1/3rd, the preview page of the thumbnail comprising target pages can be loaded.
In one embodiment of the invention, the thumbnail of target pages can be obtained by two ways.
First way is that the thumbnail of target pages is obtained from server.
It specifically, can be to server when determining that corresponding first sliding distance of slide is more than the first predetermined threshold value Send the first address information of target pages.Accordingly, server according to the first address information of target pages from pre-saving The second ground of the thumbnail of target pages is obtained in the mapping table of the address information of webpage and the address information of webpage capture Location information, and the second address information of the thumbnail to browser return target pages, browser add according to the second address information The thumbnail of target pages is carried, at this point, the webpage of the corresponding thumbnail comprising target pages is preview page.
The second way is that the thumbnail of target pages is generated by browser.
It specifically, can be according to target when determining that corresponding first sliding distance of slide is more than the first predetermined threshold value First address information of the page obtains the web page contents of target pages from the caching of browser, and sectional drawing is carried out to web page contents, And it is loaded onto preview page using the sectional drawing being truncated to as the thumbnail of target pages and by the thumbnail of target pages In.
For example, the current page in mobile phone browser is as shown in Figure 2, it is assumed that before user accesses before accessing current page One page is as shown in Figure 3.If receiving user to slide to the right since the left side of touch screen, can determine according to glide direction The corresponding switching command of slide is instructed to retreat, and obtains user according to the backspace button retreated in instruction and current page The previous page accessed before current page is accessed, and using previous page as target pages, then from the caching of browser The web page contents of previous page are obtained, sectional drawing is carried out, and using the sectional drawing being truncated to as the contracting of target pages to web page contents Sketch map and the preview page that the thumbnail comprising previous page is shown in the page of browser, wherein, it is shown in browser Preview page form it is as shown in Figure 4.
In one embodiment of the invention, as shown in figure 5, after step s 103, further including step S104 and S105.
S104 receives again slide of the user on the first sliding distance, and obtains the of slide again Two sliding distances.
Whether S105 judges the sum of the first sliding distance and the second sliding distance more than the second predetermined threshold value, if second Sliding distance is more than the second predetermined threshold value, then opens simultaneously shows target pages according to the address information of target pages.
For example, the second predetermined threshold value is the screen width half of smart mobile phone, user's slide again is being obtained The second sliding distance after, can determine whether the sum of the first sliding distance and the second sliding distance whether be more than screen width two/ One, if so, target pages are jumped directly to, shows target pages in the page of browser.
For another example the first predetermined threshold value is the screen width 1/3rd of smart mobile phone, the second predetermined threshold value is intelligent hand The screen width half of machine is more than monitoring the sliding distance that user slides to the right since the left side edge of touch screen Screen width 1/3rd, and when finger is without departing from touch screen, the preview page of thumbnail of the loading comprising target pages, if User is monitored to continue to slide, and when monitor user slip distance be more than screen width half, and finger leave it is tactile When touching screen, directly webpage is adjusted to target pages.
In one embodiment of the invention, the breviary of target pages is included in the first address information loading based on acquisition After the preview page of figure, if the glide direction for detecting slide obtains user to the left by being switched to the right to the left The third sliding distance of slip, and judge whether third sliding distance is more than third predetermined threshold value, if third sliding distance surpasses Third predetermined threshold value is crossed, then closes preview page, and show current page.That is, it is shown in the page of browser pre- It lookes at after the page, if user is not desired to the page that will be shown in page layout switch to preview page, at this point, user can be by slide Glide direction slides certain distance to the left by being switched to the left to the right, if the sliding distance slided to the left is more than that third is pre- If during threshold value, then mobile terminal may determine that active user is not desired to advance according to the slide of user, at this point, mobile terminal Preview page will be closed, shows current page in the page of browser again, user can continue to browse current page.
In addition, in the case of the touch for right side edge of the user since touch screen to the left is slided, mesh is included in loading After the preview page for marking the thumbnail of the page, if detecting the glide direction of slide by being switched to the left to the right, The 4th sliding distance that slides to the right of user is obtained, and whether judges the 4th sliding distance more than the 4th predetermined threshold value, if the Four sliding distances are more than the 4th predetermined threshold value, then close preview page, and show current page.It can thus be seen that user can By way of changing glide direction, preview page is closed, user is facilitated and preview page is closed by gesture, improve user Interactive experience between mobile terminal.
It in summary it can be seen, during user browses webpage by the browser in mobile terminal, if user needs Carry out the switching between webpage, user can carry out touch slip to the right since the left side edge of touch screen or from touch The right side edge of screen starts to carry out touch slip to the left, when the corresponding sliding distance of slide is more than the first predetermined threshold value, Preview page is triggered, the preview page of the thumbnail comprising target pages is shown in the page of browser, facilitates user as a result, Preview will be switched to the relevant information of webpage.If the user determine that the target pages shown in preview page are switched to, at this point, User can continue on original glide direction and continue to slide, when corresponding sliding distance is more than the second predetermined threshold value, and finger When leaving touch screen, target pages are jumped directly to, shows target pages in the page of browser;It will be current if user is not desired to Webpage switches to target pages, at this point, the replaceable glide direction of user, and after sliding certain sliding distance, mobile terminal is closed Preview page shows current page in the page of browser.Provide as a result, it is a kind of by gesture control webpage advance or after The mode moved back, facilitate user webpage is switched over by gesture and user can by gesture close preview page, improve Interactive experience between user and equipment.
The control method of the browser page of the embodiment of the present invention receives slide input by user, and determines to slide Then the glide direction of operation, is determined according to glide direction and the glide direction and the correspondence of switching command that pre-save The corresponding switching command of slide, and obtain the first address information of target pages and judging slide correspondence Sliding distance when being more than the first predetermined threshold value, thumbnail of first address information loading comprising target pages based on acquisition Preview page.As a result, the page that user can will be switched to preview, reduces the consumption of Internet resources, facilitates use Family controls mobile terminal by gesture, improves the interactive experience between user and mobile terminal.
Fig. 6 is the flow chart according to the control method of the browser page of a specific embodiment of the invention.The embodiment The detailed process of the control method of browser page, such as Fig. 6 are described so that the thumbnail of target pages is provided by server as an example Shown, the control method of the browser page includes:
S601, mobile terminal receives the touch of user since the edge of touch screen to the left and slides, and determines slide Slip side for the left.
S602, mobile terminal are determined according to glide direction and the glide direction and the correspondence of switching command that pre-save The corresponding switching command of slide is advancement commands.
S603, corresponding first webpage of forwarding button in acquisition for mobile terminal current page, and using the first webpage as mesh It marks the page and obtains the first address information of target pages.
Wherein, the first webpage is the latter webpage that user accesses after current page is accessed.
S604, corresponding first sliding distance of acquisition for mobile terminal slide, and judge whether the first sliding distance surpasses Cross the first predetermined threshold value.
Wherein, the first predetermined threshold value is system to load the pre-set distance value of preview page.For example, the first default threshold It is worth 1/3rd of the screen width for mobile terminal, is monitoring the corresponding sliding distance of slide more than screen width When 1/3rd, the preview page of the thumbnail comprising target pages can be loaded.
S605, if the first sliding distance is more than the first predetermined threshold value, mobile terminal sends target pages to server The first address information.
S606, server receive the first address information of the target pages that mobile terminal is sent, and from pre-saving webpage Address information and webpage capture address information mapping table in obtain target pages thumbnail the second address letter Breath, and the second address information of the thumbnail to mobile terminal return target pages.
For example, the address information for the target pages that server receives is www.baidu.com, server can be according to advance The mapping table of the address information of the webpage of preservation and the address information of webpage capture obtains the ground of the thumbnail of target pages Location information is www.cmPic.baidu.com.
S607, mobile terminal load the thumbnail of target pages according to the second address information, are shown in the page of browser The preview page of thumbnail comprising target pages.
S608, if mobile terminal receives user and continues the slide slided, mobile terminal, which obtains user, to be continued Second sliding distance of slide, and judge the sum of the first sliding distance and the second sliding distance whether more than the second default threshold Value.
S609, if the sum of the first sliding distance and the second sliding distance are more than the second predetermined threshold value, mobile terminal root Simultaneously shows target pages are opened according to the first address information of target pages.
The control method of the browser page of the embodiment of the present invention is more than monitoring the corresponding sliding distance of slide During the first predetermined threshold value, the preview page of thumbnail of the mobile terminal loading comprising target pages, at this point, user can pass through preview The target pages that page preview will be switched to, when determining to switch to the target pages, user can be according to original slip Direction continues slide, and when corresponding sliding distance is more than the second predetermined threshold value, the page jumps directly to page object Face.User is facilitated as a result, during webpage is switched, can the webpage that will be switched to of preview in advance, avoid due to Do not include the occurrence of user it is expected the content checked and needs to toggle webpage in target pages, reduce Internet resources Consumption, facilitate user by slip gesture switch webpage, improve the interactive experience between user and mobile terminal.
In order to realize above-described embodiment, the present invention also proposes a kind of control device of browser page.
Fig. 7 is the structure diagram of the control device of browser page according to an embodiment of the invention.
As shown in fig. 7, the control device of the browser page includes receiving module 110, the first acquisition module 120, second Acquisition module 130, judgment module 140 and load-on module 150.
Receiving module 110 determines to slide for receiving the slide that user inputs in the current page of browser The glide direction of operation;First acquisition module 120 is used for according to glide direction and the glide direction pre-saved and switching command Correspondence determine the corresponding switching command of slide, and the of target pages is obtained according to switching command and current page One address information;Second acquisition module 130 is used to obtain corresponding first sliding distance of slide;Judgment module 140 is used for Judge the first sliding distance whether more than the first predetermined threshold value;It is more than first pre- that load-on module 150, which is used in the first sliding distance, If during threshold value, the first address information based on acquisition, the preview page of thumbnail of the loading comprising target pages.
Wherein, above-mentioned slide can be that touch to the left is slided or from touching since the edge of touch screen The edge for touching screen starts touch to the right and slides, when receiving module 110 receives the touch since the edge of touch screen to the left During slip, the first acquisition module 120 is specifically used for:It obtains to advance in current page according to the corresponding switching command of slide and press Corresponding first webpage of button, and using the first webpage as the first address information of target pages and acquisition target pages.
When the touch that receiving module 110 is received since the edge of touch screen to the right is slided, the first acquisition module 120 It is specifically used for:Corresponding second webpage of backspace button in current page is obtained, and will according to the corresponding switching command of slide First address information of second webpage as target pages and acquisition target pages.
Specifically, above-mentioned load-on module 150 is specifically used for:The first address information of target pages is sent to server, and Receive the second address information of the thumbnail for the target pages that server returns and according to the second address information by target pages Thumbnail be loaded onto in preview page, user to be facilitated to check the thumbnail of target pages;Alternatively, according to target pages One address information obtains the web page contents of target pages, and sectional drawing is carried out, and using the sectional drawing being truncated to as mesh to web page contents It marks the thumbnail of the page and the thumbnail of target pages is loaded onto in preview page.
Wherein, above-mentioned first predetermined threshold value is system to load the pre-set distance value of preview page.For example, first is pre- If threshold value for mobile terminal screen width 1/3rd, judgment module 140 judge slide it is corresponding slide away from From more than screen width 1/3rd when, load-on module 150 can load the preview page of the thumbnail comprising target pages.
As shown in figure 8, above device can also include first processing module 160, which is used to add First address information of the module 150 based on acquisition is carried, after loading includes the preview page of the thumbnail of target pages, receives and uses Again slide of the family on the first sliding distance, and obtain the second sliding distance of slide again and judge The second sliding distance of the sum of first sliding distance and the second sliding distance whether more than the second predetermined threshold value, if second slide away from From more than the second predetermined threshold value, then simultaneously shows target pages are opened according to the first address information of target pages.
As shown in figure 8, above device can also include Second processing module 170, which is used to add First address information of the module 150 based on acquisition is carried, after loading includes the preview page of the thumbnail of target pages, if inspection The glide direction of slide is measured by being switched to the right to the left, then obtains the third sliding distance that user slides to the left, and sentence Whether disconnected third sliding distance is more than third predetermined threshold value, if third sliding distance is more than third predetermined threshold value, is closed pre- It lookes at the page, and shows current page.
As shown in fig. 7, above device can also include third processing module 180, which is used to add First address information of the module 150 based on acquisition is carried, after loading includes the preview page of the thumbnail of target pages, if inspection The glide direction of slide is measured by being switched to the left to the right, then obtains the 4th sliding distance that user slides to the right, and sentence Whether disconnected 4th sliding distance is more than the 4th predetermined threshold value, if the 4th sliding distance is more than the 4th predetermined threshold value, closes pre- It lookes at the page, and shows current page.
It should be noted that the explanation of the embodiment of the aforementioned control method to browser page is also applied for the reality The control device of the browser page of example is applied, details are not described herein again.
The control device of the browser page of the embodiment of the present invention receives input by user slide by receiving module and grasps Make, and determine the glide direction of slide, then, the first acquisition module is according to glide direction and the glide direction pre-saved The corresponding switching command of slide is determined with the correspondence of switching command, and obtain the first address information of target pages, Second acquisition module obtain slide sliding distance, judgment module judge the corresponding sliding distance of slide whether be more than First predetermined threshold value, load-on module is when sliding distance is more than the first predetermined threshold value, the first address information based on acquisition, loading The preview page of thumbnail comprising target pages.As a result, the page that user can will be switched to preview, reduces net The consumption of network resource facilitates user and mobile terminal is controlled by gesture, improves between user and mobile terminal Interactive experience.
In the description of this specification, reference term " one embodiment ", " example ", " is specifically shown " some embodiments " The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description Point is contained at least one embodiment of the present invention or example.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It is combined in an appropriate manner in one or more embodiments or example.In addition, without conflicting with each other, the skill of this field Art personnel can tie the different embodiments or examples described in this specification and the feature of different embodiments or examples It closes and combines.
In addition, term " first ", " second " are only used for description purpose, and it is not intended that instruction or hint relative importance Or the implicit quantity for indicating indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present invention, " multiple " are meant that at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, represent to include Module, segment or the portion of the code of the executable instruction of one or more the step of being used to implement specific logical function or process Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, to perform function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The system of row system, device or equipment instruction fetch and execute instruction) it uses or combines these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment It puts.The more specific example (non-exhaustive list) of computer-readable medium is including following:Electricity with one or more wiring Connecting portion (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can be for example by carrying out optical scanner to paper or other media, then into edlin, interpretation or when necessary with it His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the present invention can be realized with hardware, software, firmware or combination thereof.Above-mentioned In embodiment, software that multiple steps or method can in memory and by suitable instruction execution system be performed with storage Or firmware is realized.If for example, with hardware come realize in another embodiment, can be under well known in the art Any one of row technology or their combination are realized:With for the logic gates to data-signal realization logic function Discrete logic, have suitable combinational logic gate circuit application-specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that realize all or part of step that above-described embodiment method carries Suddenly it is that relevant hardware can be instructed to complete by program, the program can be stored in a kind of computer-readable storage medium In matter, the program when being executed, one or a combination set of the step of including embodiment of the method.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, it can also That each unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould The form that hardware had both may be used in block is realized, can also be realized in the form of software function module.The integrated module is such as Fruit is realized in the form of software function module and is independent product sale or in use, can also be stored in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although it has been shown and retouches above The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention System, those of ordinary skill in the art can be changed above-described embodiment, change, replace and become within the scope of the invention Type.

Claims (8)

1. a kind of control method of browser page, which is characterized in that including:
The slide that user inputs in the current page of browser is received, and determines the glide direction of the slide;
The slide is determined according to the glide direction and the glide direction and the correspondence of switching command that pre-save Corresponding switching command, and according to the first address information of the switching command and current page acquisition target pages;
Corresponding first sliding distance of the slide is obtained, and judges whether first sliding distance is default more than first Threshold value;
If first sliding distance is more than first predetermined threshold value, first address information based on acquisition adds Carry the preview page of the thumbnail comprising the target pages;
In first address information based on acquisition, the preview page of thumbnail of the loading comprising the target pages it Afterwards, it further includes:
Receive again slide of the user on first sliding distance, and slide again described in obtaining Second sliding distance;
Whether the sum of first sliding distance and second sliding distance are judged more than the second predetermined threshold value, if described Two sliding distances are more than second predetermined threshold value, then are opened and described in showing according to the first address information of the target pages Target pages.
2. according to the method described in claim 1, it is characterized in that, first address information based on acquisition, loading The preview page of thumbnail comprising the target pages, including:
The first address information of the target pages is sent to server, and receives the target pages that the server returns Thumbnail the second address information and the thumbnail of the target pages is loaded onto by institute according to second address information It states in preview page, user to be facilitated to check the thumbnail of the target pages;Alternatively,
The web page contents of the target pages are obtained according to the first address information of the target pages, to the web page contents into Row sectional drawing, and using thumbnail of the sectional drawing being truncated to as the target pages and the thumbnail by the target pages It is loaded onto in the preview page.
3. according to the method described in claim 1, it is characterized in that, the slide include since the edge of touch screen to Left touch is slided, wherein,
The address information that target pages are obtained according to the corresponding switching command of the slide and the current page, packet It includes:
Corresponding first webpage of forwarding button in current page is obtained according to the corresponding switching command of the slide, and by institute State first address information of first webpage as the target pages and the acquisition target pages.
4. according to the method described in claim 1, it is characterized in that, the slide include since the edge of touch screen to Right touch is slided, wherein,
Believe first address that target pages are obtained according to the corresponding switching command of the slide and the current page Breath, including:
Corresponding second webpage of backspace button in current page is obtained according to the corresponding switching command of the slide, and by institute State first address information of second webpage as the target pages and the acquisition target pages.
5. according to the method described in claim 3, it is characterized in that, in first address information based on acquisition, add After the preview page for carrying the thumbnail comprising the target pages, further include:
When detecting the glide direction of the slide by being switched to the right to the left, the user slides to the right is obtained Three sliding distances, and judge whether the third sliding distance is more than third predetermined threshold value, if the third sliding distance surpasses Third predetermined threshold value is crossed, then closes the preview page, and shows the current page.
6. according to the method described in claim 4, it is characterized in that, in first address information based on acquisition, add After the preview page for carrying the thumbnail comprising the target pages, further include:
When detecting the glide direction of the slide by being switched to the left to the right, the user slides to the left is obtained Four sliding distances, and whether the 4th sliding distance is judged more than the 4th predetermined threshold value, if the 4th sliding distance surpasses The 4th predetermined threshold value is crossed, then closes the preview page, and shows the current page.
7. a kind of control device of browser page, which is characterized in that including:
Receiving module for receiving the slide that user inputs in the current page of browser, and determines that described slide is grasped The glide direction of work;
First acquisition module, for according to the glide direction and the glide direction and the correspondence of switching command that pre-save It determines the corresponding switching command of the slide, and target pages is obtained according to the switching command and the current page First address information;
Second acquisition module, for obtaining corresponding first sliding distance of the slide;
Judgment module, for judging first sliding distance whether more than the first predetermined threshold value;
Load-on module, for first sliding distance be more than first predetermined threshold value when, described first based on acquisition Address information, the preview page of thumbnail of the loading comprising the target pages;
First processing module, in first address information of the load-on module based on acquisition, loading to include the mesh After the preview page for marking the thumbnail of the page, again slip behaviour of the user on first sliding distance is received Make, and obtain second sliding distance of slide again and judge first sliding distance and the described second cunning Whether the second sliding distance described in dynamic sum of the distance is more than the second predetermined threshold value, if second sliding distance is more than described the Two predetermined threshold values are then opened according to the first address information of the target pages and show the target pages.
8. device according to claim 7, which is characterized in that the load-on module is specifically used for:
The first address information of the target pages is sent to server, and receives the target pages that the server returns Thumbnail the second address information and the thumbnail of the target pages is loaded onto by institute according to second address information It states in preview page, user to be facilitated to check the thumbnail of the target pages;Alternatively,
The web page contents of the target pages are obtained according to the first address information of the target pages, to the web page contents into Row sectional drawing, and using thumbnail of the sectional drawing being truncated to as the target pages and the thumbnail by the target pages It is loaded onto in the preview page.
CN201510409591.2A 2015-07-13 2015-07-13 Browser page control method and device Active CN105094627B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510409591.2A CN105094627B (en) 2015-07-13 2015-07-13 Browser page control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510409591.2A CN105094627B (en) 2015-07-13 2015-07-13 Browser page control method and device

Publications (2)

Publication Number Publication Date
CN105094627A CN105094627A (en) 2015-11-25
CN105094627B true CN105094627B (en) 2018-06-29

Family

ID=54575205

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510409591.2A Active CN105094627B (en) 2015-07-13 2015-07-13 Browser page control method and device

Country Status (1)

Country Link
CN (1) CN105094627B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105701197A (en) * 2016-01-11 2016-06-22 北京小米移动软件有限公司 Page previewing method and device
CN105843535B (en) * 2016-03-18 2019-10-01 深圳市万普拉斯科技有限公司 A kind of control method and terminal of control panel
CN107229405A (en) 2016-03-25 2017-10-03 广州市动景计算机科技有限公司 Method, equipment, browser and electronic equipment for providing web page contents
CN107632764A (en) * 2017-09-13 2018-01-26 百度在线网络技术(北京)有限公司 Method for information display and device
CN108829331B (en) * 2018-05-25 2022-01-14 北京五八信息技术有限公司 Monitoring processing method of sliding event and terminal equipment
CN109002486A (en) * 2018-06-25 2018-12-14 武汉斗鱼网络科技有限公司 A kind of processing method that the page is shown, device, terminal and storage medium
CN109298828B (en) * 2018-09-27 2022-02-22 武汉华中时讯科技有限责任公司 Device and method for switching history browsing pages through gestures and storage medium
CN109948101B (en) * 2019-03-21 2022-03-01 Oppo广东移动通信有限公司 Page switching method and device, storage medium and electronic equipment
CN110650091B (en) * 2019-08-14 2022-08-02 平安普惠企业管理有限公司 Routing configuration information processing method and device, computer equipment and storage medium
CN110929190A (en) * 2019-09-23 2020-03-27 平安科技(深圳)有限公司 Page playing method and device, electronic equipment and storage medium
CN110889061A (en) * 2019-11-12 2020-03-17 望海康信(北京)科技股份公司 Webpage loading method and device
CN112286607B (en) * 2020-10-27 2023-09-08 北京奇艺世纪科技有限公司 View control method and device
CN112612566A (en) * 2020-12-18 2021-04-06 北京达佳互联信息技术有限公司 Information display method and device and readable storage medium
CN117750108A (en) * 2023-12-01 2024-03-22 书行科技(北京)有限公司 Video page switching method, device, medium and equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103034683A (en) * 2012-11-26 2013-04-10 北京奇虎科技有限公司 Page switching method and device for browser
CN104199603A (en) * 2014-08-28 2014-12-10 北京金山安全软件有限公司 Browser webpage control method and device and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6024193B2 (en) * 2012-05-15 2016-11-09 富士ゼロックス株式会社 Image display apparatus and program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103034683A (en) * 2012-11-26 2013-04-10 北京奇虎科技有限公司 Page switching method and device for browser
CN104199603A (en) * 2014-08-28 2014-12-10 北京金山安全软件有限公司 Browser webpage control method and device and terminal

Also Published As

Publication number Publication date
CN105094627A (en) 2015-11-25

Similar Documents

Publication Publication Date Title
CN105094627B (en) Browser page control method and device
CN105224225B (en) The switching method and device of details page
CN106155675B (en) The page switching method and device of application program
CN104156409B (en) Providing method, system and the device of news
CN103218143B (en) A kind of classification page switching method and mobile device
US10503255B2 (en) Haptic feedback assisted text manipulation
US9594432B2 (en) Electronic device, control setting method and program
CN104166553B (en) A kind of display methods and electronic equipment
CN105183338B (en) Object processing method
DE212009000073U1 (en) Navigate between activities in a computing device
CN108121485A (en) A kind of icon method for sorting, terminal and computer readable storage medium
CN106293395A (en) A kind of virtual reality glasses and interface alternation method thereof
JP2012526325A (en) Method and apparatus for displaying a cascading menu
CN102929540A (en) Desktop icon position adjusting method and mobile intelligent terminal
CN104216639B (en) A kind of terminal operation method
CN107562320A (en) A kind of method and intelligent touch screen terminal equipment of the function that application program is provided
KR20100105755A (en) Wireless communication device and split touch sensitive user input surface
CN107193438A (en) One kind management desk-top picture calibration method and mobile terminal
CN107340969B (en) Rapid information input interaction method and input interaction system based on touch pad
CN106126718A (en) A kind of picture management method and terminal
DE112013006924T5 (en) Programmable display and screen operation processing program therefor
CN107395797A (en) A kind of mobile terminal and its control method and readable storage medium storing program for executing
CN107728873A (en) The method and its device of contents selection
CN108153454B (en) Multi-touch switching method and device, storage medium and terminal equipment
CN105930156A (en) Terminal control method and 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