CN103678574A - Method and device for switching webpage focuses - Google Patents

Method and device for switching webpage focuses Download PDF

Info

Publication number
CN103678574A
CN103678574A CN201310665361.3A CN201310665361A CN103678574A CN 103678574 A CN103678574 A CN 103678574A CN 201310665361 A CN201310665361 A CN 201310665361A CN 103678574 A CN103678574 A CN 103678574A
Authority
CN
China
Prior art keywords
key information
last time
focus
webpage
information receiving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310665361.3A
Other languages
Chinese (zh)
Other versions
CN103678574B (en
Inventor
丁送星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310665361.3A priority Critical patent/CN103678574B/en
Publication of CN103678574A publication Critical patent/CN103678574A/en
Application granted granted Critical
Publication of CN103678574B publication Critical patent/CN103678574B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a method and device for switching webpage focuses, and belongs to the technical field of information processing. The method includes the steps of obtaining currently-received key information, and judging the type of the currently-received key information; if the currently-received key information is direction information, judging whether last-time-received key information is value information or not and whether the time difference of the last-time-received key information and the currently-received key information is smaller than a threshold value or not; if the last-time-received key information is the value information, and the time difference of the last-time-received key information and the currently-received key information is smaller than the threshold value, switching the webpage focuses according to the last-time-received value information and the currently-received direction information. According to the method and device, after it is judged that the currently-received key information is the direction information, the last-time-received key information is the value information, and the time difference of the last-time-received key information and the currently-received key information is smaller than the threshold value, the webpage focuses are switched according to the value information and the direction information, and therefore the switching efficiency is improved.

Description

Switch method and the device of webpage focus
Technical field
The present invention relates to technical field of information processing, particularly a kind of method and device that switches webpage focus.
Background technology
Along with the develop rapidly of infotech, the wired home equipment such as intelligent television, hybrid Set Top Box have progressively been come into people's the visual field.For the services such as online chatting, Online Video are provided to people, above-mentioned wired home equipment needs accessing Internet more and more.Behind above-mentioned wired home equipment access internet, user utilizes telepilot the webpage showing in TV screen to be controlled to reach the object of browsing page conventionally.Therefore, for browsing page fast and easily, how the webpage focus in webpage is switched to control webpage, become the problem that those skilled in the art comparatively pay close attention to.
Prior art, when switching webpage focus, adopts two kinds of methods conventionally.First method, receives the key information that telepilot sends, and the specific keys that this key information is pressed on telepilot by user triggers; According to this key information, webpage focus is sequentially switched according to the establishment of web page element.Take Fig. 1 as example, the order of arrow indication represents the establishment order of web page element, webpage focus is currently located at the position at web page element 11 places, as webpage focus being switched to the position at web page element 20 places by the position at web page element 11 places, need to receive the key information of 9 inputs, then according to web page element 12 to the order of web page element 19, webpage focus is switched to the position at web page element 20 places successively according to 9 key informations.
Second method, receives the key information that telepilot sends, this key information by user by telepilot upper and lower, left and right key-press input; According to this key information, webpage focus is switched.Take Fig. 2 as example, webpage focus is currently located at the position at web page element 13 places, as webpage focus switched to the position at web page element 33 places by the position at web page element 13 places, need to receive the key information of 3 inputs, then according to the order of web page element 18, web page element 23, web page element 28, web page element 33, webpage focus is switched to the position at web page element 33 places successively according to 3 key informations.
In realizing process of the present invention, inventor finds that prior art at least exists following problem:
No matter for first kind of way or the second way, when web page element is more, when switching webpage focus, the number of times of key information that needs to receive user's input is all a lot; For example, in Fig. 1, webpage focus is switched to the position at web page element 9 places from the position at web page element 11 places, need to receives the key information of 19 user's inputs; In Fig. 2, webpage focus is switched to the position at web page element 35 places from the position at web page element 1 place, need to receives 10 key informations of user's input; Thereby cause switching efficiency low, user experience is poor.
Summary of the invention
In order to solve the problem of prior art, the embodiment of the present invention provides a kind of method and device that switches webpage focus.Described technical scheme is as follows:
First aspect, provides a kind of method of switching webpage focus, and described method comprises:
Obtain the current key information receiving, and judge the type of the current key information receiving;
If the key information receiving current is directional information, judges whether the key information receiving last time is numerical information, and whether the time difference that received key information and current reception key information last time is less than threshold value;
If the key information receiving last time is numerical information, and the time difference that received key information and current reception key information last time be less than threshold value, according to the numerical information receiving last time and the current directional information receiving, switch webpage focus.
In the possible implementation of the first of first aspect, described according to the numerical information receiving last time and the current directional information switching webpage focus receiving, comprising:
Numerical value corresponding to the numerical information receiving last time is defined as to the switching times of described webpage focus, and is the switching direction of described webpage focus by orientation determination corresponding to the current directional information receiving;
According to described switching times and described switching direction, switch described webpage focus.
In conjunction with first aspect, in the possible implementation of the second of first aspect, describedly judge whether the key information receiving last time is numerical information, and after the time difference that received key information and current reception key information last time is less than threshold value, described method also comprises:
If received the time difference of key information and current reception key information last time, be greater than described threshold value, the current directional information receiving is defined as to the switching direction of described webpage focus, and described webpage focus is switched to the next web page element that described switching direction is corresponding.
In conjunction with first aspect, in the third possible implementation of first aspect, after the type of the current key information receiving of described judgement, described method also comprises:
If the key information receiving current is numerical information, judges whether the key information receiving last time is numerical information, and whether the time difference that received key information and current reception key information last time is less than threshold value;
If the key information receiving last time is numerical information, and the time difference that received key information and current reception key information last time is less than threshold value, numerical value corresponding to the current numerical information receiving and numerical value corresponding to numerical information receiving last time are combined to the switching times while switching described webpage focus to determine.
In conjunction with the first of first aspect or first aspect, to the third possible implementation, the 4th kind of possible implementation, described method also comprises:
Space-number between the non-focus element of display web page and webpage focus element;
Wherein, described webpage focus element refers to the web page element of described webpage focus position; The non-focus element of described webpage refers to that the permission of other positions except described webpage focus position obtains the web page element of described webpage focus.
In conjunction with the 4th kind of possible implementation of first aspect, in the 5th kind of possible implementation, before the space-number between the non-focus element of described display web page and webpage focus element, described method also comprises:
Whether point out the space-number between the non-focus element of display web page and webpage focus element;
If receive the confirmation that shows the space-number between the non-focus element of described webpage and webpage focus, calculate the space-number between the non-focus element of each webpage and webpage focus element, and each space-number calculating is shown.
Second aspect, provides a kind of device that switches webpage focus, and described device comprises:
Acquisition module, for obtaining the current key information receiving;
The first judge module, for judging the type of the current key information receiving of described acquisition module;
The second judge module, for when the current key information receiving of described the first judge module judgement is directional information, judge whether the key information receiving last time is numerical information, and whether the time difference that received key information and current reception key information last time is less than threshold value;
Handover module, for judging that when described the second judge module the key information receiving last time is numerical information, and the time difference that received key information and current reception key information last time, while being less than threshold value, is switched webpage focus according to the numerical information receiving last time and the current directional information receiving.
In the possible implementation of the first of second aspect, described handover module, comprising:
The first determining unit, is defined as the switching times of described webpage focus for numerical value corresponding to numerical information that received last time;
The second determining unit, for being the switching direction of described webpage focus by orientation determination corresponding to the current directional information receiving;
The first switch unit, for switching described webpage focus according to the definite switching times of described the first determining unit and the definite switching direction of described the second determining unit.
In conjunction with second aspect, in the possible implementation of the second of second aspect, described handover module, comprising:
The 3rd determining unit, while being greater than described threshold value for the time difference that received key information and current reception key information last time when described the second judge module judgement, is defined as the current directional information receiving the switching direction of described webpage focus;
The second switch unit, for switching to by described webpage focus the next web page element that described switching direction is corresponding.
In conjunction with second aspect, in the third possible implementation of second aspect, described device also comprises:
The 3rd judge module, for when the current key information receiving of described the first judge module judgement is numerical information, judge whether the key information receiving last time is numerical information, and whether the time difference that received key information and current reception key information last time is less than threshold value;
Composite module, for judging that when described the 3rd judge module the key information receiving last time is numerical information, and the time difference that received key information and current reception key information last time is while being less than threshold value, numerical value corresponding to the current numerical information receiving and numerical value corresponding to numerical information receiving last time are combined to the switching times while switching described webpage focus to determine.
In conjunction with the first of second aspect or second aspect, to the third possible implementation, the 4th kind of possible implementation, described device also comprises:
Display module, for the space-number between the non-focus element of display web page and webpage focus element;
Wherein, described webpage focus element refers to the web page element of described webpage focus position; The non-focus element of described webpage refers to that the permission of other positions except described webpage focus position obtains the web page element of described webpage focus.
In conjunction with the 4th kind of possible implementation of second aspect, in the 5th kind of possible implementation, described device also comprises:
Whether reminding module, for pointing out the space-number between the non-focus element of display web page and webpage focus element;
Computing module, for when receiving the confirmation that shows the space-number between the non-focus element of described webpage and webpage focus element, calculates the space-number between the non-focus element of each webpage and webpage focus element;
Described display module, shows for each space-number that described computing module is calculated.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
Getting the current key information receiving, judge that the current key information receiving is directional information, and judge that the key information receiving last time is numerical information, and the time difference that received key information and current reception key information last time is less than after threshold value, according to the numerical information receiving last time and the current directional information receiving, switch webpage focus, thereby the switching efficiency that has promoted webpage focus, has improved user experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the integrated stand composition that the first provided by the invention is switched webpage focus;
Fig. 2 is the integrated stand composition that the second provided by the invention switches webpage focus;
Fig. 3 is a kind of method flow diagram that switches webpage focus that the embodiment of the present invention one provides;
Fig. 4 is a kind of method flow diagram that switches webpage focus that the embodiment of the present invention two provides;
Fig. 5 is a kind of webpage integrated stand composition that shows space-number that the embodiment of the present invention two provides;
Fig. 6 is the structural representation that the first of providing of the embodiment of the present invention three is switched the device of webpage focus;
Fig. 7 is the inner structure schematic diagram of the first handover module of providing of the embodiment of the present invention three;
Fig. 8 is the inner structure schematic diagram of the second handover module of providing of the embodiment of the present invention three;
Fig. 9 is the structural representation that the second of providing of the embodiment of the present invention three switches the device of webpage focus;
Figure 10 be the embodiment of the present invention three provide the third switch the structural representation of the device of webpage focus;
Figure 11 is the 4th kind of structural representation that switches the device of webpage focus that the embodiment of the present invention three provides;
Figure 12 is a kind of structural representation that switches the equipment of webpage focus that the embodiment of the present invention four provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment mono-
The embodiment of the present invention provides a kind of method of switching webpage focus, is applied to user and by telepilot, carries out the scene of webpage focus switching, to realize the object of fast browsing webpage.Referring to Fig. 3, the method flow that the present embodiment provides comprises:
301: obtain the current key information receiving, and judge the type of the current key information receiving;
Further, after judging the type of the current key information receiving, the method also comprises:
If the key information receiving current is numerical information, judges whether the key information receiving last time is numerical information, and whether the time difference that received key information and current reception key information last time is less than threshold value;
If the key information receiving last time is numerical information, and the time difference that received key information and current reception key information last time is less than threshold value, numerical value corresponding to the current numerical information receiving and numerical value corresponding to numerical information receiving last time are combined to the switching times while switching webpage focus to determine.
302: the key information receiving if current is directional information, judge whether the key information receiving last time is numerical information, and whether the time difference that received key information and current reception key information last time is less than threshold value;
Further, judge whether the key information receiving last time is numerical information, and after the time difference that received key information and current reception key information last time is less than threshold value, the method also comprises:
If received the time difference of key information and current reception key information last time, be greater than threshold value, the current directional information receiving be defined as to the switching direction of webpage focus, and webpage focus was switched to the next web page element that switching direction is corresponding.
303: if the key information receiving last time is numerical information, and the time difference that received key information and current reception key information last time be less than threshold value, according to the numerical information receiving last time and the current directional information receiving, switch webpage focus.
Further, according to the numerical information receiving last time and the current directional information receiving, switch webpage focus, include but not limited to:
Numerical value corresponding to the numerical information receiving last time is defined as to the switching times of webpage focus, and is the switching direction of webpage focus by orientation determination corresponding to the current directional information receiving;
According to switching times and switching direction, switch webpage focus.
Further, the method also comprises:
Space-number between the non-focus element of display web page and webpage focus element;
Wherein, webpage focus element refers to the web page element of webpage focus position; The non-focus element of webpage refers to that the permission of other positions except webpage focus position obtains the web page element of webpage focus.
Further, before the space-number between the non-focus element of display web page and webpage focus element, the method also comprises:
Whether point out the space-number between the non-focus element of display web page and webpage focus element;
If receive the confirmation of the space-number between the non-focus element of display web page and webpage focus element, calculate the non-focus element of each webpage and webpage focus element and between space-number, and each space-number calculating is shown.
The method that the present embodiment provides, getting the current key information receiving, judge that the current key information receiving is directional information, and judge that the key information receiving last time is numerical information, and the time difference that received key information and current reception key information last time is less than after threshold value, according to the numerical information receiving last time and the current directional information receiving, switch webpage focus, thereby promoted the switching efficiency of webpage focus, improved user experience; In addition, at the key information of judgement reception last time and the key information of current reception, be after numerical information, the numerical value numerical value corresponding with the key information of current reception corresponding to key information that received last time combines, to determine the switching times of webpage focus, thereby expanded the switching mode of webpage focus, promoted further the switching efficiency of webpage focus; In addition, by the space-number between display web page focus element and the non-focus element of webpage, can carry out fast the switching of webpage focus, promote user experience.
Embodiment bis-
The embodiment of the present invention provides a kind of method of switching webpage focus, the mode of the existing switching webpage focus providing in conjunction with above-described embodiment one, and the method for the switching webpage focus that the embodiment of the present invention is provided is at length explained.Referring to Fig. 4, the method flow that the present embodiment provides comprises:
401: obtain the current key information receiving, and judge the type of the current key information receiving;
For this step, arbitrary button that user presses on telepilot can trigger the telepilot transmission key information corresponding with this button; And the device that switches webpage focus is after receiving the key information of telepilot transmission, the key information receiving can be stored in the storage mediums such as internal memory, flash memory or storage card, follow-up when obtaining key information to facilitate, can from storage medium, directly obtain.Therefore,, when obtaining the current key information receiving, can obtain in the following way:
Obtain the key information of the current transmission of telepilot, and this key information is stored in storage medium.
Certainly, except the above-mentioned mode of obtaining the current key information receiving, also can take other obtain manners, the present embodiment is not done concrete restriction to this.
In addition, the type of key information includes but not limited to three major types type, i.e. directional information, numerical information and other information.Wherein, directional information refers to the corresponding all directions of direction key on telepilot, comprises upper and lower, left and right four direction; Numerical information refers to corresponding each numerical value of numerical value button on telepilot, comprises numerical value 0 to 9; Other information refer to the information except directional information and numerical information, the corresponding information of other buttons except direction key and numerical value button on corresponding telepilot.
Wherein, judge the specific implementation of the type of the current key information receiving, include but not limited to:
If the key information receiving current is the arbitrary numerical value in numerical value 0 to 9, judges that the current key information receiving is numerical information;
If the key information receiving current is either direction information in the four direction information of upper and lower, left and right, judges that the current key information receiving is directional information;
If the key information receiving current is other information outside divider value information and directional information, judges that the current key information receiving is for other information.
Certainly, except the mode of the type of the current key information receiving of above-mentioned judgement, also can take other judgment modes, the present embodiment is not done concrete restriction to this.
It should be noted that, if judge, the current key information receiving is directional information, carries out following step 402; If judge, the current key information receiving is numerical information, carries out following step 405.
402: the key information receiving if current is directional information, judge whether the key information receiving last time is numerical information, and whether the time difference that received key information and current reception key information last time is less than threshold value;
For this step, judge whether the key information receiving last time is the specific implementation of numerical information, consistent with the judgment mode of type that judges the current key information receiving in step 401, repeat no more herein.
Wherein, the size of threshold value can be 1 second.Certainly, the size of threshold value, except 1 second, also can be other numerical value, for example 0.5 second or 0.8 second etc., and the present embodiment is not done concrete restriction to the size of threshold value.
Further, whether the time difference that received key information and current reception key information in order to judge last time is less than threshold value, the method that the present embodiment provides, before judging whether the time difference that received key information and current reception key information last time be less than threshold value, also comprises the steps:
Record the first system time of current reception key information;
Obtain the second system time that received key information last time.
Wherein, record the specific implementation of the first system time of current reception key information, include but not limited to:
System time timer is set; When receiving key information, the current time that register system time timer is shown, using the shown current time of system time timer as the first system time, and stores the first system time.
Certainly, except the mode of above-mentioned the first system time of recording current reception key information, also can take other recording modes, the present embodiment is not done concrete restriction to this.
It should be noted that, when receiving key information, all can be according to the mode of above-mentioned register system time, record receives the system time of each key information, and each system time of record is stored.
Wherein, obtain the specific implementation of the second system time that received key information last time, include but not limited to:
From storing the storage medium of system time of each key information, will be compared to the other system time, up-to-date system time is as the second system time that received key information last time.
Certainly, except the above-mentioned mode of obtaining the second system time that received key information last time, also can take other recording modes, the present embodiment is not done concrete restriction to this.
Further, judge whether the time difference that received key information and current reception key information last time be less than the specific implementation of threshold value, include but not limited to:
Whether the difference that judges the second system time that the first system time of current reception key information and last time receive key information is less than threshold value.
Certainly, except above-mentioned, judge whether the time difference that received key information and current reception key information last time be less than the mode of threshold value, also can take other judgment modes, the present embodiment is not done concrete restriction to this.
In addition,, if the difference of the second system time that the first system time of current reception key information and last time receives key information is less than threshold value, carry out following step 403; If the difference of the second system time that the first system time of current reception key information and last time receive key information is greater than threshold value, carry out following step 404.
403: if the key information receiving last time is numerical information, and the time difference that received key information and current reception key information last time is less than threshold value, according to the numerical information receiving last time and the current directional information receiving, switch webpage focus, this switching flow finishes;
Wherein, the specific implementation according to the numerical information receiving last time and the current directional information switching webpage focus receiving, includes but not limited to:
Numerical value corresponding to the numerical information receiving last time is defined as to the switching times of webpage focus, and is the switching direction of webpage focus by orientation determination corresponding to the current directional information receiving;
According to switching times and switching direction, switch webpage focus.
Below in conjunction with Fig. 2, with a concrete example, the process of the numerical information receiving according to last time and the current directional information switching webpage focus receiving is at length explained.
Numerical value corresponding to numerical information receiving last time of take is 2, under direction corresponding to the current directional information receiving be, the position at webpage focus place is that web page element 13 is example,, when carrying out the switching of webpage focus, according to numerical value " 2 ", can determine the position that webpage focus is switched to arbitrary web page element place in web page element 3, web page element 11, web page element 15 and web page element 23; And according to direction D score lockable, webpage focus is switched to further to the position at web page element 23 places by the position at web page element 13 places.
404: if the key information receiving last time is numerical information, and the time difference that received key information and current reception key information last time is greater than threshold value, the current directional information receiving is defined as to the switching direction of webpage focus, and webpage focus is switched to the next web page element that switching direction is corresponding, this switching flow finishes;
For this step, after receiving numerical information, if slowly do not receive directional information, can not realize the switching of webpage focus, cause the switching efficiency of webpage focus low.And for fear of this thing happens, the time difference that the method that the present embodiment provides received key information and current reception key information last time in judgement is greater than after threshold value, to take the current directional information receiving to be defined as the switching direction of webpage focus, and webpage focus is switched to the switching mode of the next web page element that switching direction is corresponding, to guarantee the switching efficiency of webpage focus.
It is example that the example of step 403 is take in continuation, and the mode of the switching webpage focus that this step is provided is at length explained.
Take the time that received numerical information last time is 10:00:00, current receiver to the time of information be 10:00:02, threshold value is within 1 second, to be example, owing to receiving numerical information and the current receiver time difference to information last time, it is 2 seconds, be greater than threshold value 1 second, therefore, when carrying out the switching of webpage focus, direction D score is defined as to the switching direction of webpage focus, and webpage focus is switched to web page element 18 positions by the position at web page element 13 places.
405: the key information receiving if current is numerical information, judge whether the key information receiving last time is numerical information, and whether the time difference that received key information and current reception key information last time is less than threshold value;
For this step, the size of threshold value can be 1 second.Certainly, the size of threshold value, except 1 second, also can be other numerical value, for example 0.5 second or 0.8 second etc., and the present embodiment is not done concrete restriction to the size of threshold value.
Wherein, judge whether the key information receiving last time is the specific implementation of numerical information, consistent with the judgment mode of the type of the current key information receiving of the judgement shown in step 401, repeat no more herein; Judge whether the time difference that received key information and current reception key information last time is less than the specific implementation of threshold value, it is consistent whether the time difference that received key information and current reception key information last time with judging shown in step 402 is less than the judgment mode of threshold value, repeats no more equally herein.
In addition, if the key information receiving last time is numerical information, and the time difference that received key information and current reception key information last time be less than threshold value, carry out following step 406; If the key information receiving last time is numerical information, and the time difference that received key information and current reception key information last time be greater than threshold value, treatment scheme finishes.
406: if the key information receiving last time is numerical information, and the time difference that received key information and current reception key information last time is less than threshold value, numerical value corresponding to the current numerical information receiving and numerical value corresponding to numerical information receiving last time are combined to the switching times while switching webpage focus to determine.
For this step, the specific implementation that numerical value corresponding to the current numerical information receiving and numerical value corresponding to numerical information that received last time are combined, includes but not limited to:
Using numerical value corresponding to the current numerical information receiving as individual position, and numerical value corresponding to the numerical information receiving last time is as ten, is combined into a numerical value and is 10 to 99 double figures.
Certainly, except the above-mentioned mode that numerical value corresponding to the current numerical information receiving and numerical value corresponding to numerical information that received last time are combined, also can take other array modes, the present embodiment is not done concrete restriction to this.
Numerical value corresponding to the current numerical information receiving of take is 1, numerical value corresponding to numerical information receiving last time is 2 for example, numerical value corresponding to the current numerical information receiving and combinations of values corresponding to numerical information that received last time being become to numerical value is 12 double figures, and the switching times using numerical value 12 as follow-up switching webpage focus.
Further, numerical value corresponding to the current numerical information receiving and numerical value corresponding to numerical information receiving last time are being combined, obtain after the switching times of webpage focus, if the key information that receive next time is directional information, and the time difference of current reception numerical information and next receive direction information is less than threshold value, switching times that can be using the numerical information obtaining according to numerical value corresponding to the current numerical information receiving and combinations of values corresponding to numerical information that received last time as webpage focus, direction corresponding to the directional information that received next time is as the switching direction of webpage focus, and then just can complete the switching of webpage focus according to this switching times and switching direction.
It should be noted that, by above-mentioned steps 401, to step 406, just can realize the quick switching of webpage focus.And for when carrying out the switching of webpage focus, can lock rapidly the position that webpage focus is switched to which web page element place, the method that the present embodiment provides also comprises the step of the space-number between display web page focus element and the non-focus element of webpage.Refer to following steps:
Space-number between the non-focus element of display web page and webpage focus element; Wherein, webpage focus element refers to the web page element of webpage focus position; The non-focus element of webpage refers to that the permission of other positions except webpage focus position obtains the web page element of webpage focus.
Continuation be take Fig. 2 as example, webpage focus is being switched to behind the position at web page element 13 places, space-number between web page element 3, web page element 8, web page element 11, web page element 12, web page element 14, web page element 15, web page element 18, web page element 23, web page element 28, web page element 33 and web page element 13 can be shown, refer to Fig. 5.When showing space-number, the circle of space-number shown in can Fig. 5 adds digital mode and shows, also can balloon adds numeral or square and adds digital mode and show, the present embodiment is not done concrete restriction to this.
Further, in order to promote user's Experience Degree, the method that this enforcement provides is before the space-number between display web page focus and the non-focus element of webpage, also comprise and whether point out the step of the space-number between display web page focus element and the non-focus element of webpage, so that user determines whether the space-number between display web page focus element and the non-focus element of webpage according to the selection of self.Detailed process is as follows:
Whether point out the space-number between the non-focus element of display web page and webpage focus element;
If receive the confirmation of the space-number between the non-focus element of display web page and webpage focus element, calculate the space-number between the non-focus element of each webpage and webpage focus element, and each space-number calculating is shown.
The method that the present embodiment provides, getting the current key information receiving, judge that the current key information receiving is directional information, and judge that the key information receiving last time is numerical information, and the time difference that received key information and current reception key information last time is less than after threshold value, according to the numerical information receiving last time and the current directional information receiving, switch webpage focus, thereby promoted the switching efficiency of webpage focus, improved user experience; In addition, at the key information of judgement reception last time and the key information of current reception, be after numerical information, the numerical value numerical value corresponding with current reception key information corresponding to key information that received last time combines, to determine the switching times of webpage focus, thereby expanded the switching mode of webpage focus, promoted further the switching efficiency of webpage focus; In addition, by the space-number between display web page focus element and the non-focus element of webpage, can carry out fast the switching of webpage focus, promote user experience.
Embodiment tri-
The embodiment of the present invention provides a kind of device that switches webpage focus, the method providing for carrying out above-described embodiment one or embodiment bis-.Referring to Fig. 6, this device comprises:
Acquisition module 61, for obtaining the current key information receiving;
The first judge module 62, for judging the type of the current key information receiving of acquisition module 61;
The second judge module 63, for when the current key information receiving of the first judge module 62 judgement is directional information, judge whether the key information receiving last time is numerical information, and whether the time difference that received key information and current reception key information last time is less than threshold value;
Handover module 64, for judging that when the second judge module 63 key information receiving last time is numerical information, and the time difference that received key information and current reception key information last time, while being less than threshold value, is switched webpage focus according to the numerical information receiving last time and the current directional information receiving.
Further, referring to Fig. 7, handover module 64, comprising:
The first determining unit 641, is defined as the switching times of webpage focus for numerical value corresponding to numerical information that received last time;
The second determining unit 642, for being the switching direction of webpage focus by orientation determination corresponding to the current directional information receiving;
The first switch unit 643, for switching webpage focus according to the definite switching times of the first determining unit 641 and the definite switching direction of the second determining unit.
Further, referring to Fig. 8, handover module 64, comprising:
The 3rd determining unit 644, for receiving the time difference of key information and current reception key information last time when the second judge module 63 judgement while being greater than threshold value, is defined as the current directional information receiving the switching direction of webpage focus;
The second switch unit 645, for switching to webpage focus the next web page element that switching direction is corresponding.
Further, referring to Fig. 9, this device also comprises:
The 3rd judge module 65, for when the current key information receiving of the first judge module 62 judgement is numerical information, judge whether the key information receiving last time is numerical information, and whether the time difference that received key information and current reception key information last time is less than threshold value;
Composite module 66, for judging that when the 3rd judge module 65 key information receiving last time is numerical information, and the time difference that received key information and current reception key information last time is while being less than threshold value, numerical value corresponding to the current numerical information receiving and numerical value corresponding to numerical information receiving last time are combined to the switching times while switching webpage focus to determine.
Further, referring to Figure 10, this device also comprises:
Display module 67, for the space-number between the non-focus element of display web page and webpage focus element;
Wherein, webpage focus element refers to the web page element of webpage focus position; The non-focus element of webpage refers to that the permission of other positions except webpage focus position obtains the web page element of webpage focus.
Further, participate in Figure 11, this device also comprises:
Whether reminding module 68, for pointing out the space-number between the non-focus element of display web page and webpage focus element;
Computing module 69, for when receiving the confirmation of the space-number between the non-focus element of display web page and webpage focus element, calculates the space-number between the non-focus element of each webpage and webpage focus element;
Display module 67, shows for each space-number that computing module is calculated.
To sum up, the device that the embodiment of the present invention provides, getting the current key information receiving, judge that the current key information receiving is directional information, and judge that the key information receiving last time is numerical information, and the time difference that received key information and current reception key information last time be less than after threshold value, according to the numerical information receiving last time and the current directional information receiving, switch webpage focus, thereby the switching efficiency that has promoted webpage focus, has improved user experience; In addition, at the key information of judgement reception last time and the key information of current reception, be after numerical information, the numerical value numerical value corresponding with the key information of current reception corresponding to key information that received last time combines, to determine the switching times of webpage focus, thereby expanded the switching mode of webpage focus, promoted further the switching efficiency of webpage focus; In addition, by the space-number between display web page focus element and the non-focus element of webpage, can carry out fast the switching of webpage focus, promote user experience.
Embodiment tetra-
The invention provides a kind of structural representation of equipment of definite switching webpage focus, referring to Figure 11, this equipment comprises at least one processor 701, CPU for example, at least one network interface 704 or other user interfaces 703, storer 705, and at least one communication bus 702.Communication bus 702 is for realizing the connection communication between these devices.User interface 703 can be display, keyboard or pointing device.Storer 705 may comprise high speed Ram storer, also may also comprise nonvolatile memory (non-volatile memory), for example at least one magnetic disk memory.
The program that processor 701 is deposited for execute store 705, to be achieved as follows method:
Obtain the current key information receiving, and judge the type of the current key information receiving;
If the key information receiving current is directional information, judges whether the key information receiving last time is numerical information, and whether the time difference that received key information and current reception key information last time is less than threshold value;
If the key information receiving last time is numerical information, and the time difference that received key information and current reception key information last time be less than threshold value, according to the numerical information receiving last time and the current directional information receiving, switch webpage focus.
Further, processor 701, is defined as the switching times of webpage focus, and is the switching direction of webpage focus by orientation determination corresponding to the current directional information receiving specifically for numerical value corresponding to numerical information that received last time; According to switching times and switching direction, switch webpage focus.
Further, processor 701, if be greater than threshold value specifically for receiving the time difference of key information and current reception key information last time, the current directional information receiving be defined as to the switching direction of webpage focus, and webpage focus is switched to the next web page element that switching direction is corresponding.
Further, processor 701, if be numerical information specifically for the current key information receiving, judges whether the key information receiving last time is numerical information, and whether the time difference that received key information and current reception key information last time is less than threshold value; If the key information receiving last time is numerical information, and the time difference that received key information and current reception key information last time is less than threshold value, numerical value corresponding to the current numerical information receiving and numerical value corresponding to numerical information receiving last time are combined to the switching times while switching webpage focus to determine.
Further, processor 701, specifically for the space-number between the non-focus element of display web page and webpage focus element; Wherein, webpage focus element refers to the web page element of webpage focus position; The non-focus element of webpage refers to that the permission of other positions except webpage focus position obtains the web page element of webpage focus.
Further, whether processor 701, specifically for pointing out the space-number between the non-focus element of display web page and webpage focus element; If receive the confirmation of the space-number between the non-focus element of display web page and webpage focus element, calculate the space-number between the non-focus element of each webpage and webpage focus element, and each space-number calculating is shown.
The equipment that the present embodiment provides, getting the current key information receiving, judge that the current key information receiving is directional information, and judge that the key information receiving last time is numerical information, and the time difference that received key information and current reception key information last time is less than after threshold value, according to the numerical information receiving last time and the current directional information receiving, switch webpage focus, thereby promoted the switching efficiency of webpage focus, improved user experience; In addition, at the key information of judgement reception last time and the key information of current reception, be after numerical information, the numerical value numerical value corresponding with the key information of current reception corresponding to key information that received last time combines, to determine the switching times of webpage focus, thereby expanded the switching mode of webpage focus, promoted further the switching efficiency of webpage focus; In addition, by the space-number between display web page focus element and the non-focus element of webpage, can carry out fast the switching of webpage focus, promote user experience.
It should be noted that: the device of the switching webpage focus that above-described embodiment provides is when switching webpage focus, only the division with above-mentioned each functional module is illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the inner structure that is about to device is divided into different functional modules, to complete all or part of function described above.In addition, the device of the switching webpage focus that above-described embodiment provides belongs to same design with the embodiment of the method for switching webpage focus, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (12)

1. a method of switching webpage focus, is characterized in that, described method comprises:
Obtain the current key information receiving, and judge the type of the current key information receiving;
If the key information receiving current is directional information, judges whether the key information receiving last time is numerical information, and whether the time difference that received key information and current reception key information last time is less than threshold value;
If the key information receiving last time is numerical information, and the time difference that received key information and current reception key information last time be less than threshold value, according to the numerical information receiving last time and the current directional information receiving, switch webpage focus.
2. method according to claim 1, is characterized in that, described according to the numerical information receiving last time and the current directional information switching webpage focus receiving, and comprising:
Numerical value corresponding to the numerical information receiving last time is defined as to the switching times of described webpage focus, and is the switching direction of described webpage focus by orientation determination corresponding to the current directional information receiving;
According to described switching times and described switching direction, switch described webpage focus.
3. method according to claim 1, is characterized in that, describedly judges whether the key information receiving last time is numerical information, and after the time difference that received key information and current reception key information last time is less than threshold value, described method also comprises:
If received the time difference of key information and current reception key information last time, be greater than described threshold value, the current directional information receiving is defined as to the switching direction of described webpage focus, and described webpage focus is switched to the next web page element that described switching direction is corresponding.
4. method according to claim 1, is characterized in that, after the type of the current key information receiving of described judgement, described method also comprises:
If the key information receiving current is numerical information, judges whether the key information receiving last time is numerical information, and whether the time difference that received key information and current reception key information last time is less than threshold value;
If the key information receiving last time is numerical information, and the time difference that received key information and current reception key information last time is less than threshold value, numerical value corresponding to the current numerical information receiving and numerical value corresponding to numerical information receiving last time are combined to the switching times while switching described webpage focus to determine.
5. according to the method described in arbitrary claim in claim 1 to 4, it is characterized in that, described method also comprises:
Space-number between the non-focus element of display web page and webpage focus element;
Wherein, described webpage focus element refers to the web page element of described webpage focus position; The non-focus element of described webpage refers to that the permission of other positions except described webpage focus position obtains the web page element of described webpage focus.
6. method according to claim 5, is characterized in that, before the space-number between the non-focus element of described display web page and webpage focus element, described method also comprises:
Whether point out the space-number between the non-focus element of display web page and webpage focus element;
If receive the confirmation that shows the space-number between the non-focus element of described webpage and webpage focus element, calculate the space-number between the non-focus element of each webpage and webpage focus element, and each space-number calculating is shown.
7. a device that switches webpage focus, is characterized in that, described device comprises:
Acquisition module, for obtaining the current key information receiving;
The first judge module, for judging the type of the current key information receiving of described acquisition module;
The second judge module, for when the current key information receiving of described the first judge module judgement is directional information, judge whether the key information receiving last time is numerical information, and whether the time difference that received key information and current reception key information last time is less than threshold value;
Handover module, for judging that when described the second judge module the key information receiving last time is numerical information, and the time difference that received key information and current reception key information last time, while being less than threshold value, is switched webpage focus according to the numerical information receiving last time and the current directional information receiving.
8. device according to claim 7, is characterized in that, described handover module, comprising:
The first determining unit, is defined as the switching times of described webpage focus for numerical value corresponding to numerical information that received last time;
The second determining unit, for being the switching direction of described webpage focus by orientation determination corresponding to the current directional information receiving;
The first switch unit, for switching described webpage focus according to the definite switching times of described the first determining unit and the definite switching direction of described the second determining unit.
9. device according to claim 7, is characterized in that, described handover module, comprising:
The 3rd determining unit, while being greater than described threshold value for the time difference that received key information and current reception key information last time when described the second judge module judgement, is defined as the current directional information receiving the switching direction of described webpage focus;
The second switch unit, for switching to by described webpage focus the next web page element that described switching direction is corresponding.
10. device according to claim 7, is characterized in that, described device also comprises:
The 3rd judge module, for when the current key information receiving of described the first judge module judgement is numerical information, judge whether the key information receiving last time is numerical information, and whether the time difference that received key information and current reception key information last time is less than threshold value;
Composite module, for judging that when described the 3rd judge module the key information receiving last time is numerical information, and the time difference that received key information and current reception key information last time is while being less than threshold value, numerical value corresponding to the current numerical information receiving and numerical value corresponding to numerical information receiving last time are combined to the switching times while switching described webpage focus to determine.
11. according to the device described in arbitrary claim in claim 7 to 10, it is characterized in that, described device also comprises:
Display module, for the space-number between the non-focus element of display web page and webpage focus element;
Wherein, described webpage focus element refers to the web page element of described webpage focus position; The non-focus element of described webpage refers to that the permission of other positions except described webpage focus position obtains the web page element of described webpage focus.
12. devices according to claim 11, is characterized in that, described device also comprises:
Whether reminding module, for pointing out the space-number between the non-focus element of display web page and webpage focus element;
Computing module, for when receiving the confirmation that shows the space-number between the non-focus element of described webpage and webpage focus element, calculates the space-number between the non-focus element of each webpage and webpage focus element;
Described display module, shows for each space-number that described computing module is calculated.
CN201310665361.3A 2013-12-10 2013-12-10 Method and device for switching webpage focuses Active CN103678574B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310665361.3A CN103678574B (en) 2013-12-10 2013-12-10 Method and device for switching webpage focuses

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310665361.3A CN103678574B (en) 2013-12-10 2013-12-10 Method and device for switching webpage focuses

Publications (2)

Publication Number Publication Date
CN103678574A true CN103678574A (en) 2014-03-26
CN103678574B CN103678574B (en) 2017-05-24

Family

ID=50316119

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310665361.3A Active CN103678574B (en) 2013-12-10 2013-12-10 Method and device for switching webpage focuses

Country Status (1)

Country Link
CN (1) CN103678574B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138246A (en) * 2015-07-29 2015-12-09 百度在线网络技术(北京)有限公司 Method and apparatus for switching search type
CN109309874A (en) * 2018-08-31 2019-02-05 青岛海信电器股份有限公司 A kind of focus update method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101072381B (en) * 2007-06-14 2015-04-15 华为技术有限公司 Terminal control message processing method and message processor and media server
CN102087583A (en) * 2011-01-30 2011-06-08 深圳市乐通天下科技有限公司 Webpage operation method
CN102331906A (en) * 2011-09-13 2012-01-25 Tcl集团股份有限公司 Method for operating intelligent equipment and intelligent equipment
CN102609521B (en) * 2012-02-10 2016-12-14 深圳创维数字技术有限公司 The changing method of a kind of webpage focus element and receiving terminal for digital television

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138246A (en) * 2015-07-29 2015-12-09 百度在线网络技术(北京)有限公司 Method and apparatus for switching search type
CN109309874A (en) * 2018-08-31 2019-02-05 青岛海信电器股份有限公司 A kind of focus update method and device
CN109309874B (en) * 2018-08-31 2021-05-11 海信视像科技股份有限公司 Focus updating method and device

Also Published As

Publication number Publication date
CN103678574B (en) 2017-05-24

Similar Documents

Publication Publication Date Title
CN105426083B (en) A kind of file switching method and terminal
CN103607660A (en) Intelligent television interface switching control method and control apparatus
CN104123333A (en) Data processing method and device for location sharing
CN104750450A (en) File sharing method in IM (Instant Messaging) and terminal
CN103618959A (en) Method and device for video playing
CN103455174B (en) Control method of electronic device, device and electronic equipment
CN107346115B (en) Control method and control terminal of intelligent device and intelligent device
CN112306607A (en) Screenshot method and device, electronic equipment and readable storage medium
CN112565063B (en) Message processing method and device and electronic equipment
CN113596555B (en) Video playing method and device and electronic equipment
CN103905717A (en) Switching method and device and electronic device
CN103648036A (en) Arrangement method and arrangement apparatus of necessary arrangement items of intelligent television
CN111601065A (en) Video call control method and device and electronic equipment
CN112269505B (en) Audio and video control method and device and electronic equipment
CN112188001B (en) Shortcut setting method, shortcut setting device, electronic equipment and readable storage medium
CN104994427A (en) Method and system for configuring and managing self-start-up of smart television desktop
CN112148168B (en) Icon moving method and device and electronic equipment
CN112540740A (en) Split screen display method and device, electronic equipment and readable storage medium
CN104765550A (en) Cross-terminal application control method, user terminal and system
CN113568534A (en) Application icon display method and device and electronic equipment
CN112148167A (en) Control setting method and device and electronic equipment
CN103561342A (en) Method and device for tabletop switch of smart television and smart television
CN105280204A (en) Multi-media file play method, device and system
CN103647997A (en) Data-resource transmission method and device
US20170078751A1 (en) Intelligent terminal-based tween interactive advertisement placement method and apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant