CN106610827A - Method for extending customer attributes of browser focal point shift and realizing focal point shift - Google Patents

Method for extending customer attributes of browser focal point shift and realizing focal point shift Download PDF

Info

Publication number
CN106610827A
CN106610827A CN201510698057.8A CN201510698057A CN106610827A CN 106610827 A CN106610827 A CN 106610827A CN 201510698057 A CN201510698057 A CN 201510698057A CN 106610827 A CN106610827 A CN 106610827A
Authority
CN
China
Prior art keywords
focus
node
custom attributes
browser
value
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
CN201510698057.8A
Other languages
Chinese (zh)
Other versions
CN106610827B (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.)
Zhengzhou Xinrand Network Technology Co ltd
Original Assignee
Institute of Acoustics CAS
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 Institute of Acoustics CAS filed Critical Institute of Acoustics CAS
Priority to CN201510698057.8A priority Critical patent/CN106610827B/en
Publication of CN106610827A publication Critical patent/CN106610827A/en
Application granted granted Critical
Publication of CN106610827B publication Critical patent/CN106610827B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method for extending customer attributes of the focal point shift of a browser and realizing the focal point shift. The method comprises the following steps: step S1) extending the attributes of browser hyperlink HTML labels on a browser inner nuclear layer, and adding the customer attributes of the focal point shift, wherein the customer attributes of the focal point shift comprise customized target focal point attributes when a current focal point is shifted in the left, right, upper and lower directions; and step S2) adding a node data structure of the hyperlink HTML labels on the browser inner nuclear layer for storing the values of the four focal point shifting customer attributes. Based on the focal point shifting customer attributes extended in the browser according to the method, the invention also provides a method for realizing the focal point shift. When a webpage is designed and manufactured, if the shifting of the current node needs to be customized, the target focal point can be appointed by adding the customer attributes of the focal point shift in the attributes of the HTML labels of the current node, and the shifting track of the current node can be customized through the shifting operation of the focal point when the browser runs.

Description

