CN102662493A - Method for positioning mouse cursor by using intelligent terminal and the intelligent terminal - Google Patents

Method for positioning mouse cursor by using intelligent terminal and the intelligent terminal Download PDF

Info

Publication number
CN102662493A
CN102662493A CN2012100635104A CN201210063510A CN102662493A CN 102662493 A CN102662493 A CN 102662493A CN 2012100635104 A CN2012100635104 A CN 2012100635104A CN 201210063510 A CN201210063510 A CN 201210063510A CN 102662493 A CN102662493 A CN 102662493A
Authority
CN
China
Prior art keywords
node
cursor
center
nodal information
current cursor
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
CN2012100635104A
Other languages
Chinese (zh)
Other versions
CN102662493B (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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201210063510.4A priority Critical patent/CN102662493B/en
Publication of CN102662493A publication Critical patent/CN102662493A/en
Application granted granted Critical
Publication of CN102662493B publication Critical patent/CN102662493B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a method for positioning a mouse cursor by using an intelligent terminal and the intelligent terminal. The method includes receiving an operational command of a user which moves a mouse cursor on a browser webpage; acquiring a center position of the nearest hyperlink label to the current cursor position along the cursor moving direction according to the operational command and node information of a hyperlink label on a webpage pre-saved through a linked list by a preset algorithm; and moving the current cursor to the center position. During interpreting a webpage by a browser, the invention preserves related node position information of a hyperlink label on a webpage by means of a linked list, calculates a moving distance of a cursor by using a preset algorithm according to the cursor moving direction when a user moves the cursor, makes the user rapidly and accurately position a hyperlink on a required webpage when the user moves the cursor by using a remote controller, and greatly improves the experience effect of the user.

Description

The method and the intelligent terminal of intelligent terminal location cursor of mouse
Technical field
The present invention relates to the intelligent television technical field, relate in particular to a kind of method and intelligent terminal of locating intelligent terminal cursor of mouse such as intelligent television.
Background technology
In existing intelligent television, general mouse mode is adopted in the control of the cursor of browser mostly.Under mouse mode, when pressing remote controller key, fore-and-aft distance that cursor moves and lateral separation all are set regular lengths.In addition, can't be selected in the cursor moving process for fear of little focus frame, usually with set displacement be provided with smaller, to guarantee the accuracy of cursor positioning.But; The set-up mode that adopts above-mentioned small distance to move, the user needs repeatedly button, just can reach the focus frame of appointment; Especially at purpose focus frame and current focus frame under the situation far away of the distance on the page; The user need repeat repeatedly button operation especially, and the running time is longer, causes user experience significantly to reduce.
Summary of the invention
Fundamental purpose of the present invention is to provide the method and the intelligent terminal of a kind of intelligent terminal location cursor of mouse, is intended to improve the accuracy and the user experience effect of cursor of mouse location.
In order to achieve the above object, the present invention proposes the method for a kind of intelligent terminal location cursor of mouse, comprising:
Receive the operational order of user's moving cursor on browser page;
According to said operational order, and the nodal information of hyperlink label on the said page of preserving in advance through chained list, and obtain direction, from the center of the nearest hyperlink label of current cursor position along above-mentioned moving cursor through pre-defined algorithm;
Current cursor is moved to said center.
Preferably, also comprise before the step of said reception user operational order of moving cursor on browser page:
When browser loads and resolve the page, preserve the nodal information of hyperlink label on the said page through chained list; Said nodal information comprises: node type, hyperlink address and node location coordinate information.
Preferably; Said according to operational order; And the nodal information of hyperlink label on the said page of preserving in advance through chained list, and obtain direction along above-mentioned moving cursor through pre-defined algorithm, the step from the center of the nearest hyperlink label of current cursor position comprises:
According to said operational order, obtain the direction of user's moving cursor;
From said chained list, obtain the coordinate of current cursor;
Coordinate with current cursor is a RP, the nodal information of the hyperlink label from said chained list on the direction of the above-mentioned moving cursor of search, and, calculate the center position coordinates of each node according to the nodal information that searches;
According to the center position coordinates of each node and the coordinate of current cursor, calculate the relative distance parameter of each node and current cursor position;
The center of choosing the minimum node of said relative distance parameter is as the center from the nearest hyperlink label of current cursor position.
Preferably, the nodal information that said basis searches, the step of calculating the center position coordinates of each node comprises:
From said nodal information, obtain the shared width w and the height h of upper left corner horizontal ordinate x, upper left corner ordinate y, node of said node;
The center horizontal ordinate X=x+w/2 that calculates said node according to the upper left corner horizontal ordinate x and the shared width h of node of said node; The center ordinate Y=y+h/2 that calculates said node according to the upper left corner ordinate y and the shared height h of node of said node.
Preferably, said relative distance parameter is: be the girth of the right-angle triangle of hypotenuse formation with the distance between center to the center of current cursor of said node.
The present invention also proposes a kind of intelligent terminal of locating cursor of mouse, comprising:
Receiver module is used to receive the operational order of user's moving cursor on browser page;
Acquisition module; Be used for according to said operational order; And the nodal information of hyperlink label on the said page of preserving in advance through chained list, and obtain direction along above-mentioned moving cursor through pre-defined algorithm, from the center of the nearest hyperlink label of current cursor position;
Operational module is used for current cursor is moved to said center.
Preferably, this intelligent terminal also comprises:
Memory module is used for when browser loads and resolve the page, preserving the nodal information of hyperlink label on the said page through chained list; Said nodal information comprises: node type, hyperlink address and node location coordinate information.
Preferably, said acquisition module comprises:
First acquiring unit is used for obtaining the direction of user's moving cursor according to said operational order;
Second acquisition unit is used for obtaining from said chained list the coordinate of current cursor;
First computing unit, the coordinate that is used for current cursor is a RP, the nodal information of the hyperlink label from said chained list on the direction of the above-mentioned moving cursor of search, and, calculate the center position coordinates of each node according to the nodal information that searches;
Second computing unit is used for calculating the relative distance parameter of each node and current cursor position according to the center position coordinates of each node and the coordinate of current cursor;
Choose the unit, the center that is used to choose the minimum node of said relative distance parameter is as the center from the nearest hyperlink label of current cursor position.
Preferably, said first computing unit comprises:
The search subelement, the coordinate that is used for current cursor is a RP, the nodal information of the hyperlink label of search on the direction of user's moving cursor from said chained list;
Obtain subelement, be used for obtaining the shared width w and the height h of upper left corner horizontal ordinate x, upper left corner ordinate y, node of said node from said nodal information;
Computation subunit is used for the center horizontal ordinate X=x+w/2 that upper left corner horizontal ordinate x and the shared width h of node according to said node calculate said node; The center ordinate Y=y+h/2 that calculates said node according to the upper left corner ordinate y and the shared height h of node of said node.
Preferably, said relative distance parameter is: be the girth of the right-angle triangle of hypotenuse formation with the distance between center to the center of current cursor of said node.
The method and the intelligent terminal of a kind of intelligent terminal location cursor of mouse that the present invention proposes in browser resolves page process, are preserved the node location relevant information of hyperlink label on the page through chained list; When user's moving cursor; According to the direction of user's moving cursor, adopt predetermined algorithm to calculate cursor displacement, according to the difference of content of pages; Each button cursor moves corresponding distance; Make the user when using a teleswitch moving cursor, can locate the hyperlink on its page of wanting more fast and accurately, effectively improved intelligent terminals such as present TV through in the process of browser browsing page; The user needs the situation of frequent operation remote controller key, has improved user's experience effect greatly.
Description of drawings
Fig. 1 is the schematic flow sheet of method first embodiment of intelligent terminal of the present invention location cursor of mouse;
Fig. 2 is the storage organization synoptic diagram that method first embodiment of intelligent terminal of the present invention location cursor of mouse plants nodal information;
Fig. 3 is according to operational order among method first embodiment of intelligent terminal of the present invention location cursor of mouse; And the nodal information of hyperlink label on the page of preserving in advance through chained list; And obtain direction through pre-defined algorithm, schematic flow sheet from the center of the nearest hyperlink label of current cursor position along above-mentioned moving cursor;
Fig. 4 be among method first embodiment of intelligent terminal of the present invention location cursor of mouse according to the nodal information that searches, calculate the schematic flow sheet of the center position coordinates of each node;
Fig. 5 is the webpage synoptic diagram of a kind of instance among method first embodiment of intelligent terminal of the present invention location cursor of mouse;
Fig. 6 is the node location coordinate rough schematic view of a kind of instance among method first embodiment of intelligent terminal of the present invention location cursor of mouse;
Fig. 7 is the relative distance CALCULATION OF PARAMETERS synoptic diagram of a kind of instance among method first embodiment of intelligent terminal of the present invention location cursor of mouse;
Fig. 8 is the schematic flow sheet of method second embodiment of intelligent terminal of the present invention location cursor of mouse;
Fig. 9 is the structural representation that the present invention locatees intelligent terminal first embodiment of cursor of mouse;
Figure 10 is the structural representation that the present invention locatees acquisition module among intelligent terminal first embodiment of cursor of mouse;
Figure 11 is the structural representation that the present invention locatees first computing unit among intelligent terminal first embodiment of cursor of mouse;
Figure 12 is the structural representation that the present invention locatees intelligent terminal second embodiment of cursor of mouse.
In order to make technical scheme of the present invention clearer, clear, will combine accompanying drawing to do further to detail below.
Embodiment
The solution of the embodiment of the invention mainly is: in browser resolves page process; Through the node location relevant information of hyperlink label on the chained list preservation page, when user's moving cursor, according to the direction of user's moving cursor; Adopt predetermined algorithm to calculate cursor displacement; Make the user when using a teleswitch moving cursor, can locate the hyperlink on its page of wanting more fast and accurately, to improve user's experience effect.
Intelligent terminal is the terminal that has through the function of browser browsing page among the present invention, such as intelligent television, smart mobile phone etc., below each embodiment illustrate with intelligent television, but be not limited to this kind situation.
As shown in Figure 1, first embodiment of the invention proposes the method for a kind of intelligent terminal location cursor of mouse, comprising:
Step S101, the operational order of reception user moving cursor on browser page;
With the intelligent television is example; The TV browser is controlled screen cursor through mouse mode; When on the user need the browser at televisor, browsing the webpage of oneself wanting; Can operate the position of rolling mouse cursor through remote controller key, on the link label of the page that cursor positioning is wanted to oneself, produce operational order.
Step S102 according to operational order, and the nodal information of hyperlink label on the page of preserving in advance through chained list, and obtains the direction along above-mentioned moving cursor through pre-defined algorithm, from the center of the nearest hyperlink label of current cursor position;
Step S103 moves to above-mentioned center with current cursor.
Among above-mentioned steps S102 and the step S103,, can current cursor be automatically moved on the nearest hyperlink label of current cursor position according to user's operational order when intelligent television receives the user behind the operational order of moving cursor on the browser page.
Particularly; In the present embodiment, intelligent television is preserved the nodal information of each hyperlink label on the browser page in advance in local internal memory, and this nodal information comprises the relevant informations such as property location of each hyperlink label place node; Such as: the hyperlink address (href of node type, node; Hypertext Reference is called hypertext again and quotes) and the node location coordinate information etc., wherein; The node location coordinate information can be the center position coordinates of node; Also can comprise width w and height h that upper left corner horizontal ordinate x, upper left corner ordinate y, the node of node is shared, perhaps comprise width w that upper right corner horizontal ordinate x, upper right corner ordinate y, the node of node is shared and height h etc., the stored in form of these nodal informations through chained list is in the internal memory of intelligent television.In chained list, establish the corresponding relation of node type, href and node location coordinate, therefore, can from chained list, find the location coordinate information of respective nodes according to node type and href.
Present embodiment comprises that with the node location coordinate information the shared width w and the height h of upper left corner horizontal ordinate x, upper left corner ordinate y, node of node is example, and its storage organization is as shown in Figure 2.
Nodal information can obtain and preserve in the process of the browser loading and the parsing page, also can adopt other modes to obtain and be kept at this locality.
Can accurately get access to the node location coordinate information of each hyperlink label through nodal information, thereby can carry out accurate in locating to cursor according to nodal information, and the place of can be fast cursor positioning user to the page being wanted.
Above-mentioned predetermined algorithm realizes based on nodal information, receive user's operational order when intelligent television after, at first from operational order, get access to the direction of user's moving cursor, such as left,, wait up or down to the right.From chained list, obtain the coordinate of current cursor simultaneously, the coordinate of current cursor can obtain in the nodal information according to the hyperlink label at current cursor place.
Then, the direction that moves according to cursor is a RP with the coordinate position of current cursor, the nodal information of the hyperlink label on the direction that the search cursor moves from chained list.Such as, the setting screen upper left corner is true origin, if the user by " on " key, then search upper left corner ordinate y is less than or equal to the node of current cursor upper left corner ordinate in chained list; If the user presses the D score key, then in chained list, search for the node of upper left corner ordinate y more than or equal to current cursor upper left corner ordinate; If the user by " left side " key, then searches for the node that upper left corner horizontal ordinate x is less than or equal to current cursor upper left corner horizontal ordinate in chained list; If the user by " right side " key, then searches for the node of upper left corner horizontal ordinate x more than or equal to current cursor upper left corner horizontal ordinate in chained list.
Afterwards; Can be according to the nodal information that searches; Calculate the center position coordinates of each node; Also to calculate simultaneously the center position coordinates of current cursor according to the coordinate information of current cursor,, calculate the relative distance parameter of each node and current cursor position then according to the center position coordinates of each node and the center position coordinates of current cursor.
Wherein, present embodiment setting relative distance parameter is: be the girth of the right-angle triangle of hypotenuse formation with the distance between center to the center of current cursor of node.
The center of choosing the minimum node of the girth of each right-angle triangle is as the center from the nearest hyperlink label of current cursor position; Then; Current cursor is moved to this center from the nearest hyperlink label of current cursor position, thus the position of the hyperlink label of quickly and accurately cursor positioning user to the page being wanted.
In the practical implementation process, as shown in Figure 3, above-mentioned steps S102 comprises:
Step S1021 according to operational order, obtains the direction of user's moving cursor;
Step S1022 obtains the coordinate of current cursor from chained list;
Step S1023 is a RP with the coordinate of current cursor, the nodal information of the hyperlink label from chained list on the direction of the above-mentioned moving cursor of search, and, calculate the center position coordinates of each node according to the nodal information that searches;
Step S1024 according to the center position coordinates of each node and the coordinate of current cursor, calculates the relative distance parameter of each node and current cursor position;
Present embodiment is set the relative distance parameter: be the girth of the right-angle triangle of hypotenuse formation with the distance between center to the center of current cursor of node.
Step S1025, the center of choosing the minimum node of relative distance parameter is as the center from the nearest hyperlink label of current cursor position.
As shown in Figure 4, among the above-mentioned steps S1023, according to the nodal information that searches, the step of calculating the center position coordinates of each node comprises:
Step S10231 obtains shared width w of upper left corner horizontal ordinate x, upper left corner ordinate y, the node of node and height h from nodal information;
Step S10232, the center horizontal ordinate X=x+w/2 that calculates said node according to the upper left corner horizontal ordinate x and the shared width h of node of node; Center ordinate Y=y+h/2 according to the shared height h computing node of the upper left corner ordinate y of node and node.
Set forth the technical scheme of present embodiment below in detail with instantiation:
As shown in Figure 5; The webpage of certain website of browsing through the intelligent television browser for the user among the figure; Wherein, No. 1 frame is current cursor position, and No. 2 frames and No. 3 frames are No. 1 frame top two the hyperlink labels nearest apart from this No. 1 frame; When the user by to " on " during key, with choosing nearest one of No. 2 frames and No. 1 frame of No. 3 frame middle distances.
Current cursor supposes that current this node type is hyperlink a, href=" http://v.163.com/special/00853MGO/mlss.html " on No. 1 frame " spicy 236 phases of inteilectual: Ka Zhafei is dead and little happy dead "; The upper left corner horizontal ordinate x=400 of this node (understands for the ease of the back formula; Replace with X5), the upper left corner ordinate y=200 of this node (understand for the ease of the back formula, replace) with Y5; The shared width w=210 of this node (understands for the ease of the back formula; Replace with W5), the height h=10 (understand for the ease of the back formula, replace) that this node is shared with H5.
Suppose this moment, the user by " on " key, then need in chained list search y value to be less than or equal to the node of Y5; If the user presses the D score key, then need in chained list, to search for the node of y value more than or equal to Y5; If the user by " left side " key, then needs in chained list, to search for the node that the x value is less than or equal to X5; If the user by " right side " key, then needs in chained list, to search for the node of x value more than or equal to X5.
Below with the user by " on " to be example describe the pre-defined algorithm of present embodiment key, other embodiments principle therewith are similar.
Under the practical application scene, in chained list search y value be less than or equal to the node of Y5 may be a lot, No. 2 frames and No. 3 frames as shown in Figure 5 are 2 nodes wherein that search, and suppose that the relevant position coordinate information of No. 2 frames and No. 3 frames is respectively:
No. 2 frame x=X2 on the left side, y=Y2, w=W2, h=H2; No. 3 frame x=X3 on the right, y=Y3, w=W3, h=H3; Be reduced to as shown in Figure 6 with the wherein position coordinates of No. 2 and No. 3 frames that searches No. 1 frame at current cursor place.
The center point coordinate that thus, can calculate No. 1 frame is X50=X5+W5/2, Y50=Y5+H5/2; No. 2 frame center point coordinates are X20=X2+W2/2, Y20=Y2+H2/2; No. 3 frame center point coordinates are X30=X3+W3/2, Y30=Y3+H3/2.
As shown in Figure 7, Fig. 7 is a relative distance CALCULATION OF PARAMETERS synoptic diagram in this instance.With called after limit, the limit c25 of the central point that connects No. 1 frame and No. 2 frames, be that hypotenuse makes up right-angle triangle with c25, two other right-angle side is respectively a25 and b25; Adopting and use the same method, with called after limit, the limit c35 of the central point that connects No. 1 frame and No. 3 frames, is that hypotenuse makes up right-angle triangle with c35, and two other right-angle side is respectively a35 and b35, thus, obtains c35, a35, b35.Can calculate easily by mathematical formulae:
a25=|Y50-Y20|=|(Y5+H5/2)-(Y2+H2/2)|;
b25=|X50-X20|=|(X5+W5/2)-(X2+W2/2)|;
c 25 = ( a 25 2 + b 25 2 )
= ( ( ( Y 5 + H 5 / 2 ) - ( Y 2 + H 2 / 2 ) ) 2 + ( ( X 5 + W 5 / 2 ) - ( X 2 + W 2 / 2 ) ) 2 )
a35=|Y50-Y30|=|(Y5+H5/2)-(Y3+H3/2)|,
b35=|X50-X30|=|(X5+W5/2)-(X3+W3/2)|,
c 35 = ( a 35 2 + b 35 2 )
= ( ( ( Y 5 + H 5 / 2 ) - ( Y 3 + H 3 / 2 ) ) 2 + ( ( X 5 + W 5 / 2 ) - ( X 3 + W 3 / 2 ) ) 2 )
At this moment, only need the relatively girth of two right-angle triangles, the shortest target location that is of girth; The ratio that can calculate the girth of two right-angle triangles is: a35+b35+c35<a25+b25+c25, under this supposed situation, when cursor is in the middle of No. 1 frame; If the user by " on " key; This moment, cursor then directly moved in the middle of No. 3 frames, and promptly coordinate is (X30, position Y30).
Need to prove, when in chained list, searching for the nodal information on the moving direction of cursor, can set a hunting zone roughly,, save system resource to reduce system's operand.
Present embodiment improves browser browsing page time target move mode through predetermined algorithm; Optimize user's operation greatly; Can fast cursor positioning be chained to what the user wanted; Effectively improved intelligent terminals such as present TV through in the process of browser browsing page, the user needs the situation of frequent operation remote controller key, makes user experience be greatly enhanced.And present embodiment makes " passive type " intelligent television have " active " to detect the function that pushes with intelligent information, make it have intelligent characteristics truly.
As shown in Figure 8, second embodiment of the invention proposes the method for a kind of intelligent terminal location cursor of mouse, on the basis of the foregoing description, before above-mentioned steps S101, also comprises:
Step S100 when browser loads and resolve the page, preserves the nodal information of hyperlink label on the page through chained list;
The difference of present embodiment and above-mentioned first embodiment is; Present embodiment loads and resolves in the process of the page at browser; If run into the hyperlink label that on the page, can click, then the node relevant information of this hyperlink is stored in local internal memory with the form of chained list.
After browser is resolved completion to the page; When if the user passes through the button moving cursor; Intelligent television can calculate the center of leaving the nearest link label of current cursor position on this moving direction of cursor; And directly cursor is moved to this center, fast the link label place that clicks is wanted in cursor positioning to the user thus.
Compare prior art, present embodiment is preserved the position association attributes of the link label that can click on the page through in browser resolves page process with chained list; And produce dynamic cursor displacement through specific algorithm; Different according to content of pages, each button cursor moves different distances, when making the user use a teleswitch moving cursor; The focus frame of positioning webpage more fast and accurately, thus make the user enjoy better experience effect.
As shown in Figure 9, first embodiment of the invention proposes a kind of intelligent terminal of locating cursor of mouse, comprising: receiver module 901, acquisition module 902 and operational module 903, wherein:
Receiver module 901 is used to receive the operational order of user's moving cursor on browser page;
Acquisition module 902; Be used for according to operational order; And the nodal information of hyperlink label on the said page of preserving in advance through chained list, and obtain direction along above-mentioned moving cursor through pre-defined algorithm, from the center of the nearest hyperlink label of current cursor position;
Operational module 903 is used for current cursor is moved to above-mentioned center.
With the intelligent television is example; The TV browser is controlled screen cursor through mouse mode; When on the user need the browser at televisor, browsing the webpage of oneself wanting; Can operate the position of rolling mouse cursor through remote controller key, TV can navigate to cursor on the link label of the page of oneself wanting automatically, produces operational order; Intelligent television receives this operational order of user through receiver module 901; And obtain on the direction of user's moving cursor by acquisition module 902, from the center of the nearest hyperlink label of current cursor position, through operational module 903 current cursor is moved on the nearest hyperlink label of current cursor position then.
Particularly; In the present embodiment, intelligent television is preserved the nodal information of each hyperlink label on the browser page in advance in local internal memory, and this nodal information comprises the relevant informations such as property location of each hyperlink label place node; Such as: the hyperlink address (href of node type, node; Hypertext Reference is called hypertext again and quotes) and the node location coordinate information etc., wherein; The node location coordinate information can be the center position coordinates of node; Also can comprise width w and height h that upper left corner horizontal ordinate x, upper left corner ordinate y, the node of node is shared, perhaps comprise width w that upper right corner horizontal ordinate x, upper right corner ordinate y, the node of node is shared and height h etc., the stored in form of these nodal informations through chained list is in the internal memory of intelligent television.In chained list, establish the corresponding relation of node type, href and node location coordinate, therefore, can from chained list, find the location coordinate information of respective nodes according to node type and href.
Present embodiment comprises that with the node location coordinate information the shared width w and the height h of upper left corner horizontal ordinate x, upper left corner ordinate y, node of node is example, and its storage organization is as shown in Figure 2.
Nodal information can obtain and preserve in the process of the browser loading and the parsing page, also can adopt other modes to obtain and be kept at this locality.
Can accurately get access to the node location coordinate information of each hyperlink label through nodal information, thereby can carry out accurate in locating to cursor according to nodal information, and the place of can be fast cursor positioning user to the page being wanted.
Above-mentioned predetermined algorithm realizes based on nodal information; After the receiver module 901 of intelligent television receives user's operational order; Acquisition module 902 at first gets access to the direction of user's moving cursor from operational order; Such as left, to the right, wait up or down, from chained list, obtain the coordinate of current cursor simultaneously, the coordinate of current cursor can obtain in the nodal information according to the hyperlink label at current cursor place.
Then, the direction that moves according to cursor is a RP with the coordinate position of current cursor, the nodal information of the hyperlink label on the direction that the search cursor moves from chained list.Such as, the setting screen upper left corner is true origin, if the user by " on " key, then search upper left corner ordinate y is less than or equal to the node of current cursor upper left corner ordinate in chained list; If the user presses the D score key, then in chained list, search for the node of upper left corner ordinate y more than or equal to current cursor upper left corner ordinate; If the user by " left side " key, then searches for the node that upper left corner horizontal ordinate x is less than or equal to current cursor upper left corner horizontal ordinate in chained list; If the user by " right side " key, then searches for the node of upper left corner horizontal ordinate x more than or equal to current cursor upper left corner horizontal ordinate in chained list.
Afterwards; Can be according to the nodal information that searches; Calculate the center position coordinates of each node; Also to calculate simultaneously the center position coordinates of current cursor according to the coordinate information of current cursor,, calculate the relative distance parameter of each node and current cursor position then according to the center position coordinates of each node and the center position coordinates of current cursor.
Wherein, present embodiment setting relative distance parameter is: be the girth of the right-angle triangle of hypotenuse formation with the distance between center to the center of current cursor of node.
The center of choosing the minimum node of the girth of each right-angle triangle is as the center from the nearest hyperlink label of current cursor position; At last; Operational module 903 moves to this center from the nearest hyperlink label of current cursor position with current cursor, thus the position of the hyperlink label of quickly and accurately cursor positioning user to the page being wanted.
In the practical implementation process, shown in figure 10, above-mentioned acquisition module 902 comprises: first acquiring unit 9021, second acquisition unit 9022, first computing unit 9023, second computing unit 9024 and choose unit 9025, wherein:
First acquiring unit 9021 is used for according to operational order, obtains the direction of user's moving cursor;
Second acquisition unit 9022 is used for obtaining from chained list the coordinate of current cursor;
First computing unit 9023, the coordinate that is used for current cursor is a RP, the nodal information of the hyperlink label from chained list on the direction of the above-mentioned moving cursor of search, and, calculate the center position coordinates of each node according to the nodal information that searches;
Second computing unit 9024 is used for calculating the relative distance parameter of each node and current cursor position according to the center position coordinates of each node and the coordinate of current cursor;
Present embodiment is set the relative distance parameter: be the girth of the right-angle triangle of hypotenuse formation with the distance between center to the center of current cursor of node.
Choose unit 9025, the center that is used to choose the minimum node of relative distance parameter is as the center from the nearest hyperlink label of current cursor position.
Shown in figure 11, above-mentioned first computing unit 9023 comprises: search for subelement 90231, obtain subelement 90232 and computation subunit 90233, wherein:
Search subelement 90231, the coordinate that is used for current cursor is a RP, the nodal information of the hyperlink label of search on the direction of user's moving cursor from said chained list;
Obtain subelement 90232, be used for obtaining the shared width w and the height h of upper left corner horizontal ordinate x, upper left corner ordinate y, node of said node from nodal information;
Computation subunit 90233 is used for the center horizontal ordinate X=x+w/2 according to the shared width h computing node of the upper left corner horizontal ordinate x of node and node; Center ordinate Y=y+h/2 according to the shared height h computing node of the upper left corner ordinate y of node and node.
Shown in figure 12, second embodiment of the invention proposes a kind of intelligent terminal of locating cursor of mouse, on the basis of the foregoing description, also comprises:
Memory module 900 is used for when browser loads and resolve the page, preserving the nodal information of hyperlink label on the page through chained list; Nodal information comprises: node type, hyperlink address and node location coordinate information etc.
The difference of present embodiment and above-mentioned first embodiment is; Present embodiment loads and resolves in the process of the page at browser; If run into the hyperlink label that on the page, can click, then the node relevant information of this hyperlink is stored in local internal memory with the form of chained list through memory module 900.
After browser is resolved completion to the page; When if the user passes through the button moving cursor; Intelligent television can calculate the center of leaving the nearest link label of current cursor position on this moving direction of cursor; And directly cursor is moved to this center, fast the link label place that clicks is wanted in cursor positioning to the user thus.
Compare prior art; The method and the intelligent terminal of embodiment of the invention intelligent terminal location cursor of mouse through in browser resolves page process, are preserved the position association attributes of the link label that can click on the page with chained list; And produce dynamic cursor displacement through specific algorithm; Different according to content of pages, each button cursor moves different distances, when making the user use a teleswitch moving cursor; The focus frame of positioning webpage more fast and accurately, thus make the user enjoy better experience effect.
The above is merely the preferred embodiments of the present invention; Be not so limit claim of the present invention; Every equivalent structure or flow process conversion that utilizes instructions of the present invention and accompanying drawing content to be done; Or directly or indirectly be used in other relevant technical field, all in like manner be included in the scope of patent protection of the present invention.

Claims (10)

1. the method for an intelligent terminal location cursor of mouse is characterized in that, comprising:
Receive the operational order of user's moving cursor on browser page;
According to said operational order, and the nodal information of hyperlink label on the said page of preserving in advance through chained list, and obtain direction, from the center of the nearest hyperlink label of current cursor position along above-mentioned moving cursor through pre-defined algorithm;
Current cursor is moved to said center.
2. method according to claim 1 is characterized in that, also comprises before the step of said reception user operational order of moving cursor on browser page:
When browser loads and resolve the page, preserve the nodal information of hyperlink label on the said page through chained list; Said nodal information comprises: node type, hyperlink address and node location coordinate information.
3. method according to claim 1 and 2; It is characterized in that; Said according to operational order; And the nodal information of hyperlink label on the said page of preserving in advance through chained list, and obtain direction along above-mentioned moving cursor through pre-defined algorithm, the step from the center of the nearest hyperlink label of current cursor position comprises:
According to said operational order, obtain the direction of user's moving cursor;
From said chained list, obtain the coordinate of current cursor;
Coordinate with current cursor is a RP, the nodal information of the hyperlink label from said chained list on the direction of the above-mentioned moving cursor of search, and, calculate the center position coordinates of each node according to the nodal information that searches;
According to the center position coordinates of each node and the coordinate of current cursor, calculate the relative distance parameter of each node and current cursor position;
The center of choosing the minimum node of said relative distance parameter is as the center from the nearest hyperlink label of current cursor position.
4. method according to claim 3 is characterized in that, the nodal information that said basis searches, and the step of calculating the center position coordinates of each node comprises:
From said nodal information, obtain the shared width w and the height h of upper left corner horizontal ordinate x, upper left corner ordinate y, node of said node;
The center horizontal ordinate X=x+w/2 that calculates said node according to the upper left corner horizontal ordinate x and the shared width h of node of said node; The center ordinate Y=y+h/2 that calculates said node according to the upper left corner ordinate y and the shared height h of node of said node.
5. method according to claim 3 is characterized in that, said relative distance parameter is: be the girth of the right-angle triangle of hypotenuse formation with the distance between center to the center of current cursor of said node.
6. an intelligent terminal of locating cursor of mouse is characterized in that, comprising:
Receiver module is used to receive the operational order of user's moving cursor on browser page;
Acquisition module; Be used for according to said operational order; And the nodal information of hyperlink label on the said page of preserving in advance through chained list, and obtain direction along above-mentioned moving cursor through pre-defined algorithm, from the center of the nearest hyperlink label of current cursor position;
Operational module is used for current cursor is moved to said center.
7. intelligent terminal according to claim 6 is characterized in that, also comprises:
Memory module is used for when browser loads and resolve the page, preserving the nodal information of hyperlink label on the said page through chained list; Said nodal information comprises: node type, hyperlink address and node location coordinate information.
8. according to claim 6 or 7 described intelligent terminals, it is characterized in that said acquisition module comprises:
First acquiring unit is used for obtaining the direction of user's moving cursor according to said operational order;
Second acquisition unit is used for obtaining from said chained list the coordinate of current cursor;
First computing unit, the coordinate that is used for current cursor is a RP, the nodal information of the hyperlink label from said chained list on the direction of the above-mentioned moving cursor of search, and, calculate the center position coordinates of each node according to the nodal information that searches;
Second computing unit is used for calculating the relative distance parameter of each node and current cursor position according to the center position coordinates of each node and the coordinate of current cursor;
Choose the unit, the center that is used to choose the minimum node of said relative distance parameter is as the center from the nearest hyperlink label of current cursor position.
9. intelligent terminal according to claim 8 is characterized in that, said first computing unit comprises:
The search subelement, the coordinate that is used for current cursor is a RP, the nodal information of the hyperlink label of search on the direction of user's moving cursor from said chained list;
Obtain subelement, be used for obtaining the shared width w and the height h of upper left corner horizontal ordinate x, upper left corner ordinate y, node of said node from said nodal information;
Computation subunit is used for the center horizontal ordinate X=x+w/2 that upper left corner horizontal ordinate x and the shared width h of node according to said node calculate said node; The center ordinate Y=y+h/2 that calculates said node according to the upper left corner ordinate y and the shared height h of node of said node.
10. intelligent terminal according to claim 8 is characterized in that, said relative distance parameter is: be the girth of the right-angle triangle of hypotenuse formation with the distance between center to the center of current cursor of said node.
CN201210063510.4A 2012-03-12 2012-03-12 Intelligent terminal positions method and the intelligent terminal of cursor of mouse Active CN102662493B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210063510.4A CN102662493B (en) 2012-03-12 2012-03-12 Intelligent terminal positions method and the intelligent terminal of cursor of mouse

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210063510.4A CN102662493B (en) 2012-03-12 2012-03-12 Intelligent terminal positions method and the intelligent terminal of cursor of mouse

Publications (2)

Publication Number Publication Date
CN102662493A true CN102662493A (en) 2012-09-12
CN102662493B CN102662493B (en) 2016-08-10

Family

ID=46771997

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210063510.4A Active CN102662493B (en) 2012-03-12 2012-03-12 Intelligent terminal positions method and the intelligent terminal of cursor of mouse

Country Status (1)

Country Link
CN (1) CN102662493B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533416A (en) * 2013-10-25 2014-01-22 深圳创维-Rgb电子有限公司 Method and device for positioning cursor in browser
CN103546822A (en) * 2013-10-30 2014-01-29 乐视致新电子科技(天津)有限公司 Instruction mode switchover method and device based on intelligent television interface
CN103677541A (en) * 2013-12-25 2014-03-26 乐视网信息技术(北京)股份有限公司 Method and system for setting position of moving cursor in display page with links
CN103713834A (en) * 2013-12-30 2014-04-09 深圳Tcl新技术有限公司 Focus positioning method and device
CN103870484A (en) * 2012-12-13 2014-06-18 腾讯科技(深圳)有限公司 Webpage coordination obtaining method and device
CN104050152A (en) * 2013-03-15 2014-09-17 苏州精易会信息技术有限公司 Positioning method for cursor in editable area of webpage
CN104281392A (en) * 2014-10-02 2015-01-14 刘健萍 Method and device for controlling movement of pointer of screen
CN105912206A (en) * 2016-04-08 2016-08-31 深圳市茁壮网络股份有限公司 Webpage focus positioning method and system
CN106611014A (en) * 2015-10-27 2017-05-03 北京国双科技有限公司 Webpage query condition sequence adjustment method and apparatus
WO2021120419A1 (en) * 2019-12-19 2021-06-24 青岛海信传媒网络技术有限公司 User interface display method and device
CN113703633A (en) * 2021-08-31 2021-11-26 深圳市路通网络技术有限公司 Page cursor position control method, device, equipment and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6717600B2 (en) * 2000-12-15 2004-04-06 International Business Machines Corporation Proximity selection of selectable item in a graphical user interface
CN101980191A (en) * 2010-10-14 2011-02-23 优视科技有限公司 Method and device for locking focus element in webpage browsing process

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6717600B2 (en) * 2000-12-15 2004-04-06 International Business Machines Corporation Proximity selection of selectable item in a graphical user interface
CN101980191A (en) * 2010-10-14 2011-02-23 优视科技有限公司 Method and device for locking focus element in webpage browsing process

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103870484B (en) * 2012-12-13 2017-12-29 腾讯科技(深圳)有限公司 Webpage coordinate acquiring method and device
CN103870484A (en) * 2012-12-13 2014-06-18 腾讯科技(深圳)有限公司 Webpage coordination obtaining method and device
CN104050152A (en) * 2013-03-15 2014-09-17 苏州精易会信息技术有限公司 Positioning method for cursor in editable area of webpage
CN104050152B (en) * 2013-03-15 2017-06-16 苏州精易会信息技术有限公司 Editable region cursor positioning method in webpage
CN103533416A (en) * 2013-10-25 2014-01-22 深圳创维-Rgb电子有限公司 Method and device for positioning cursor in browser
WO2015058443A1 (en) * 2013-10-25 2015-04-30 深圳创维-Rgb电子有限公司 Method and apparatus for positioning cursor in browser
CN103546822A (en) * 2013-10-30 2014-01-29 乐视致新电子科技(天津)有限公司 Instruction mode switchover method and device based on intelligent television interface
CN103546822B (en) * 2013-10-30 2017-04-05 乐视致新电子科技(天津)有限公司 It is a kind of to be based on interface of intelligent television indicating mode switching method and apparatus
CN103677541A (en) * 2013-12-25 2014-03-26 乐视网信息技术(北京)股份有限公司 Method and system for setting position of moving cursor in display page with links
CN103713834A (en) * 2013-12-30 2014-04-09 深圳Tcl新技术有限公司 Focus positioning method and device
CN103713834B (en) * 2013-12-30 2018-01-12 深圳Tcl新技术有限公司 The method and device of focus positioning
CN104281392A (en) * 2014-10-02 2015-01-14 刘健萍 Method and device for controlling movement of pointer of screen
CN106611014A (en) * 2015-10-27 2017-05-03 北京国双科技有限公司 Webpage query condition sequence adjustment method and apparatus
CN106611014B (en) * 2015-10-27 2020-08-21 北京国双科技有限公司 Method and device for adjusting webpage query condition sequence
CN105912206A (en) * 2016-04-08 2016-08-31 深圳市茁壮网络股份有限公司 Webpage focus positioning method and system
WO2021120419A1 (en) * 2019-12-19 2021-06-24 青岛海信传媒网络技术有限公司 User interface display method and device
CN113703633A (en) * 2021-08-31 2021-11-26 深圳市路通网络技术有限公司 Page cursor position control method, device, equipment and readable storage medium

Also Published As

Publication number Publication date
CN102662493B (en) 2016-08-10

Similar Documents

Publication Publication Date Title
CN102662493A (en) Method for positioning mouse cursor by using intelligent terminal and the intelligent terminal
US20160283096A1 (en) Method of generating a link by utilizing a picture and system thereof
CN102891765B (en) A kind of method realizing web network topology based on SNMP and HTML5
US20150120772A1 (en) Method and system for information push
RU2016113264A (en) METHOD AND DEVICE FOR DRAWING USER GRAPHIC INTERFACE
WO2013155440A3 (en) Method, web server and web browser of providing information
WO2014120646A3 (en) Method, device and system for publishing merchandise information
CN101980191A (en) Method and device for locking focus element in webpage browsing process
CN104765753A (en) Webpage browsing method and device
CN102184199A (en) Network information recommending method and system
CN104808920A (en) Focal point control method and focal point control device
CN103605848A (en) Method and device for analyzing paths
CN102662837A (en) Testing method and system of browser
CN103955482A (en) Service calling method and equipment in mobile terminal
CN103257962A (en) Method and device for providing information
CN103345498A (en) Webpage loading method, device and system based on transit server
CN106919414B (en) Link request processing method and device
CN104361130B (en) Method for searching local area network or specified network segment equipment in webpage
US10095791B2 (en) Information search method and apparatus
US20110084969A1 (en) Method and apparatus for obtaining minimum cost vector for making skyline object in multi-dimensional space
CN105468747A (en) Recommendation information display method and device
CN104808995A (en) Method and device for storing application contents over applications
CN102609538B (en) Method and device for displaying search results, equipment and system
Dang et al. Zoom: A multi-resolution tasking framework for crowdsourced geo-spatial sensing
US20140143244A1 (en) Method and apparatus for searching for content within a channel based on contextual characteristics

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant