Summary of the invention
The objective of the invention is defective, propose a kind of webpage focus and move and control Flash method of navigation and implement device thereof, use keyboard or telepilot control web page contents to browse the application of navigating with Flash to solve to the prior art this respect.
The purpose of air navigation aid of the present invention; To be achieved through following technical scheme: a kind of webpage focus moves and controls the Flash method of navigation; Realize based on the directionkeys of telepilot or keyboard and the processor of web page browsing application product, it is characterized in that comprising the steps:
S1: initialization step, processor obtains the position of whole nodes in the current page and effective coverage separately through the node tree of the Webpage or the Flash page, and the acquiescence moving step length of initialization focus and maximum jump radius;
S2: step is initiated in the focus request of moving, and the focus of user's direction of passage key input tool directivity moves request;
S3: the request response of step, processor moves the anticipated orientation of request according to current focus position and focus, being the center of circle with the current focus position, being radius and in the sector region of anticipated orientation with the maximum jump radius, searches nearest node from node tree;
S4: focus moves step, comprises S41: processor is judged distance between nearest node location and current focus position less than the maximum jump radius, and then moving focal point is to the position of nearest node; S42: processor is judged distance between nearest node location and current focus position greater than the maximum jump radius, then with acquiescence moving step length moving focal point on the anticipated orientation of request.
Further, in the initialization step of step S1, the minimum moving step length of processor initialization focus, maximum moving step length, maximum jump radius, historical behavior record and repetition behavior counting; With minimum moving step length moving focal point on the anticipated orientation of request, and said method also comprises behind step S42 among the step S42:
S5: focus mobile behavior historical record step, write down not simultaneously at current mobile behavior and historical behavior, current mobile behavior is saved as the historical behavior record, and zero clearing repetition behavior counting; Write down when identical at current mobile behavior and historical behavior, repetition behavior counting adds one;
S6: focus moves accelerating step, when the repetition behavior is counted greater than three, with maximum moving step length moving focal point on the anticipated orientation of request; When repetition behavior counting less than three or equal three, repeat current mobile behavior.
Further, said node location is with the center calculation of node effective coverage.
The purpose of guider of the present invention; To be achieved through following system schema: a kind of webpage focus moves and controls the implement device of Flash navigation; Constitute by the directionkeys of telepilot or keyboard and the processor of web page browsing application product, it is characterized in that comprising:
Initialization module is used for processor through the position of the whole nodes of node tree acquisition current page of the Webpage or the Flash page and effective coverage separately, and the acquiescence moving step length of initialization focus and maximum jump radius;
Focus moves the request initiation module, and the focus that is used for user's direction of passage key input tool directivity moves request;
The request respond module is used for processor and moves the anticipated orientation of request according to current focus position and focus, being the center of circle with the current focus position, being radius and in the sector region of anticipated orientation with the maximum jump radius, searches nearest node from node tree;
The first focus mobile module is used for processor and judges distance between nearest node location and current focus position less than the maximum jump radius, and then moving focal point is to the position of nearest node; Or the second focus mobile module, be used for processor and judge that distance between nearest node location and current focus position is greater than the maximum jump radius, then with acquiescence moving step length moving focal point on the anticipated orientation of request.
Further, said initialization module also is used for the minimum moving step length of processor initialization focus, maximum moving step length, maximum jump radius, historical behavior record and repetition behavior counting; The said second focus mobile module is with minimum moving step length moving focal point on the anticipated orientation of request, and said implement device also comprises:
Focus mobile behavior history module is used for writing down not simultaneously at current mobile behavior and historical behavior, and current mobile behavior is saved as the historical behavior record, and zero clearing repetition behavior counting; Write down when identical at current mobile behavior and historical behavior, repetition behavior counting adds one;
Focus moves accelerating module, is used for counting greater than three when the repetition behavior, with maximum moving step length moving focal point on the anticipated orientation of request; When repetition behavior counting less than three or equal three, repeat current mobile behavior.
Further, said node location is the center of node effective coverage.
Webpage focus of the present invention moves and controls the application of Flash method of navigation and implement device thereof, compares to the existing mode of using keyboard or telepilot control browsing pages, can conveniently handle the page focus control that comprises the Flash content.In location quick and precisely, compatible preferably control to the Flash navigation.
Following constipation closes accompanying drawing, and specific embodiments of the invention is done further to detail, so that technical scheme of the present invention is easier to understand, grasp.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer, describe the present invention below in conjunction with accompanying drawing and specific embodiment.
As shown in Figure 1, in an embodiment of the present invention, said webpage focus moves and controls the Flash method of navigation, realizes based on the directionkeys of telepilot or keyboard and the processor of web page browsing application product, comprises the steps.
S1: initialization step, processor obtains the position of whole nodes in the current page and effective coverage separately through the node tree of the Webpage or the Flash page, and the acquiescence moving step length of initialization focus and maximum jump radius.Wherein node location is with the center calculation of node effective coverage.In general, Webpage has nearly ten to up to a hundred nodes, and the mode of therefore traditional tab key navigation obviously implements comparatively inconvenience, and in case miss, and must travel through again or by means of other instruments such as mouses.
S2: step is initiated in the focus request of moving, and the user moves request through the focus of the directionkeys input tool directivity of telepilot or keyboard, can be infrared remote control signal, also can be the button physical signalling.
S3: request response of step; The processor of web page browsing application product moves the anticipated orientation of request according to current focus position and focus; Being the center of circle with the current focus position, being radius and in the sector region of anticipated orientation, search node from node tree with the maximum jump radius.In this sector region, possibly have a plurality of nodes, this moment, system can relatively pay close attention to nearest node; Also maybe a node all do not have, this moment, system default was that distance between nearest node location and current focus position is greater than the maximum jump radius.
S4: focus moves step, comprises S41: processor is judged distance between nearest node location and current focus position less than the maximum jump radius, and then moving focal point is to the position of nearest node; S42: processor is judged distance between nearest node location and current focus position greater than the maximum jump radius, then with acquiescence moving step length moving focal point on the anticipated orientation of request.
Such scheme can also further be optimized: in the initialization step of step S1, the initialized content of processor comprises the minimum moving step length of focus, maximum moving step length, maximum jump radius, historical behavior record and repetition behavior counting; Among the step S42 with minimum moving step length the request anticipated orientation on moving focal point; And said method also comprises S5 behind step S42: focus mobile behavior historical record step; Write down not simultaneously at current mobile behavior and historical behavior; Current mobile behavior is saved as the historical behavior record, and zero clearing repetition behavior counting; Write down when identical at current mobile behavior and historical behavior, repetition behavior counting adds one; S6: focus moves accelerating step, when the repetition behavior is counted greater than three, with maximum moving step length moving focal point on the anticipated orientation of request; When repetition behavior counting less than three or equal three, repeat current mobile behavior.Certainly, this just quickens a kind of mode that focus moves, and a plurality of moving step length standards can be set and select criterion to implement.Here for knowing that brief description quickens feasibility, only the accelerator with comparatively simple minimum, maximum moving step length is an example.
As shown in Figure 4; In an embodiment of the present invention; Said webpage focus moves and controls the implement device of Flash navigation, constitutes based on the directionkeys of telepilot or keyboard and the processor of web page browsing application product, and it comprises: initialization module; Be used for processor through the position of the whole nodes of node tree acquisition current page of the Webpage or the Flash page and effective coverage separately, and the acquiescence moving step length of initialization focus and maximum jump radius; Wherein node location is with the center calculation of node effective coverage.In general, Webpage has nearly ten to up to a hundred nodes, and the mode of therefore traditional tab key navigation obviously implements comparatively inconvenience, and in case miss, and must travel through again or by means of other instruments such as mouses.
Focus moves the request initiation module, and the focus that is used for the directionkeys input tool directivity of user through telepilot or keyboard moves request, can be infrared remote control signal, also can be the button physical signalling.
The request respond module; The processor that is used for the web page browsing application product moves the anticipated orientation of request according to current focus position and focus; Being the center of circle with the current focus position, being radius and in the sector region of anticipated orientation, search nearest node from node tree with the maximum jump radius.In this sector region, possibly have a plurality of nodes, this moment, system can relatively pay close attention to nearest node; Also maybe a node all do not have, this moment, system default was that distance between nearest node location and current focus position is greater than the maximum jump radius.
The first focus mobile module is used for processor and judges distance between nearest node location and current focus position less than the maximum jump radius, and then moving focal point is to the position of nearest node; Or the second focus mobile module, be used for processor and judge that distance between nearest node location and current focus position is greater than the maximum jump radius, then with acquiescence moving step length moving focal point on the anticipated orientation of request.
Above-mentioned implement device can also be optimized further, and particularly, said initialization module also is used for the minimum moving step length of processor initialization focus, maximum moving step length, maximum jump radius, historical behavior record and repetition behavior counting; The said second focus mobile module is with minimum moving step length moving focal point on the anticipated orientation of request; And said implement device also comprises: focus mobile behavior history module; Be used for writing down not simultaneously at current mobile behavior and historical behavior; Current mobile behavior is saved as the historical behavior record, and zero clearing repetition behavior counting; Write down when identical at current mobile behavior and historical behavior, repetition behavior counting adds one; Move accelerating module with focus, be used for counting greater than three, with maximum moving step length moving focal point on the anticipated orientation of request when the repetition behavior; When repetition behavior counting less than three or equal three, repeat current mobile behavior.
Below in conjunction with two embodiment schematic flow sheets as shown in Figures 2 and 3, more specifically specify the implementation procedure of the inventive method.
A preferred implementation as shown in Figure 2: processor obtains the position of whole nodes in the current page and effective coverage separately through the node tree of the Webpage or the Flash page earlier; And the acquiescence moving step length of initialization focus and maximum jump radius, wait for user's input behavior.
The user moves request through the focus of the directionkeys input tool directivity of telepilot or keyboard then, can be infrared remote control signal, also can be the button physical signalling.
Then the processor of web page browsing application product obtains the nearest node location on the moving direction according to node tree information.Move the anticipated orientation of request according to current focus position and focus particularly,, search node from node tree being the center of circle with the current focus position, being radius and in the sector region of anticipated orientation with the maximum jump radius.In this sector region, possibly have a plurality of nodes, this moment, system can relatively pay close attention to nearest node; Also maybe a node all do not have, this moment, system default was that distance between nearest node location and current focus position is greater than the maximum jump radius.
Last focus moves, and comprises two kinds of situation: processors are judged distance between nearest node location and current focus position less than the maximum jump radius, and then moving focal point arrives the position of nearest node; The two processor judges that distance between nearest node location and current focus position is greater than the maximum jump radius; Then with acquiescence moving step length moving focal point on the anticipated orientation of request; Accomplish response one secondary foci and move requested operation; If also do not find desired node, then continue the service orientation key and on each node of Webpage, navigate.Because this navigate mode is more directly perceived, can adopt the directionkeys navigation according to the orientation of the relative current focus of destination node, have clear and definite directivity, turning back property.Therefore has the outstanding feature that is superior to prior art.
A preferred embodiments as shown in Figure 3: processor obtains the position of whole nodes in the current page and effective coverage separately through the node tree of the Webpage or the Flash page earlier, and the initialized content of initialization comprises the minimum moving step length of focus, maximum moving step length, maximum jump radius, historical behavior record and repetition behavior counting.
Intermediate steps is identical with preferred embodiment, so repeat no more.Last focus moves, and comprises multiple situation: processors are judged distance between nearest node location and current focus position less than the maximum jump radius, and then moving focal point arrives the position of nearest node; The two processor judges that distance between nearest node location and current focus position is greater than the maximum jump radius; Then with minimum moving step length moving focal point on the anticipated orientation of request; Accomplish response one secondary foci and move requested operation; But such moving can't reach nearest node certainly, also need continue the service orientation key once more input focus move request.At this moment, focus moves at current mobile behavior and historical behavior and writes down not simultaneously, and current mobile behavior is saved as the historical behavior record, and zero clearing repetition behavior counting; Write down when identical at current mobile behavior and historical behavior, repetition behavior counting adds one; , when the repetition behavior is counted greater than three,, promptly quicken focus and move with maximum moving step length moving focal point on the anticipated orientation of request, it is navigated to destination node fast; When repetition behavior counting less than three or equal three, repeat current mobile behavior, promptly continue with minimum moving step length moving focal point.
Because this navigate mode is more directly perceived, can adopt the directionkeys navigation according to the orientation of the relative current focus of destination node, have clear and definite directivity, turning back property.Therefore has the outstanding feature that is superior to prior art.
Use webpage focus of the present invention and move and control Flash method of navigation and implement device thereof, compare to the existing mode of using keyboard or telepilot control browsing pages, can conveniently handle the page focus control that comprises the Flash content.In location quick and precisely, compatible preferably control to the Flash navigation.
Be to be understood that; Though this instructions is described according to embodiment; But be not that each embodiment only comprises an independently technical scheme, this narrating mode of instructions only is for clarity sake, and those skilled in the art should make instructions as a whole; Technical scheme in each embodiment also can form other embodiments that it will be appreciated by those skilled in the art that through appropriate combination.
The listed a series of detailed description of preceding text only is specifying to feasibility embodiment of the present invention; They are not in order to restriction protection scope of the present invention, allly do not break away from equivalent embodiment or the change that skill of the present invention spirit done and all should be included within protection scope of the present invention.