A kind of extension browser focus movement custom attributes and the method for realizing focus movement
Technical field
The present invention relates to built-in browser technical field, more particularly to a kind of method that extension browser focus move custom attributes and realize focus movement.
Background technology
At present browser has been PC Kinds of Essential Software, is that we obtain one of main mode of information.Recent years, browser was configured on more embedded devices, such as digital TV terminal, and becoming these equipment carries out the main channel of information exchange.
Different from keyboard and mouse are used on PC as operation equipment, the man-machine interaction of digital TV terminal is generally using remote control as input equipment, for users to use, and most important modal user operation is exactly to carry out the movement of focus by the directionkeys of remote control on webpage for only limited directionkeys and function key.In some cases, when digital television webpage is designed and produced, in order to guide user mutual behavior or in order to make up design defect control webpage effect, need to be customized the focus motion track of user.Existing method is typically with the mode of page script to realize the customization of focus motion track, and this mode can not only increase web data quantity, while increased development difficulty to developer.If there is more focus motion track to be customized in the page, can cause that script data amount is big, development amount big, while also result in webpage running slow because of the script of loading big data.
The content of the invention
It is an object of the invention to overcome realize on built-in browser at present the drawbacks described above that focus motion track exists when customizing, there is provided a kind of extension browser focus movement custom attributes and the method for realizing focus movement, the method is in webpage making to hyperlink node addition focus movement custom attributes, can help guide user mutual behavior, the focus motion track of user is customized, at the same can also to because of situations such as be unfavorable for caused by webpage design defect user carry out focus moving operation webpage blind area carry out focus movement customize.The method simple and stable efficiently, compared to conventional art, can reduce the handling capacity of web data, reduce development difficulty and development amount.
For achieving the above object, the invention provides a kind of extend the method that browser focus move custom attributes, methods described includes:
Step S1) in the attribute of browser kernel layer extension browser hyperlink html tag, increase focus movement custom attributes;The focus movement custom attributes include:The goal-focus attribute customized when current focus is moved on four direction up and down;
Step S2) in the node data structures of browser kernel layer increase hyperlink html tag, for storing the value that four focuses move custom attributes.
In above-mentioned technical proposal, step S2) in four focuses movement custom attributes value be equal to the identification number or title of the goal-focus customized when current focus is moved on four direction up and down.
The focus extended in a browser based on said method moves custom attributes, present invention also offers a kind of realize the method that focus is moved, methods described includes:
Step T1) increase focus movement custom attributes in the attribute of the html tag of present node;
Step T2) webpage carries out the loading of page data, and browser kernel is parsed to web page contents, and the focus movement custom attributes value in the hyperlink html tag that parsing is obtained is stored in the data structure of web page joint;
Step T3) manipulation direction keys of remote controller current focus is moved in s direction;The S directions refer to any one direction of the four direction up and down of direction keys of remote controller;
Step T4) browser kernel carry out on S directions focus movement customize inquiry, determine goal-focus;
Step T5) by the goal-focus information transmission for obtaining to webpage UI layers, webpage UI layers are switched to the goal-focus of customization from current focus to browser kernel layer;Goal-focus are set to focus state by webpage UI layers more new web page focus element information, and current focus is changed to non-focusing state.
In above-mentioned technical proposal, step T1) in the focus movement custom attributes that increase in present node be that four focuses of browser kernel extension move the combination in any of custom attributes.
In above-mentioned technical proposal, step T4) specifically include:
Step 201) current focus when moving operation in s direction, obtains current focus correspondence custom attributes value value in this direction;
Step 202) obtain current focus identification number or title;
Step 203) custom attributes value value is compared with the identification number or title of current focus, if value is equal to the title that the identification number or value of current focus is equal to current focus, determine that current focus is goal-focus, proceed to step T5);
Step 204) traversal current page in remaining hyperlink node, obtain candidate's hyperlink node;
Step 205) obtain candidate's hyperlink node identification number or title;
Step 206) custom attributes value value is compared with the identification number or title of candidate's hyperlink node, if value is equal to the title that the identification number or value of candidate's hyperlink node is equal to candidate's hyperlink node, then determine that candidate's hyperlink node is destination node, proceed to step 207), otherwise, step 204 is gone to);
Step 207), when destination node is the effective node in addition to current focus, determines that it is goal-focus and proceed to step T5);Otherwise, step 204 is proceeded to);Until having traveled through all of hyperlink node in current page.
It is an advantage of the current invention that:Method of the present invention simple and stable efficiently, compared to conventional art, it is only necessary to which the data that lightweight is done on webpage are added, can be effectively reduced the handling capacity of web data, reduction development difficulty and development amount.
Description of the drawings
The flow chart of the method for the extension browser focus movement custom attributes that Fig. 1 is provided for the present invention;
The operation sequential flow chart for realizing focus mobility method that Fig. 2 is provided for the present invention;
Fig. 3 customizes mobile enquiry flow chart for the focus that the present invention is provided.
Specific embodiment
The method of the invention is further described below in conjunction with the accompanying drawings.
As shown in figure 1, the invention provides a kind of extension browser focus method for moving custom attributes, methods described includes:
Step S1) in the attribute of browser kernel layer extension browser hyperlink html tag, increase focus movement custom attributes;The focus movement custom attributes include:The goal-focus attribute customized when current focus is moved on four direction up and down;
Step S2) in the node data structures of browser kernel layer increase hyperlink html tag, for storing the value that four focuses move custom attributes;
The focus movement custom attributes value is equal to the identification number (id) or title (name) of the goal-focus customized when current focus is moved on four direction up and down;When the value of the focus movement custom attributes on any one direction is equal to the id or name of present node, current focus can be controlled and do not moved on correspondence direction.
The focus movement custom attributes for extending in a browser realized based on said method, present invention also offers a kind of realize the method that focus is moved, as shown in Fig. 2 methods described includes:
Step T1) increase focus movement custom attributes in the attribute of the html tag of present node;
The focus movement custom attributes increased in present node are the combination in any that four focuses of browser kernel extension move custom attributes;
Step T2) webpage carries out the loading of page data, and browser kernel is parsed to web page contents, and the focus movement custom attributes value in the hyperlink html tag that parsing is obtained is stored in the data structure of web page joint;
Step T3) manipulation direction keys of remote controller current focus is moved in s direction;
The S directions refer to any one direction of the four direction up and down of direction keys of remote controller;
Step T4) browser kernel carry out on S directions focus movement customize inquiry, determine goal-focus;
As shown in figure 3, step T4) specifically include:
Step 201) current focus when moving operation in s direction, obtains current focus correspondence custom attributes value value in this direction;
Step 202) obtain current focus id or name;
Step 203) custom attributes value value is compared with the id or name of current focus, if value is equal to id or value and is equal to name, determine that current focus is goal-focus, proceed to step T5);
Step 204) traversal current page in remaining hyperlink node, obtain candidate's hyperlink node;
Step 205) obtain candidate's hyperlink node id or name;
Step 206) custom attributes value value is compared with the id or name of candidate's hyperlink node, if value is equal to id or value and is equal to name, it is determined that candidate's hyperlink node is destination node, proceeds to step 207), otherwise, step 204 is gone to);
Step 207), when destination node is the effective node in addition to current focus, determines that it is goal-focus and proceed to step T5);Otherwise, step 204 is proceeded to);Until having traveled through all of hyperlink node in current page.
Step T5) by the goal-focus information transmission for obtaining to webpage UI layers, webpage UI layers are switched to the goal-focus of customization from current focus to browser kernel layer;Goal-focus are set to focus state by webpage UI layers more new web page focus element information, and current focus is changed to non-focusing state.
After browser possesses the function that focus movement is customized, in design and making of the webpage, if to be customized to the movement of present node, then increasing focus movement custom attributes in the attribute of the html tag of present node can just specify goal-focus, and the moving operation of focus is carried out in browser execution can just customize the motion track of present node.
It should be noted last that, above example is only to illustrate technical scheme and unrestricted.Although being described in detail to the present invention with reference to embodiment, it will be understood by those within the art that, technical scheme is modified or equivalent, without departure from the spirit and scope of technical solution of the present invention, it all should cover in the middle of scope of the presently claimed invention.

