Embodiment
Below in conjunction with the attached drawing in the present invention, clear, complete description is carried out to the technical solution in the present invention, is shown
So, described embodiment is the part of the embodiment of the present invention, instead of all the embodiments.Based on the implementation in the present invention
Example, all other embodiment that those of ordinary skill in the art are obtained on the premise of creative work is not made, all belongs to
In the scope of protection of the invention.
The embodiment of the present invention, the web preview instruction for the mark for carrying target webpage that server receiving terminal is sent,
The sectional drawing of target webpage is obtained according to the mark of the target webpage, and the sectional drawing is sent to the terminal, the terminal
Show the thumbnail of the sectional drawing, and the position according to cursor of mouse in the thumbnail, intercept in the sectional drawing with selection
The web page area of position correspondence shown, so as to reduce during web page browsing to the occupancy of Internet resources.
As shown in Figure 1, for the flow of web page content preview method provided in an embodiment of the present invention, following step is specifically included
Suddenly:
Step 101, the web preview instruction that server receiving terminal is sent, target webpage is carried in web preview instruction
Mark.
In specific application, URL that server can be set in webpage(Uniform Resource Locator,
Universal resource locator, also referred to as web page address)Link position nearby sets " preview " button, and user clicks in terminal should
" preview " button, terminal can then send web preview instruction to server, in web preview instruction, can carry target webpage
Mark(Such as the address of target webpage).
In the application scenarios of Webpage search, user can input search key in a search engine first, and pass through end
Search key is sent to server by end, and then Webpage searching result list can be returned to terminal by server, and user is in net
Carry out during screening browses, the preview function in list being used to send webpage to server in page search result list
Instruction for previewing.
Step 102, server obtains the sectional drawing of the target webpage according to the mark of target webpage.Wherein, sectional drawing is and mesh
The identical sectional drawing of webpage size is marked, or is more than preset ratio threshold value with the size ratio of target webpage(Such as, 80%)Sectional drawing,
Purpose more than proportion threshold value is to make general user by can visually see the information such as the word in picture clearly.
The specific method of sectional drawing that server obtains target webpage can be:
Step 1, server judge the local sectional drawing for whether being stored with the target webpage according to the mark of target webpage,
If it is step 2 is performed, otherwise performs step 3.
In specific implementation, webpage capture database can be set in server end, the sectional drawing of each webpage is stored,
To reduce the wasting of resources for repeatedly generating webpage capture and bringing, and improve the acquisition speed of webpage capture.
Step 2, server obtain the sectional drawing for the target webpage being locally stored.
Specifically, in the case where server local is stored with the sectional drawing of target webpage, server then can be directly from this
Ground obtains the sectional drawing of the webpage.
Step 3, server downloads target webpage according to the mark of target webpage, and generates the sectional drawing of target webpage.
Server download target webpage specific method can be:
Server judges the local snapshots of web pages for whether being stored with target webpage according to the mark of target webpage, if so,
Then target webpage can be downloaded according to the snapshots of web pages of target webpage, otherwise, can be according to preset rules according to target webpage
Mark downloads the target webpage.Server can set snapshots of web pages database, for storing the snapshots of web pages of each webpage.Under
During carrying target webpage, if server is found and the corresponding webpage of target webpage mark in snapshots of web pages database
Snapshot, then can utilize the snapshots of web pages to download remaining part in webpage information, and obtain complete target webpage, such phase
The download that information can be reduced for downloading whole webpage informations reduces the wasting of resources to improve efficiency;If in snapshots of web pages
Do not found in database then can download mesh with the corresponding snapshots of web pages of target webpage mark, server according to preset rules
Webpage is marked, this preset rules can be that the conventional of unified setting downloads rule or other specific download rules.
Directly the target webpage is downloaded from the mark of target webpage.
In the application scenarios of Webpage search, it is contemplated that the presence of search key, can be right in target webpage sectional drawing
Search key is labeled, and corresponding webpage capture database, which can then be directed to same webpage, will carry different search keys
The sectional drawing storage corresponding with search key of word mark.The detailed process of sectional drawing that server obtains target webpage can be:
Whether step 1, server judge locally to be stored with to carry and are somebody's turn to do according to the mark and search key of target webpage
The sectional drawing of the target webpage of search key mark, if it is, performing step 2, otherwise, performs step 3.
Step 2, server obtain the sectional drawing for the target webpage with search key mark being locally stored.
Step 3, server downloads the target webpage according to the mark of target webpage, according to search key to target network
Page is labeled, and generates the sectional drawing of the target webpage with search key mark.
Server is downloaded have been described above the method for target webpage, does not do tired state herein.
The method being specifically labeled according to search key to target webpage can be one kind in following methods or
It is a variety of:
(1)Change the color of search key, the font color of search key is revised as to more eye-catching color, such as
It is red.
(2)Highlighted processing is taken to the background color of search key, i.e., is revised as the background color of search key more eye-catching
Color, such as yellow.
(3)It is higher to search key density(More than predetermined threshold value)Region(Can also may be used in units of section in the region
By in units of the display area of division), carry out filling the processing such as transparent color lump or picture frame.It is crucial in same netpage search
The higher region of word density can be one or more.
Preferably, after corresponding sectional drawing is generated, server can also preserve the sectional drawing of generation, can also incite somebody to action
Sectional drawing and thumbnail preserve jointly.
Step 103, the sectional drawing got is sent to terminal by server.
After execution of step 102, i.e., after server gets the sectional drawing of target webpage, the sectional drawing can also be generated
Thumbnail, and the thumbnail of this sectional drawing is also sent to the terminal.In addition, server can also correspond to thumbnail and sectional drawing
Be stored in webpage capture database, during sectional drawing is obtained at the same time obtain corresponding thumbnail.
Step 104, the thumbnail of terminal display target webpage capture, and the position selected according to user in thumbnail,
The web page area for intercepting the position correspondence in the sectional drawing with selection is shown.
Specifically, terminal can generate the thumbnail of received target webpage sectional drawing, service can also be directly received
The thumbnail for the target webpage sectional drawing that device is sent.Then, the thumbnail of terminal display target webpage, for the preliminary preview of user,
User can select in thumbnail the region for oneself comparing concern in target webpage by modes such as mouse, touch-screens.Tool
Body, the position that position, mouse click location or the touch-screen of cursor of mouse are touched can be selected as user in thumbnail
The position selected.
Preferably, server can pre-set the correspondence of position and web page area in thumbnail and be sent to end
End.Position and webpage area in the position that terminal can be selected according to user in thumbnail, and the thumbnail of server setting
The correspondence in domain, determines the web page area for the position correspondence that user selects in thumbnail;The webpage area is intercepted in sectional drawing
The image in domain is shown.
It is pre-set dimension centered on the position, default specifically, the web page area of position correspondence of user's selection can be
Shape(Such as rectangle)Region.
Fig. 2 show a kind of signal of terminal display mode of web page content preview method provided in an embodiment of the present invention
Figure, the screen display of terminal mainly include A, B, C three parts.
Part A, it is shown that the thumbnail of target webpage.It is right in screen when user triggers the preview of certain target webpage
The thumbnail pictures of side display target webpage.
Part B, is the region that search key density is higher in thumbnail, to such region picture frame and fills Transparent color
Block, may region as more than just one in thumbnail.
C portion, it is shown that cursor of mouse is moved to the amplification display content of a-quadrant position, user can be at C more
Add the detailed content that the corresponding web page area in cursor of mouse position can be clearly seen.
Fig. 3 show effect of the web page content preview method provided in an embodiment of the present invention in Webpage search application process
Figure.User triggers the preview function of a certain webpage in search result, and the thumbnail of the webpage is shown on the right of figure, this
When, the cursor of mouse of user is placed on the middle top position of thumbnail, and it is in place that mouse institute is shown on the upper left side of thumbnail
The details for the amplification put.
The above embodiment of the present invention, the web preview for the mark for carrying target webpage that server receiving terminal is sent
Instruction, the sectional drawing of target webpage is obtained according to the mark of the target webpage, and the sectional drawing is sent to the terminal, described
Terminal shows the thumbnail of the sectional drawing, and the position according to cursor of mouse in the thumbnail, intercept in the sectional drawing with
The web page area of the position correspondence shown, to reduce during web page browsing to the occupancy of Internet resources.
As shown in figure 4, it is web page content preview method provided in an embodiment of the present invention terminal in specific application scenarios
The process flow of display, specifically includes following steps:
Step 401, search key input by user is sent to server, and the search that display server returns by terminal
The results list.
Step 402, user selection target webpage and clicks on preview function in search result list, and terminal receives user's
Click commands, and the mark of target webpage is carried in web preview instruction and is sent to server.
Step 403, server returns to the sectional drawing and thumbnail of target webpage.
Step 404, the thumbnail of terminal display target webpage, and the position according to cursor of mouse in thumbnail, display
Corresponding web page area in the sectional drawing of target webpage.
As shown in figure 5, it is web page content preview method provided in an embodiment of the present invention, the process flow of server side, has
Body comprises the following steps:
Step 501, the target webpage sectional drawing and thumbnail that server receiving terminal is sent obtain request(Web preview refers to
Order).After user triggers the preview function of target webpage, terminal to server sends target webpage thumbnail and sectional drawing please
Ask.The mark and search key of target webpage can be carried in the request.
Step 502, whether server is inquired about in webpage capture database is stored with the mesh with search key mark
Webpage capture and thumbnail are marked, if in the presence of execution step 503, otherwise performs step 504.
Step 503, the target webpage sectional drawing and thumbnail that are stored in webpage capture database are sent to terminal by server.
Step 504, server inquires about the snapshots of web pages of target webpage in snapshots of web pages database, if in the presence of basis
The snapshots of web pages downloads target webpage, otherwise downloads mark of the rule according to target webpage according to conventional(Such as URL)Download target
Webpage.
Step 505, server scans for keyword to target webpage.
Step 506, server generates corresponding sectional drawing and thumbnail, concurrently according to search key label target webpage
Terminal is given, also the sectional drawing of generation and thumbnail are saved in webpage capture database.
The above embodiment of the present invention, the web preview for the mark for carrying target webpage that server receiving terminal is sent
Instruction, the sectional drawing of target webpage and the thumbnail of the sectional drawing are obtained according to the mark of the target webpage, and by the sectional drawing
The terminal is sent to the thumbnail, the terminal shows the thumbnail, and according to cursor of mouse in the thumbnail
In position, the web page area for intercepting the position correspondence in the sectional drawing with selection is shown, to reduce web page browsing process
In to the occupancy of Internet resources.
Based on identical technical concept, the embodiment of the present invention additionally provides a kind of server, as shown in fig. 6, the server
It can include:
Receiving module 610, the web preview instruction sent for receiving terminal, mesh is carried in the web preview instruction
Mark the mark of webpage;
Acquisition module 620, for obtaining the sectional drawing of target webpage according to the mark of the target webpage;
Sending module 630, for the sectional drawing to be sent to the terminal, so that the terminal shows the contracting of the sectional drawing
Sketch map, and the position selected according to user in the thumbnail, intercept the webpage with the position correspondence of selection in the sectional drawing
Region is shown.
Preferably, the acquisition module 620, is specifically used for:
According to the mark of the target webpage, the local sectional drawing for whether being stored with the target webpage is judged;
If it is, obtain the sectional drawing for the target webpage being locally stored;
Otherwise, the target webpage is downloaded according to the mark of the target webpage, and generates the sectional drawing of the target webpage.
Preferably, the receiving module 610, is additionally operable to the search key of receiving terminal transmission;
620 acquisition module, is specifically used for:
According to the mark of the target webpage and described search keyword, judge that local whether be stored with is closed with the search
The sectional drawing of the target webpage of keyword mark;
If it is, obtain the sectional drawing for the target webpage with search key mark being locally stored;
Otherwise, the target webpage is downloaded according to the mark of the target webpage, according to described search keyword to target
Webpage is labeled, and generates the sectional drawing of the target webpage with search key mark.
Preferably, the acquisition module 620, is specifically used for:
According to the mark of the target webpage, the local snapshots of web pages for whether being stored with the target webpage is judged, if
It is the target webpage then to be downloaded according to the snapshots of web pages of the target webpage, otherwise, according to preset rules according to the target
The mark of webpage downloads the target webpage.
Preferably, further include:
Memory module 640, for preserving the sectional drawing of generation.
Preferably, further include:
Generation module 650, the end is sent to for generating the thumbnail of the sectional drawing, and by the thumbnail of the sectional drawing
End.
Based on identical technical concept, the embodiment of the present invention additionally provides a kind of terminal, as shown in fig. 7, the terminal can be with
Including:
Sending module 710, for sending web preview instruction to server, target is carried in the web preview instruction
The mark of webpage, so that the server is according to the sectional drawing of the mark acquisition target webpage of the target webpage;
Receiving module 720, for receiving the sectional drawing of server transmission;
Display module 730, for showing the thumbnail of the sectional drawing;
Interception module 740, for the position selected according to user in the thumbnail, intercept in the sectional drawing with selection
The web page area of position correspondence shown.
Preferably, the receiving module 720, is additionally operable to receive position and webpage area in the thumbnail that the server is set
The correspondence in domain;
The interception module 740, is specifically used for:Position and web page area in the thumbnail set according to the server
Correspondence, determines the web page area for the position correspondence that user selects in the thumbnail;In the sectional drawing described in interception
The image of web page area is shown.
Preferably, the receiving module 720, is additionally operable to:
Receive the thumbnail for the sectional drawing that the server is sent.
Preferably, the display module 730, is specifically used for:
Generate the thumbnail of the sectional drawing;
Show the thumbnail of generation.
The above embodiment of the present invention, the web preview for the mark for carrying target webpage that server receiving terminal is sent
Instruction, the sectional drawing of target webpage and the thumbnail of the sectional drawing are obtained according to the mark of the target webpage, and by the sectional drawing
The terminal is sent to the thumbnail, the terminal shows the thumbnail, and according to cursor of mouse in the thumbnail
In position, the web page area for intercepting the position correspondence in the sectional drawing with selection is shown, to reduce web page browsing process
In to the occupancy of Internet resources.
It will be appreciated by those skilled in the art that the module in device in embodiment can describe be divided according to embodiment
It is distributed in the device of embodiment, respective change can also be carried out and be disposed other than in one or more devices of the present embodiment.On
The module for stating embodiment can be merged into a module, can also be further split into multiple submodule.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be by
Software adds the mode of required general hardware platform to realize, naturally it is also possible to which by hardware, but the former is more in many cases
Good embodiment.Based on such understanding, what technical scheme substantially in other words contributed the prior art
Part can be embodied in the form of software product, which is stored in a storage medium, if including
Dry instruction is used so that a station terminal equipment(Can be mobile phone, personal computer, server, or network equipment etc.)Perform sheet
Invent the method described in each embodiment.
The above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications also should
Depending on protection scope of the present invention.