Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification 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.
With common user's browse network page resource is example, and the user triggers the page resource download request by clickable hyperlinks.This page resource download request carries page address information.
In step S102,, download the corresponding page from the internet according to this download request.
According to the page address information that this download request is carried, download this page resource.Because may also there be related pages such as some link pages in this page, therefore, in order to guarantee its integrality, can download its related pages resource in the lump.
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 promptly 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 (as " ... ") with abbreviation, 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, promptly the thumbnail of Sheng Chenging 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 restriction 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 at main contents in the page with the coordinate scalable manner.Therefore, when the navigation thumbnail that generates, there are mapping relations one by one between the point of point on the page and navigation thumbnail.
In step S105, calculate the display position of navigator window on the handheld terminal screen.
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, promptly obtain the explicit address of navigation thumbnail.For the user when browsing navigator window, do not influence user's browse screen, navigator window is presented at the opposite direction zone of user's switching direction, for example, when the user need 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 of full page correspondence.
In order to make the user when browsing navigator 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 handheld terminal screen.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 handheld terminal screen, for example 1/4, like this, when browsing, the user can think neither that navigator window undersized can too not influence the user yet and browse local content of pages.
In order to make this navigator window not influence 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 triggers output automatically, 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, carry out checking of content of pages at homepage then, by manually pressing this button navigator window is hidden once more, do not checked content of pages so that do not influence the user; Also can on the screen of handheld terminal, click and realize calling of navigator window by the user, for example, the user only needs to click on the screen page, navigator window can show output, when the user after having selected index node on the navigator window, on homepage, click once more, 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 hidden automatically and is disappeared, and adopts above-mentioned method of calling to call then 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, show this navigator window of output automatically 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 on navigator window.
The user browses navigator window, clicks or touch or can realize by modes such as key control the input of index node by writing pencil.
When full page is big, accurate inadequately 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 of the regional area content correspondence of page location of this time of output selection, thereby the user can select index node once more in thumbnail.
In step S108, on screen homepage window, show the content of pages of the regional area of output index node correspondence according to mapping relations.
As embodiments of the invention, the regional area of this index node correspondence is for being the center with this index node, about respectively extend the M millimeter, respectively extend the rectangular area of N millimeter up and down, 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 of this index node correspondence also can be shapes such as square, circle, ellipse, even irregular shape.
In embodiments of the present invention, when receiving the new index node of user, focus is adjusted to current page in navigator window input, 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 be adjusted to current page.
When the user need browse other content, need mobile page area, when carrying out the switching of homepage zone, do not need to set type again, full page moves on 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 the regional area of finishing the index node correspondence that shows 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, the resource that comprises when the page when for example visiting the homepage of large-scale portal website, shows that in navigator window whole pictures and link will become very difficult more for a long time, 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 the thumbnail information that this is regional again, 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 extracted 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 an integer;
Step S1032: the mapping relations of setting up last layer index node and following one deck navigation thumbnail.
Fig. 2 shows the index node of the navigator window that receives user's selection under the hierarchical index pattern, and shows the realization flow of the content of pages of the regional area of exporting the index node correspondence on 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 index node more accurately, and there is a maximal value in the hierarchical index number of times.
As embodiments of the invention, can calculate the maximal value of this hierarchical index number of times automatically, for example, when the page of browsing when the user is current is the homepage of large-scale portal website, when generating thumbnail, can generate the hierarchical index pattern automatically, also can remind the user whether to need thumbnail to be set to the pattern of hierarchical index in the mode 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, handheld terminal screen size and the index of the page.For example, the page for the 800*800 size, the size of handheld terminal screen is 100*100, calculate earlier 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, promptly 64 4 roots are 3 again.Therefore, show 800
*The page of 800 sizes need carry out 3 secondary indexs.
Certainly, also can be as required, the maximal value by the user is provided with the hierarchical index number of times because the index of too many number of times brings the complicacy of operation easily, usually, can be provided with 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 on screen homepage window, show the content of pages of the regional area of this index node correspondence of output.
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 imports index node, returns execution in step S201.
As embodiments of the invention, use a counter to come the hierarchical index number of times is counted, switch when output as the user at the navigation page, promptly begin counting, every switching output once, counter adds 1.
Hierarchical index and single index can be provided with by the user in system is provided with voluntarily.When using the single position indexed mode, the locating speed of its page is very fast, promptly finds index node rapidly, but the degree of accuracy of its index node may be not high.And use the hierarchical index mode, and then need by position input operation several times, finally determine index node, its locating speed is slower, but the degree of accuracy of its index node is then higher.
In step S205, on screen homepage window, show the content of pages of the regional area of output index node correspondence.
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 according to display position output comprises the navigator window of the thumbnail that navigates on screen; The index node that content of pages output module 15 is selected on navigator window according to the user, and on screen homepage window, show the content of pages of the regional area of output index node correspondence according to mapping relations.
In embodiments of the present invention, the blank parts that navigation thumbnail generation module 11 is removed in the page that is extracted, page literal is replaced with suspension points (" ... "),, form the navigation thumbnail in proportion according to the position of the content that comprises picture, link and literal in the page.
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, if the current page content more for a long time, judge whether to carry out hierarchical index, if, the content that the thumbnail generation module 11 that then navigates also is used for the current page that will be extracted is divided into several zones, as the ground floor index node, form ground floor navigation thumbnail with these several zones; And, forming n layer index node and n layer navigation thumbnail according to the hierarchical index frequency n, mapping relations are set up the mapping relations that module 12 also is used to set up upper strata index node and lower floor's navigation thumbnail; Content of pages output module 15 is used for also judging simultaneously that the hierarchical index number of times has reached maximal value, if do not reach maximal value, then switch following one deck navigation thumbnail of the regional area of the index node correspondence of exporting user's selection, on screen homepage window, show the content of pages of the regional area of output index node correspondence at navigator window; When not carrying out hierarchical index, when perhaps the hierarchical index number of times has reached maximal value, on screen homepage window, show the content of pages of the regional area of output index node correspondence.
In embodiments of the present invention, when the user switches to next level with navigator window, mapping relations are set up module 12 and also are used to calculate mapping relations 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 of this index node correspondence of output according to described mapping relations on screen homepage window.
In embodiments of the present invention, after navigator window output module 14 was finished the content of pages of the regional area that shows the index node correspondence of exporting 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 on navigator window, selecting according to the user simultaneously, and on screen homepage window, shows the content of pages of output index node correspondence regional area according to mapping relations.Like this, during user's browsing pages, just content of pages there is the understanding of the overall situation, can locatees and browse to the interested content of user self on this page fast.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, presses shortcut once more 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 the foregoing description method is to instruct relevant hardware to finish by program, described program can be in being stored in a computer read/write memory medium, described storage medium is as ROM/RAM, disk, CD etc.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done 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.