Claims (5)

1. a kind of method that extension browser focus move custom attributes, methods described includes:
Step S1) in the attribute of browser kernel layer extension browser hyperlink html tag, increase focus movement Custom attributes;The focus movement custom attributes include:Determine when current focus is moved on four direction up and down The goal-focus attribute of system;
Step S2) in the node data structures of browser kernel layer increase hyperlink html tag, for storing four Individual focus moves the value of custom attributes.
2. the method that extension browser focus according to claim 1 move custom attributes, it is characterised in that Step S2) in four focuses movement custom attributes value move on four direction up and down equal to current focus The identification number or title of the goal-focus customized when dynamic.
3. it is a kind of to realize the method that focus is moved, based on extending in a browser described in one of claim 1-2 Focus movement custom attributes realize that the method includes:
Step T1) increase focus movement custom attributes in the attribute of the html tag of present node;
Step T2) webpage carries out the loading of page data, and browser kernel is parsed to web page contents, will parsed Focus movement custom attributes value in the hyperlink html tag for obtaining is stored in the data structure of web page joint;
Step T3) manipulation direction keys of remote controller current focus is moved in s direction;The S directions refer to Any one direction of the four direction up and down of direction keys of remote controller;
Step T4) browser kernel carry out on S directions focus movement customize inquiry, determine goal-focus;
Step T5) browser kernel layer by the goal-focus information transmission for obtaining to webpage UI layers, webpage UI layers from Current focus is switched to the goal-focus of customization;Webpage UI layers more new web page focus element information, goal-focus are set For focus state, current focus is changed to non-focusing state.
4. it is according to claim 3 to realize the method that focus is moved, it is characterised in that step T1) in The focus movement custom attributes increased in present node are four focuses movement custom attributes of browser kernel extension Combination in any.
5. it is according to claim 3 to realize the method that focus is moved, it is characterised in that step T4) tool Body includes:
Step 201) current focus is when moving operation in s direction, obtains current focus correspondence in this direction Custom attributes value value;
Step 202) obtain current focus identification number or title;
Step 203) custom attributes value value is compared with the identification number or title of current focus, if value The title of current focus is equal to equal to the identification number or value of current focus, determines that current focus is goal-focus, Proceed to step T5);
Step 204) traversal current page in remaining hyperlink node, obtain candidate's hyperlink node;
Step 205) obtain candidate's hyperlink node identification number or title;
Step 206) custom attributes value value is compared with the identification number or title of candidate's hyperlink node, such as Fruit value is equal to the title that the identification number or value of candidate's hyperlink node is equal to candidate's hyperlink node, then really Fixed candidate's hyperlink node is destination node, proceeds to step 207), otherwise, go to step 204);
Step 207) when destination node is the effective node in addition to current focus, determines that it is goal-focus and proceed to step Rapid T5);Otherwise, step 204 is proceeded to);Until having traveled through all of hyperlink node in current page.
CN201510698057.8A 2015-10-23 2015-10-23 A method of the mobile custom attributes of extension browser focus and realization focus are mobile Active CN106610827B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510698057.8A CN106610827B (en) 2015-10-23 2015-10-23 A method of the mobile custom attributes of extension browser focus and realization focus are mobile

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510698057.8A CN106610827B (en) 2015-10-23 2015-10-23 A method of the mobile custom attributes of extension browser focus and realization focus are mobile

Publications (2)

Publication Number Publication Date
CN106610827A true CN106610827A (en) 2017-05-03
CN106610827B CN106610827B (en) 2019-10-22

