Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
Fig. 1 shows the implementing procedure of the browsers page navigation method of the handheld terminal that the embodiment of the invention provides, and details are as follows:
In step S101, receive the page resource download request.
Take common user's browse network page resource as example, the user triggers the page resource download request by clickable hyperlinks.This page resource download request carries page address information.
In step S102, according to this download request, download the corresponding page from the internet.
According to the page address information that this download request is carried, download this page resource.Because may also there be the related pages such as some link pages in this page, therefore, in order to guarantee its integrality, can download in the lump its related pages resource.
In step S103, extract the content of current page, generate a plurality of index nodes of corresponding main content of pages, form the navigation thumbnail that comprises a plurality of index nodes.
Navigator window is mainly used in global index, as embodiments of the invention, extracts the homepage content, generates the thumbnail of homepage.Thumbnail provides the global view of current page for the user, and namely this thumbnail can be used as a kind of mode of global index.
In embodiments of the present invention, the generative process of thumbnail is: content of pages as a pictures, is removed blank parts, and literal is replaced (such as " ... ") with abbreviation, the contents such as picture, link by its position in homepage, are generated thumbnail in proportion.
According to the content of pages that extracts, in proportion page zoom-in and zoom-out is the navigation thumbnail, the thumbnail that namely generates can be to obtain by according to a certain percentage the page being carried out convergent-divergent, can certainly be alternate manner, not in order to limit the present invention.
In step S104, set up the position coordinates mapping relations between the index node on content of pages and the navigation thumbnail.
Navigator window mainly provides the global view of homepage, and the index of overall content of pages is provided for the user.Navigator window obtains key map only for main contents in the page with the coordinate scalable manner.Therefore, when the navigation thumbnail that generates, there are one by one mapping relations between the point of the point on the page and navigation thumbnail.
In step S105, calculate the display position of navigator window on screen of handheld terminal.
As embodiments of the invention, when after setting up mapping relations between content of pages and the navigation thumbnail, need to calculate the display position of navigation thumbnail on screen, the demonstration address that namely obtains the navigation thumbnail.For the user in the navigation window, do not affect user's browse screen, navigator window is presented at the opposite direction zone of user's switching direction, for example, when the user need to see the content on current screen the right, press the directionkeys on the direction right side, at this moment, navigator window may be displayed on the Far Left zone.According to different triggering buttons, navigator window is presented at different positions.
In step S106, export the navigator window that comprises the thumbnail that navigates at display position, wherein, the navigator window transperent suspension is on the screen homepage.
As embodiments of the invention, this navigator window comprises the navigation thumbnail that full page is corresponding.
In order to make the user in the navigation window, can browse to local content of pages, as embodiments of the invention, the size of this navigator window is less than the display size of screen of handheld terminal.And take into account the result of browse of content of pages, navigator window, the size of navigator window can be below 1/2 of display size of screen of handheld terminal, for example 1/4, like this, when browsing, the user can think neither that navigator window undersized can too not affect the user yet and browse local content of pages.
In order to make this navigator window not affect page browsing, this navigator window can switch in demonstration, hiding two kinds of patterns.
In embodiments of the present invention, the way of output of the navigator window of navigation thumbnail comprises manual triggers output and automatically triggers output, wherein manual triggers output is to realize calling of navigator window by a certain button on the handheld terminal, for example the user can manually press certain button by this and access navigator window, go forward side by side the choosing of line index node, then carry out checking of content of pages at homepage, again by manually pressing this button navigator window is hidden, do not checked content of pages in order to do not affect the user; Also can click at the screen of handheld terminal by the user and realize calling of navigator window, for example, the user only needs to click at the screen page, navigator window can show output, when the user after navigator window has been selected index node, again click at homepage, navigator window can be hidden, in this embodiment, also a special time can be set, in this special time, this navigator window always transperent suspension on screen, behind the special time that arrives this setting, navigator window is automatically hidden and is disappeared, and then adopts above-mentioned method of calling to call and gets final product; Automatically trigger to be output as and generate the navigation thumbnail, set up mapping relations between content of pages and the navigation thumbnail, automatically show this navigator window of output after calculating the display position of navigator window, this navigator window transperent suspension is checked content of pages for user's click on screen.
In step S107, receive the index node that the user selects at navigator window.
User's navigation window is clicked or touches or can realize by modes such as key control the input of index node by writing pencil.
When full page is larger, accurate not for fear of the index node of location, as embodiments of the invention, can select the index node that needs by multi-level location index.For example, when selecting index node by two level location indexs, the user is after navigator window is selected page location for the first time, and navigator window switches near the thumbnail corresponding to regional area content of page location of this time of output selection, thereby the user can select index node again in thumbnail.
In step S108, show the content of pages of the regional area that the output index node is corresponding at screen homepage window according to mapping relations.
As embodiments of the invention, the regional area that this index node is corresponding is centered by this index node, about respectively extend the M millimeter, respectively extend up and down the rectangular area of N millimeter, wherein, M, N can set as required, and M, N are respectively less than 1/2 of the display screen length and width of handheld terminal.
Certainly, the regional area that this index node is corresponding also can be square, circle, the shapes such as ellipse, even irregular shape.
In embodiments of the present invention, when receiving the new index node of user in navigator window input, focus is adjusted to current page, when the user pays close attention to current page, this moment, focus may also rest on other page, for convenient response user's operation, focus need to be adjusted to current page.
When the user need to browse other content, need mobile page area, when carrying out the switching of homepage zone, do not need again to set type, full page is mobile at screen in the mode of similar bitmap, thereby improves the display efficiency of browser.
In embodiments of the present invention, behind the content of pages of regional area corresponding to the index node of finishing demonstration output at homepage, navigator window disappears automatically.
As embodiments of the invention, can set two kinds of indexing models: single index and hierarchical index.What navigator window showed is the thumbnail of main contents on the homepage, when the resource that comprises when the page is more, when for example accessing the homepage of large-scale portal website, show that in navigator window whole pictures and link will become very difficult, therefore introduce the hierarchical index mode, show granularity to increase content.The hierarchical index mode mainly is that homepage information is divided into several zones, and the zone as node, is presented in the navigator window.After user's click navigates to concrete zonule, show again the thumbnail information that this is regional, reach the effect of layering substep index.
If the hierarchical index pattern, above-mentioned steps S103 also comprises the steps:
Step S1030: the content of the current page that extracts is divided into several zones, as the ground floor index node, forms ground floor navigation thumbnail with these several zones;
Step S1031: according to maximum hierarchical index frequency n, form n layer index node, and n layer navigation thumbnail, wherein n is integer;
Step S1032: the mapping relations of setting up last layer index node and lower one deck navigation thumbnail.
Fig. 2 shows under the hierarchical index pattern index node of the navigator window that receives user selection, and shows the realization flow of the content of pages of the regional area that the output index node is corresponding at screen homepage window, and details are as follows:
In step S201, obtain the index node that the user selects at navigator window.
In step S202, judge whether the hierarchical index number of times reaches maximal value, otherwise execution in step S203, be execution in step S205 then.
Hierarchical index is in order to obtain more accurately index node, and there is a maximal value in the hierarchical index number of times.
As embodiments of the invention, can automatically calculate the maximal value of this hierarchical index number of times, for example, when the page of browsing when the user is current is the homepage of large-scale portal website, when generating thumbnail, can automatically generate the hierarchical index pattern, also can whether need thumbnail to be set to the pattern of hierarchical index with the mode reminding user of prompting, carry out the breviary map generalization according to the corresponding operation of user, wherein, the maximal value of this hierarchical index number of times distributes relevant with size, screen of handheld terminal size and the index of the page.For example, the page for the 800*800 size, the size of screen of handheld terminal is 100*100, calculate first and show the required screen number of full page, be 800*800/100*100=64, distribute (the supposition navascreen once can only show 4 subordinate's index) according to index, namely 64 4 th Roots are 3 again.Therefore, show the page of 800*800 size, need to carry out 3 secondary indexs.
Certainly, also can be as required, the maximal value by the user arranges the hierarchical index number of times because the index of too many number of times brings the complicacy of operation easily, usually, can arrange 2 or 3 or 4 or 5 maximal values as hierarchical index.
In step S203, switch the navigation thumbnail of the corresponding regional area of index node of output user selection at navigator window.
In embodiments of the present invention, when the user switches to next level with navigator window, according to step S104, calculate the mapping relations of last layer index node and content of pages, and show the content of pages of the regional area that this index node of output is corresponding at screen homepage window.
In step S204, the hierarchical index number of times adds 1, when receiving the new index node of user in navigator window input, focus is adjusted to current page, and adjust navigator window, and wait for that again the user inputs index node, returns execution in step S201.
As embodiments of the invention, come the hierarchical index number of times is counted with a counter, switch when output as the user at the navigation page, namely begin counting, every switching output once, counter adds 1.
Hierarchical index and single index can be arranged by the user in system arranges voluntarily.When using the single position indexed mode, the locating speed of its page is very fast, namely finds rapidly index node, but the degree of accuracy of its index node may be not high.And use the hierarchical index mode, and then need by several times Position input operation, finally determine index node, its locating speed is slower, but the degree of accuracy of its index node is then higher.
In step S205, show the content of pages of the regional area that the output index node is corresponding at screen homepage window.
Fig. 3 shows the browsers page navigation system chart of the handheld terminal that the embodiment of the invention provides, for convenience of explanation, only provided the part relevant with the embodiment of the invention among the figure, the browsers page navigation system can be the unit of the software unit, hardware cell or the soft or hard combination that are built in mobile phone.
Navigation thumbnail generation module 11 extracts the content of current page, generates a plurality of index nodes of corresponding main content of pages, forms the navigation thumbnail that comprises these a plurality of index nodes; Mapping relations are set up module 12 and are set up position coordinates mapping relations between content of pages and the index node of navigation on the thumbnail; Position computation module 13 is calculated the display position of navigator window on screen; Navigator window output module 14 shows that at screen output comprises the navigator window of the thumbnail that navigates according to display position; The index node that content of pages output module 15 is selected at navigator window according to the user, and according to the content of pages of mapping relations at regional area corresponding to screen homepage window demonstration output index node.
In embodiments of the present invention, the blank parts that navigation thumbnail generation module 11 is removed in the page that extracts, page literal is replaced with suspension points (" ... "), according to the position of the content that comprises picture, link and literal in the page, form in proportion the navigation thumbnail.
In embodiments of the present invention, when the instruction of navigator window was called in the manual input of user, manual triggers display module 141 is the show navigator window on screen, and in this embodiment, the way of output of navigator window comprises that manual triggers shows and automatic triggering shows.
In embodiments of the present invention, when if the current page content is more, judge whether to carry out hierarchical index, if, the thumbnail generation module 11 that then navigates also is divided into several zones for the content of the current page that will extract, as the ground floor index node, form ground floor navigation thumbnail with these several zones; And according to the hierarchical index frequency n, form n layer index node, and n layer navigation thumbnail, mapping relations are set up the mapping relations that module 12 also is used for setting up upper strata index node and lower floor's navigation thumbnail; Content of pages output module 15 also is used for judging that the hierarchical index number of times has reached maximal value simultaneously, if do not reach maximal value, then at lower one deck navigation thumbnail of regional area corresponding to the index node of navigator window switching output user selection, show the content of pages of the regional area that the output index node is corresponding at screen homepage window; When not carrying out hierarchical index, when perhaps the hierarchical index number of times has reached maximal value, show the content of pages of the regional area that the output index node is corresponding at screen homepage window.
In embodiments of the present invention, when the user switches to next level with navigator window, mapping relations are set up module 12 also for the mapping relations of calculating between last layer index node and the content of pages, and content of pages output module 15 shows the content of pages of the regional area that this index node of output is corresponding according to described mapping relations at screen homepage window.
In embodiments of the present invention, after navigator window output module 14 was finished the content of pages of regional area corresponding to the index node that shows output at homepage, navigator window disappearance control module 16 control navigator windows disappeared automatically; Transperent suspension module 17 floats on the homepage navigator window is transparent.
In sum, generate the navigation thumbnail according to the content of pages that extracts, set up position coordinates mapping relations between the index node on content of pages and the navigation thumbnail, calculate the display position on screen of navigator window, and output comprises the navigator window of thumbnail, the index node of selecting at navigator window according to the user simultaneously, and according to the content of pages of mapping relations at the corresponding regional area of screen homepage window demonstration output index node.Like this, during user's browsing pages, just content of pages there is the understanding of the overall situation, can locates fast and browse to the interested content of user self on this page.The user can select whether to use the navigator window of the page according to the hobby of oneself, and window ejects shortcut as leading by setting, and when needs used navigator window, the user pressed shortcut and activates navigator window, again presses shortcut and can close navigator window.Mode by hierarchical index can accurately obtain index node.
One of ordinary skill in the art will appreciate that all or part of step that realizes in above-described embodiment method is to come the relevant hardware of instruction to finish by program, described program can be in being stored in a computer read/write memory medium, described storage medium is such as ROM/RAM, disk, CD etc.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.