CN106610827B - A method of the mobile custom attributes of extension browser focus and realization focus are mobile - Google Patents
A method of the mobile custom attributes of extension browser focus and realization focus are mobile Download PDFInfo
- Publication number
- CN106610827B CN106610827B CN201510698057.8A CN201510698057A CN106610827B CN 106610827 B CN106610827 B CN 106610827B CN 201510698057 A CN201510698057 A CN 201510698057A CN 106610827 B CN106610827 B CN 106610827B
- Authority
- CN
- China
- Prior art keywords
- focus
- mobile
- custom attributes
- node
- 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.)
- Active
Links
Landscapes
- User Interface Of Digital Computer (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention provides a kind of methods of mobile custom attributes of extension browser focus, which comprises step S1) in the attribute of browser kernel layer extension browser hyperlink html tag, increase the mobile custom attributes of focus;The mobile custom attributes of the focus include: the goal-focus attribute that current focus is customized when moving on four direction up and down;Step S2) increase the node data structures of hyperlink html tag in browser kernel layer, for storing the value of the mobile custom attributes of four focuses.The mobile custom attributes of focus extended in a browser based on the above method, the present invention also provides a kind of methods for realizing that focus is mobile, in design and making of the webpage, if to be customized to the movement of present node, goal-focus can be specified by then increasing the mobile custom attributes of focus in the attribute of the html tag of present node, and the moving operation that focus is carried out in browser execution can customize the motion track of present node.
Description
Technical field
The present invention relates to built-in browser technical field more particularly to a kind of mobile custom attributes of extension browser focus
And realize the mobile method of focus.
Background technique
Browser has been PC Kinds of Essential Software at present, is that we obtain one of main mode of information.Recent years is clear
Device of looking at is configured on more embedded devices, such as digital TV terminal, becomes the master that these equipment carry out information exchange
Want channel.
Different from using keyboard and mouse as operation equipment on PC, the human-computer interaction of digital TV terminal is usually with remote control
Device is as input equipment, and for users to use, and the most important most common user's operation is just for only limited directionkeys and function key
It is the movement for carrying out focus by the directionkeys of remote controler on webpage.In some cases, digital tv network is being designed and produced
When page, in order to guide user mutual behavior or in order to make up design defect control webpage effect, need to move the focus of user
Dynamic rail mark is customized.Existing method is usually by the way of page script come the customization for realizing focus motion track, this
Kind mode not only will increase web data quantity, while increase development difficulty to developer.If have in the page compared with
More focus motion tracks will be customized, and will cause that script data amount is big, development amount is big, at the same also result in webpage because
It is run to load the script of big data slowly.
Summary of the invention
It is an object of the invention to overcome at present on built-in browser realize focus motion track customization when it is existing
Drawbacks described above provides a kind of method for extending the mobile custom attributes of browser focus and realizing focus movement, and this method is in net
To the mobile custom attributes of hyperlink node addition focus when page production, can help to guide user mutual behavior, to the coke of user
Point motion track is customized, while can also carry out the mobile behaviour of focus to user is unfavorable for as caused by webpage design defect
Situations such as webpage blind area of work, carries out the mobile customization of focus.This method simple and stable is efficient, compared to traditional technology, can drop
The handling capacity of low web data reduces development difficulty and development amount.
To achieve the above object, described the present invention provides a kind of method of mobile custom attributes of extension browser focus
Method includes:
Step S1) in the attribute of browser kernel layer extension browser hyperlink html tag, increase the mobile customization of focus
Attribute;The mobile custom attributes of the focus include: the target coke that current focus is customized when moving on four direction up and down
Point attribute;
Step S2) increase the node data structures of hyperlink html tag in browser kernel layer, for storing four cokes
The value of the mobile custom attributes of point.
In above-mentioned technical proposal, the step S2) in the mobile custom attributes value of four focuses be equal to current focus upper
The identification number or title of the goal-focus customized when being moved on the four direction of lower left and right.
Based on the mobile custom attributes of focus that the above method extends in a browser, it is burnt that the present invention also provides a kind of realizations
The mobile method of point, which comprises
Step T1) increase the mobile custom attributes of focus in the attribute of the html tag of present node;
Step T2) webpage carries out the load of page data, and browser kernel parses web page contents, parsing obtained
Hyperlink html tag in the mobile custom attributes value of focus store into the data structure of web page joint;
Step T3) manipulation direction keys of remote controller current focus is moved in s direction;The direction S refers to remote control
Any one direction of the four direction up and down of device directionkeys;
Step T4) browser kernel carries out that the focus on the direction S is mobile to customize inquiry, determine goal-focus;
Step T5) the goal-focus information that will acquire of browser kernel layer is transmitted to UI layers of webpage, and UI layers of webpage is from current
Focus is switched to the goal-focus of customization;UI layers of webpage more new web page focus element information, is set as focus state for goal-focus,
Current focus is changed to non-focusing state.
In above-mentioned technical proposal, the step T1) in the mobile custom attributes of the increased focus of present node be browser
Any combination of the mobile custom attributes of four focuses of kernel extensions.
In above-mentioned technical proposal, the step T4) it specifically includes:
When step 201) current focus carries out moving operation in s direction, corresponding the determining in this direction of current focus is obtained
Attribute value value processed;
The identification number or title of step 202) acquisition current focus;
Custom attributes value value is compared by step 203) with the identification number of current focus or title, if value etc.
It is equal to the title of current focus in the identification number or value of current focus, determines that current focus is goal-focus, be transferred to step
T5);
Step 204) traverses the remaining hyperlink node in current page, obtains a candidate hyperlink node;
Step 205) obtains the identification number or title of candidate hyperlink node;
Custom attributes value value is compared by step 206) with the identification number of candidate hyperlink node or title, if
Value is equal to the title of candidate hyperlink node equal to the identification number or value of candidate hyperlink node, it is determined that the candidate
Hyperlink node is destination node, is transferred to step 207), otherwise, goes to step 204);
Step 207) determines that it is goal-focus and is transferred to step when destination node is effective node in addition to current focus
T5);Otherwise, it is transferred to step 204);Until having traversed hyperlink node all in current page.
The present invention has the advantages that method simple and stable of the invention is efficient, compared to traditional technology, it is only necessary in net
The data addition that lightweight is done on page, can be effectively reduced the handling capacity of web data, reduce development difficulty and development
Amount.
Detailed description of the invention
Fig. 1 is the flow chart of the method for the mobile custom attributes of extension browser focus provided by the invention;
Fig. 2 is the operation timing flow chart provided by the invention for realizing focus mobility method;
Fig. 3 is that focus provided by the invention customizes mobile enquiry flow chart.
Specific embodiment
The method of the invention is further described with reference to the accompanying drawing.
As shown in Figure 1, the present invention provides a kind of method of mobile custom attributes of extension browser focus, the method packet
It includes:
Step S1) in the attribute of browser kernel layer extension browser hyperlink html tag, increase the mobile customization of focus
Attribute;The mobile custom attributes of the focus include: the target coke that current focus is customized when moving on four direction up and down
Point attribute;
Step S2) increase the node data structures of hyperlink html tag in browser kernel layer, for storing four cokes
The value of the mobile custom attributes of point;
The mobile custom attributes value of the focus is equal to the mesh that current focus is customized when moving on four direction up and down
Mark the identification number (id) or title (name) of focus;Work as prosthomere when the value of the mobile custom attributes of focus on any one direction is equal to
The id or name of point, can control current focus on corresponding direction without movement.
Based on the mobile custom attributes of the focus extended in a browser that the above method is realized, the present invention also provides one kind
Realize the mobile method of focus, as shown in Figure 2, which comprises
Step T1) increase the mobile custom attributes of focus in the attribute of the html tag of present node;
Belong in the mobile customization of four focuses that the mobile custom attributes of the increased focus of present node are browser kernel extension
Any combination of property;
Step T2) webpage carries out the load of page data, and browser kernel parses web page contents, parsing obtained
Hyperlink html tag in the mobile custom attributes value of focus store into the data structure of web page joint;
Step T3) manipulation direction keys of remote controller current focus is moved in s direction;
The direction S refers to any one direction of the four direction up and down of direction keys of remote controller;
Step T4) browser kernel carries out that the focus on the direction S is mobile to customize inquiry, determine goal-focus;
As shown in figure 3, the step T4) it specifically includes:
When step 201) current focus carries out moving operation in s direction, corresponding the determining in this direction of current focus is obtained
Attribute value value processed;
The id or name of step 202) acquisition current focus;
Custom attributes value value is compared by step 203) with the id of current focus or name, if value is equal to id
Or value is equal to name, determines that current focus is goal-focus, is transferred to step T5);
Step 204) traverses the remaining hyperlink node in current page, obtains a candidate hyperlink node;
Step 205) obtains the id or name of candidate hyperlink node;
Custom attributes value value is compared by step 206) with the id or name of candidate hyperlink node, if value
It is equal to name equal to id or value, it is determined that candidate's hyperlink node is destination node, is transferred to step 207), otherwise, is turned
To step 204);
Step 207) determines that it is goal-focus and is transferred to step when destination node is effective node in addition to current focus
T5);Otherwise, it is transferred to step 204);Until having traversed hyperlink node all in current page.
Step T5) the goal-focus information that will acquire of browser kernel layer is transmitted to UI layers of webpage, and UI layers of webpage is from current
Focus is switched to the goal-focus of customization;UI layers of webpage more new web page focus element information, is set as focus state for goal-focus,
Current focus is changed to non-focusing state.
After browser has the focus mobile function of customizing, in design and making of the webpage, if will be to working as prosthomere
The movement of point is customized, then increasing the mobile custom attributes of focus in the attribute of the html tag of present node can specify
Goal-focus, the moving operation that focus is carried out in browser execution can customize the motion track of present node.
It should be noted last that the above examples are only used to illustrate the technical scheme of the present invention and are not limiting.Although ginseng
It is described the invention in detail according to embodiment, those skilled in the art should understand that, to technical side of the invention
Case is modified or replaced equivalently, and without departure from the spirit and scope of technical solution of the present invention, should all be covered in the present invention
Scope of the claims in.
Claims (2)
1. a kind of method for realizing that focus is mobile, this method extends the mobile custom attributes of focus of browser first:
Step S1) in the attribute of browser kernel layer extension browser hyperlink html tag, increase the mobile custom attributes of focus;
The mobile custom attributes of the focus include: the goal-focus category that current focus is customized when moving on four direction up and down
Property;
Step S2) increase the node data structures of hyperlink html tag in browser kernel layer, it is moved for storing four focuses
The value of dynamic custom attributes;The mobile custom attributes value of four focuses is equal to current focus and moves on four direction up and down
When the identification number or title of the goal-focus that customize;
This method comprises:
Step T1) increase the mobile custom attributes of focus in the attribute of the html tag of present node;
Step T2) webpage carries out the load of page data, browser kernel parses web page contents, will parsing obtain it is super
The mobile custom attributes value of the focus in html tag is linked to store into the data structure of web page joint;
Step T3) manipulation direction keys of remote controller current focus is moved in s direction;The direction S refers to remote controler side
To any one direction of the four direction up and down of key;
Step T4) browser kernel carries out that the focus on the direction S is mobile to customize inquiry, determine goal-focus;
Step T5) the goal-focus information that will acquire of browser kernel layer is transmitted to UI layers of webpage, and UI layers of webpage is from current focus
It is switched to the goal-focus of customization;UI layers of webpage more new web page focus element information, is set as focus state for goal-focus, currently
Focus is changed to non-focusing state;
The step T4) it specifically includes:
When step 201) current focus carries out moving operation in s direction, the corresponding customization category in this direction of current focus is obtained
Property value value;
The identification number or title of step 202) acquisition current focus;
Custom attributes value value is compared by step 203) with the identification number of current focus or title, is worked as if value is equal to
The identification number or value of front focus are equal to the title of current focus, determine that current focus is goal-focus, are transferred to step T5);
Step 204) traverses the remaining hyperlink node in current page, obtains a candidate hyperlink node;
Step 205) obtains the identification number or title of candidate hyperlink node;
Custom attributes value value is compared by step 206) with the identification number of candidate hyperlink node or title, if value
Equal to the title that the identification number or value of candidate hyperlink node are equal to candidate hyperlink node, it is determined that candidate's hyperlink
Connecing node is destination node, is transferred to step 207), otherwise, goes to step 204);
Step 207) determines that it is goal-focus and is transferred to step T5 when destination node is effective node in addition to current focus);
Otherwise, it is transferred to step 204);Until having traversed hyperlink node all in current page.
2. the method according to claim 1 for realizing that focus is mobile, which is characterized in that the step T1) in present node
The mobile custom attributes of increased focus are any combination of the mobile custom attributes of four focuses of browser kernel extension.
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 CN106610827A (en) | 2017-05-03 |
CN106610827B true 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) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107450808B (en) * | 2017-09-22 | 2020-09-01 | 北京知道创宇信息技术股份有限公司 | Mouse pointer positioning method of browser and computing device |
CN110688041B (en) * | 2019-09-29 | 2022-02-08 | 阿波罗智联(北京)科技有限公司 | Mobile client focus adjusting method and device, mobile terminal and readable storage medium |
CN113051495B (en) * | 2019-12-27 | 2023-10-20 | 成都鼎桥通信技术有限公司 | Web page focus navigation method and device |
Family Cites Families (4)
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 |
CN102402601B (en) * | 2011-11-18 | 2015-06-17 | 四川长虹电器股份有限公司 | 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 |
CN103473055B (en) * | 2013-09-06 | 2017-04-05 | 乐视致新电子科技(天津)有限公司 | A kind of focus control method for movement and device |
-
2015
- 2015-10-23 CN CN201510698057.8A patent/CN106610827B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN106610827A (en) | 2017-05-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106155644B (en) | Webpage focal point control implementation method suitable for smart television browser | |
US20170255705A1 (en) | Method and apparatus of browsing modeling | |
DE112009000001B4 (en) | Contact model for websites | |
CN104834753A (en) | Webpage screenshot generating method and device | |
CN106610827B (en) | A method of the mobile custom attributes of extension browser focus and realization focus are mobile | |
CN103648055A (en) | Screen adaptive method of intelligent TV browser, device thereof and intelligent TV | |
CN103020237B (en) | A kind of webpage update method and device | |
CN103699389A (en) | Linux kernel module relation extracting method based on compiling options | |
CN104881448A (en) | Map path marking method and device | |
CN104866527A (en) | Dynamic webpage template matching method and device | |
CN105468586A (en) | Translation function implementation method and translation function implementation device | |
CN103678317B (en) | The automatic adaptation method and system of page layout | |
CN102830974A (en) | Visual auxiliary development tool for rapid generation of JAVA codes | |
CN104598133B (en) | The specification generation method and device of object | |
CN105095285B (en) | Digital publication guide to visitors catalogue treating method and apparatus | |
CN103648043A (en) | Searching control method and control apparatus for smart television set | |
CN103218452A (en) | Method and device for recognizing valid interlinkage in Hub webpage | |
CN104346174B (en) | A kind of description of online polar plot modeling process and replay method | |
CN105578294B (en) | Browse switching handling method, apparatus and system | |
CN101777067B (en) | System for recognizing and managing web page contents for mobile communication equipment terminals | |
CN103747352A (en) | Smart television search control method and control device | |
CN104536692A (en) | Operation method of touch screen, touch device and touch terminal | |
JP2008140060A (en) | Content acquisition management device and content acquisition management program | |
CN106534732A (en) | Tree-type navigation menu designing method applied to digital television | |
CN104683310A (en) | Beginner guiding implementation method for online game |
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 |
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 |
|
TR01 | Transfer of patent right |