Family

ID=58612260

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510698057.8A Active CN106610827B (en) 2015-10-23 2015-10-23 A method of the mobile custom attributes of extension browser focus and realization focus are mobile

Country Status (1)

Country Link
CN (1) CN106610827B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107450808A (en) * 2017-09-22 2017-12-08 北京知道创宇信息技术有限公司 The mouse pointer localization method and computing device of a kind of browser
CN110688041A (en) * 2019-09-29 2020-01-14 百度在线网络技术(北京)有限公司 Mobile client focus adjusting method and device, mobile terminal and readable storage medium
CN113051495A (en) * 2019-12-27 2021-06-29 成都鼎桥通信技术有限公司 Web page focus navigation method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101888530A (en) * 2010-06-30 2010-11-17 中山大学 Embedded browser-based HTML label and attribute expansion method
CN102402601A (en) * 2011-11-18 2012-04-04 四川长虹电器股份有限公司 Focus navigation method based on embedded full-functional browser
US20130254652A1 (en) * 2012-03-12 2013-09-26 Mentormob, Inc. Providing focus to portion(s) of content of a web resource
CN103473055A (en) * 2013-09-06 2013-12-25 乐视致新电子科技(天津)有限公司 Focus movement control method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101888530A (en) * 2010-06-30 2010-11-17 中山大学 Embedded browser-based HTML label and attribute expansion method
CN102402601A (en) * 2011-11-18 2012-04-04 四川长虹电器股份有限公司 Focus navigation method based on embedded full-functional browser
US20130254652A1 (en) * 2012-03-12 2013-09-26 Mentormob, Inc. Providing focus to portion(s) of content of a web resource
CN103473055A (en) * 2013-09-06 2013-12-25 乐视致新电子科技(天津)有限公司 Focus movement control method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107450808A (en) * 2017-09-22 2017-12-08 北京知道创宇信息技术有限公司 The mouse pointer localization method and computing device of a kind of browser
CN110688041A (en) * 2019-09-29 2020-01-14 百度在线网络技术(北京)有限公司 Mobile client focus adjusting method and device, mobile terminal and readable storage medium
CN110688041B (en) * 2019-09-29 2022-02-08 阿波罗智联(北京)科技有限公司 Mobile client focus adjusting method and device, mobile terminal and readable storage medium
CN113051495A (en) * 2019-12-27 2021-06-29 成都鼎桥通信技术有限公司 Web page focus navigation method and device

Also Published As

Publication number Publication date
CN106610827B (en) 2019-10-22

Similar Documents

Publication Publication Date Title
KR102436987B1 (en) Method and terminal device for extracting web page content
JP5243240B2 (en) Automatic suggestion list and handwriting input
US20120331506A1 (en) User interface and content integration
US20110022945A1 (en) Method and apparatus of browsing modeling
CN110309316B (en) Method and device for determining knowledge graph vector, terminal equipment and medium
US8977967B2 (en) Rules for navigating to next content in a browser
EP3226159A1 (en) System and method for managing browsing histories of web browser
CN101364227B (en) Page switching method and system and digital television processing apparatus
CN104484193A (en) Method and device for rapidly starting application program
CN104808920A (en) Focal point control method and focal point control device
CN102662646A (en) Sensing data processing method and compute node
CN106610827A (en) Method for extending customer attributes of browser focal point shift and realizing focal point shift
CN104461512A (en) Method and device for starting application program quickly
CN103577030A (en) Method and system for displaying interfaces of windows of browsers
CN102799477A (en) Resource access method and apparatus
CN105183291A (en) Method and system for extracting information in display interface
CN104881448A (en) Map path marking method and device
CN110413520A (en) Method, server and the readable storage medium storing program for executing of control are obtained in page test
CN104778239A (en) Focus query method for embedded browser
CN104021039A (en) Calling method for APP and browser
CN103648043A (en) Searching control method and control apparatus for smart television set
CN110430472A (en) Page control method, device and equipment
CN104346174B (en) A kind of description of online polar plot modeling process and replay method
CN103747352A (en) Smart television search control method and control device
KR101519381B1 (en) Apparatus and method for making web application using html5

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210802

Address after: Room 1601, 16th floor, East Tower, Ximei building, No. 6, Changchun Road, high tech Industrial Development Zone, Zhengzhou, Henan 450001

Patentee after: Zhengzhou xinrand Network Technology Co.,Ltd.

Address before: 100190, No. 21 West Fourth Ring Road, Beijing, Haidian District

Patentee before: INSTITUTE OF ACOUSTICS, CHINESE ACADEMY OF SCIENCES