Embodiment
Below in conjunction with the accompanying drawing among the present invention, the technical scheme among the present invention is carried out clear, complete description, obviously, described embodiment is a part of embodiment of the present invention, rather than whole embodiment.Based on the embodiment among the present invention, all other embodiment that those of ordinary skills obtain under the prerequisite of not making creative work belong to the scope of protection of the invention.
The embodiment of the invention, the web preview instruction of the sign that carries target web that the server receiving terminal sends, obtain the sectional drawing of target web according to the sign of described target web, and described sectional drawing sent to described terminal, described terminal shows the thumbnail of described sectional drawing, and according to the position of cursor of mouse in described thumbnail, intercept web page area corresponding with the position of selecting in the described sectional drawing and show, thereby can reduce taking Internet resources in the web page browsing process.
As shown in Figure 1, the flow process of the web page contents method for previewing that provides for the embodiment of the invention specifically may further comprise the steps:
Step 101, the web preview that the server receiving terminal sends instructs, and carries the sign of target web in the web preview instruction.
In concrete application, the URL(Uniform Resource Locator that server can arrange in webpage, URL(uniform resource locator), be also referred to as web page address) near " preview " button that arranges of link position, the user clicks in terminal is somebody's turn to do " preview " button, terminal then can send the web preview instruction to server, in the web preview instruction, and the sign (as the address of target web) that can carry target web.
In the application scenarios of Webpage search, the user at first can be in search engine the inputted search keyword, and by terminal searching key word is sent to server, server can return to terminal with the Webpage searching result tabulation then, the user screens in the process of browsing in the Webpage searching result tabulation, can use the preview function in the tabulation to send the web preview instruction to server.
Step 102, server are obtained the sectional drawing of this target web according to the sign of target web.Wherein, sectional drawing is the sectional drawing measure-alike with target web, or with the size of target web than greater than the preset ratio threshold value (as, 80%) sectional drawing, be in order to make the general user can see information such as literal in the picture clearly by naked eyes greater than the purpose of proportion threshold value.
The concrete grammar that server obtains the sectional drawing of target web can be:
Step 1, server be according to the sign of target web, judges the local sectional drawing that whether stores described target web, if execution in step two then, otherwise execution in step three.
In concrete enforcement, at server end the webpage capture database can be set, the sectional drawing of each webpage is stored, repeat to generate the wasting of resources that webpage capture brings with minimizing, and improve the acquisition speed of webpage capture.
Step 2, server are obtained the sectional drawing of the target web of local storage.
Concrete, store in server this locality under the situation of sectional drawing of target web, server then can directly obtain the sectional drawing of this webpage from this locality.
Step 3, server is downloaded target web according to the sign of target web, and generates the sectional drawing of target web.
The concrete grammar that server is downloaded target web can be:
Server is according to the sign of target web, judge the local snapshots of web pages that whether stores target web, if then can download target web according to the snapshots of web pages of target web, otherwise, can download this target web according to the sign of target web according to preset rules.Server can arrange the snapshots of web pages database, is used for the snapshots of web pages of each webpage of storage.In the process of downloading target web, if server finds the snapshots of web pages corresponding with the target web sign in the snapshots of web pages database, then can utilize this snapshots of web pages to download remaining part in the info web, and obtain complete target web, can reduce the download of information to raise the efficiency the minimizing wasting of resources with respect to downloading whole info webs like this; If in the snapshots of web pages database, do not find the snapshots of web pages corresponding with the target web sign, server then can be downloaded target web according to preset rules, this preset rules can be that the unified routine that arranges is downloaded rule, also can be other specific rules of downloading.
Directly download this target web from the sign of target web.
In the application scenarios of Webpage search, consider the existence of searching key word, can mark searching key word in the target web sectional drawing, corresponding webpage capture database then can will have the sectional drawing storage corresponding with searching key word of different searching key word marks at same webpage.The detailed process that server obtains the sectional drawing of target web can be:
Step 1, server are judged the local sectional drawing that whether stores this target web that has this searching key word mark according to sign and the searching key word of target web, if then execution in step two, otherwise, execution in step three.
Step 2, server are obtained the sectional drawing of the described target web that has this searching key word mark of local storage.
Step 3, server is downloaded this target web according to the sign of target web, according to searching key word target web is marked, and generates the sectional drawing of the target web that has this searching key word mark.
Narrate above the method for server download target web, do not do tired stating at this.
The concrete method that target web is marked according to searching key word can be one or more in the following method:
(1) changes the color of searching key word, the font color of searching key word is revised as comparatively eye-catching color, as redness.
(2) background color of searching key word is taked highlighted processing, the background color that is about to searching key word is revised as comparatively eye-catching color, as yellow.
(3) to the zone of searching key word density higher (greater than predetermined threshold value) (this zone can be unit with the section, can be unit with the viewing area of dividing also), the processing such as transparent color lump or picture frame of annotating.Can be one or more in the higher zone of same netpage search Keyword Density.
Preferably, after generating corresponding sectional drawing, server can also be preserved the sectional drawing that generates, and also sectional drawing and thumbnail can be preserved jointly.
Step 103, server sends to terminal with the sectional drawing that gets access to.
After execution of step 102, after namely server gets access to the sectional drawing of target web, can also generate the thumbnail of this sectional drawing, and the thumbnail of this sectional drawing is also sent to described terminal.In addition, server also can obtain corresponding thumbnail simultaneously with being stored in the webpage capture database of thumbnail and sectional drawing correspondence in obtaining the process of sectional drawing.
Step 104, the thumbnail of terminal display-object webpage capture, and according to the position that the user selects in thumbnail, intercept web page area corresponding with the position of selecting in the described sectional drawing and show.
Concrete, terminal can generate the thumbnail of received target web sectional drawing, also the direct thumbnail of the target web sectional drawing that sends of reception server.Then, the thumbnail of terminal display-object webpage, for the preliminary preview of user, the user can be chosen in the zone that oneself is relatively paid close attention in the target web by modes such as mouse, touch-screens in thumbnail.Concrete, the position that the position of cursor of mouse, mouse click location or touch-screen are touched can be used as the position that the user selects in thumbnail.
Preferably, server can set in advance the corresponding relation of position and web page area in the thumbnail and send to terminal.The web page area of the position correspondence that the user selects is determined in the position that terminal can be selected in thumbnail according to the user, and the corresponding relation of position and web page area in the thumbnail that arranges of server in thumbnail; The image of this web page area of intercepting shows in sectional drawing.
Concrete, the web page area of user selected position correspondence can be the zone of the pre-set dimension centered by this position, preset shape (as rectangle).
Figure 2 shows that the synoptic diagram of a kind of terminal display mode of the web page contents method for previewing that the embodiment of the invention provides, the screen display of terminal mainly comprises A, B, C three parts.
The A part, demonstration be the thumbnail of target web.When the user triggers the preview of certain target web, in the thumbnail pictures of screen right side display-object webpage.
The B part is the higher zone of searching key word density in the thumbnail, to so regional picture frame and the transparent color lump of annotating, in the thumbnail such zone may be arranged incessantly.
The C part, demonstration be the amplification displaying contents that cursor of mouse moves to the position, a-quadrant, the user can be clear that the detailed content of the web page area of cursor of mouse position correspondence more from C.
Figure 3 shows that the design sketch of web page contents method for previewing in the Webpage search application process that the embodiment of the invention provides.The user has triggered the preview function of a certain webpage in the Search Results, the right of figure has shown the thumbnail of this webpage, at this moment, user's cursor of mouse is placed on the middle top position of thumbnail, and what show on the upper left side of thumbnail is the details of the amplification of mouse position.
The above embodiment of the present invention, the web preview instruction of the sign that carries target web that the server receiving terminal sends, obtain the sectional drawing of target web according to the sign of described target web, and described sectional drawing sent to described terminal, described terminal shows the thumbnail of described sectional drawing, and according to the position of cursor of mouse in described thumbnail, intercept web page area corresponding with this position in the described sectional drawing and show, to reduce taking Internet resources in the web page browsing process.
As shown in Figure 4, the web page contents method for previewing treatment scheme that terminal shows in concrete application scenarios for the embodiment of the invention provides specifically may further comprise the steps:
Step 401, terminal sends to server with the searching key word of user input, and the search result list that returns of display server.
Step 402, user's select target webpage and click preview function in search result list, terminal receives user's click commands, and the sign of target web is carried in the web preview instruction sends to server.
Step 403, server are returned sectional drawing and the thumbnail of target web.
Step 404, the thumbnail of terminal display-object webpage, and according to the position of cursor of mouse in thumbnail, the web page area of correspondence in the sectional drawing of display-object webpage.
As shown in Figure 5, be the web page contents method for previewing that the embodiment of the invention provides, the treatment scheme of server side specifically may further comprise the steps:
Step 501, target web sectional drawing and the thumbnail request of obtaining (web preview instruction) that the server receiving terminal sends.Triggered the preview function of target web as the user after, terminal to server sends target web thumbnail and sectional drawing request.Can carry sign and the searching key word of target web in this request.
Step 502, server inquire about whether store target web sectional drawing and the thumbnail that has the searching key word mark in the webpage capture database, if exist, then execution in step 503, otherwise execution in step 504.
Step 503, server sends to terminal with target web sectional drawing and the thumbnail of storing in the webpage capture database.
Step 504, the snapshots of web pages of server query aim webpage in the snapshots of web pages database if exist, is then downloaded target web according to this snapshots of web pages, downloads target web otherwise download rule according to routine according to the sign (as URL) of target web.
Step 505, server carries out the search key mark to target web.
Step 506, server marks target web according to search key, generates corresponding sectional drawing and thumbnail, and sends to terminal, also sectional drawing and the thumbnail that generates is saved in the webpage capture database.
The above embodiment of the present invention, the web preview instruction of the sign that carries target web that the server receiving terminal sends, obtain the sectional drawing of target web and the thumbnail of described sectional drawing according to the sign of described target web, and described sectional drawing and described thumbnail sent to described terminal, described terminal shows described thumbnail, and according to the position of cursor of mouse in described thumbnail, intercept web page area corresponding with the position of selecting in the described sectional drawing and show, to reduce taking Internet resources in the web page browsing process.
Based on identical technical conceive, the embodiment of the invention also provides a kind of server, and as shown in Figure 6, this server can comprise:
Receiver module 610 is used for the web preview instruction that receiving terminal sends, and carries the sign of target web in the described web preview instruction;
Acquisition module 620 is for the sectional drawing that obtains target web according to the sign of described target web;
Sending module 630 is used for described sectional drawing is sent to described terminal, shows the thumbnail of described sectional drawing for described terminal, and according to the position that the user selects in described thumbnail, intercepts web page area corresponding with the position of selecting in the described sectional drawing and show.
Preferably, described acquisition module 620 specifically is used for:
According to the sign of described target web, judge the local sectional drawing that whether stores described target web;
If then obtain the sectional drawing of the described target web of local storage;
Otherwise, download described target web according to the sign of described target web, and generate the sectional drawing of described target web.
Preferably, described receiver module 610 also is used for the searching key word that receiving terminal sends;
Described 620 acquisition modules specifically are used for:
According to sign and the described searching key word of described target web, judge the local sectional drawing that whether stores the described target web that has this searching key word mark;
If then obtain the sectional drawing of the described target web that has this searching key word mark of local storage;
Otherwise, download described target web according to the sign of described target web, according to described searching key word target web is marked, and generate the sectional drawing of the described target web that has this searching key word mark.
Preferably, described acquisition module 620 specifically is used for:
Sign according to described target web, judge the local snapshots of web pages that whether stores described target web, if then download described target web according to the snapshots of web pages of described target web, otherwise, download described target web according to preset rules according to the sign of described target web.
Preferably, also comprise:
Memory module 640 is used for preserving the sectional drawing that generates.
Preferably, also comprise:
Generation module 650 be used for to generate the thumbnail of described sectional drawing, and the thumbnail of described sectional drawing is sent to described terminal.
Based on identical technical conceive, the embodiment of the invention also provides a kind of terminal, and as shown in Figure 7, this terminal can comprise:
Sending module 710 is used for sending the web preview instruction to server, carries the sign of target web in the described web preview instruction, obtains the sectional drawing of target web according to the sign of described target web for described server;
Receiver module 720 is used for the described sectional drawing that reception server sends;
Display module 730 is for the thumbnail that shows described sectional drawing;
Interception module 740 is used for according to the user intercepting web page area corresponding with the position of selecting in the described sectional drawing and showing in the position that described thumbnail is selected.
Preferably, described receiver module 720 also is used for receiving the thumbnail position of described server setting and the corresponding relation of web page area;
Described interception module 740 specifically is used for: according to the thumbnail position of described server setting and the corresponding relation of web page area, determine the web page area of the position correspondence that the user selects in described thumbnail; The image of the described web page area of intercepting shows in described sectional drawing.
Preferably, described receiver module 720 also is used for:
Receive the thumbnail of the described sectional drawing of described server transmission.
Preferably, described display module 730 specifically is used for:
Generate the thumbnail of described sectional drawing;
Show the thumbnail that generates.
The above embodiment of the present invention, the web preview instruction of the sign that carries target web that the server receiving terminal sends, obtain the sectional drawing of target web and the thumbnail of described sectional drawing according to the sign of described target web, and described sectional drawing and described thumbnail sent to described terminal, described terminal shows described thumbnail, and according to the position of cursor of mouse in described thumbnail, intercept web page area corresponding with the position of selecting in the described sectional drawing and show, to reduce taking Internet resources in the web page browsing process.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of above-described embodiment can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number does not represent the quality of embodiment just to description.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better embodiment under a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium, comprise that some instructions are with so that a station terminal equipment (can be mobile phone, personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
The above only is preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be looked protection scope of the present invention.