CN110475138A - Show focus triggering method, device, computer equipment and the storage medium of the page - Google Patents

Show focus triggering method, device, computer equipment and the storage medium of the page Download PDF

Info

Publication number
CN110475138A
CN110475138A CN201910603332.1A CN201910603332A CN110475138A CN 110475138 A CN110475138 A CN 110475138A CN 201910603332 A CN201910603332 A CN 201910603332A CN 110475138 A CN110475138 A CN 110475138A
Authority
CN
China
Prior art keywords
focus
current
page
display
pattern class
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.)
Pending
Application number
CN201910603332.1A
Other languages
Chinese (zh)
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 Saiante Technology Service Co Ltd
Original Assignee
Ping An International Smart City 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 Ping An International Smart City Technology Co Ltd filed Critical Ping An International Smart City Technology Co Ltd
Priority to CN201910603332.1A priority Critical patent/CN110475138A/en
Publication of CN110475138A publication Critical patent/CN110475138A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • H04N21/42206User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
    • H04N21/42212Specific keyboard arrangements
    • H04N21/42218Specific keyboard arrangements for mapping a matrix of displayed objects on the screen to the numerical key-matrix of the remote control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content

Abstract

This application involves development field, in particular to a kind of focus triggering method, device, computer equipment and storage medium for showing the page.The described method includes: receiving the focus that control terminal is sent changes instruction, focus changes instruction and carries focus shift amount;Current focus position in the identification display page, navigates to object element according to current focus position and focus shift amount;It identifies the element pattern class of object element, and according to the corresponding relationship of element pattern class and focus pattern class, obtains the corresponding focus pattern class of object element;In the display page, in the display page, object element is shown as the corresponding focus display effect of focus pattern class, and eliminate the focus display effect of the corresponding currentElement in current focus position.A variety of dvielements in the display page can be triggered using this method.

Description

Show focus triggering method, device, computer equipment and the storage medium of the page
Technical field
This application involves field of computer technology, more particularly to a kind of focus triggering method for showing the page, device, meter Calculate machine equipment and storage medium.
Background technique
With the development of digital intelligent equipment, the application of DTV is also more and more extensive, and user is generally by machine Top box operates DTV;Conventional set-top box operation, it is main that human-computer interaction is carried out by remote controler, and pass through various elements Focus feedback shows page operation as a result, showing has the mechanism of a set of triggering focus and have in the document dbject model in the page The pattern of some defaults.
However, these the default styles cannot cover the element in all display pages, only the elements energy such as key, input frame Focus is controlled by set box browser, and set-top box shows common picture box, video window or some fixed in the page The complex element of inhibition and generation cannot control focus by this way, and user can not directly operate these in the set-top box display page Element.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of a variety of dvielements that can be triggered in the display page Display the page focus triggering method, device, computer equipment and storage medium.
A kind of focus triggering method showing the page, which comprises
It receives the focus that control terminal is sent and changes instruction, the focus changes instruction and carries focus shift amount;
Current focus position in the identification display page, positions according to the current focus position and the focus shift amount To object element;
Identify the element pattern class of the object element, and according to the corresponding relationship of element pattern class and focus pattern class, Obtain the corresponding focus pattern class of the object element;
In the display page, the object element is shown as the corresponding focus display effect of the focus pattern class Fruit, and eliminate the focus display effect of the corresponding currentElement in the current focus position.
The element pattern class of the identification object element in one of the embodiments, and according to element pattern class With the corresponding relationship of focus pattern class, the corresponding focus pattern class of the object element is obtained, comprising:
Obtain the first element style identifications in the display formula of the object element;
According to the mapping relations of stored element style identifications and focus style identifications, the first element pattern is obtained Identify corresponding first focus style identifications;
The first focus style identifications are added in the display formula of the object element.
It is described in one of the embodiments, the object element is shown as the corresponding focus of the focus pattern class to show Show effect, comprising:
It obtains the corresponding focus of the first focus style identifications and shows example;
Show that example shows the object element in the display page according to the focus;
Render the display page.
In one of the embodiments, the method also includes:
Receive the map updating instruction that server is sent;
The mapping relations of the element style identifications and focus style identifications are updated according to map updating instruction.
The rendering display page in one of the embodiments, comprising:
Identify that the focus style identifications of first area and deletion of the object element in the display page are corresponding Second area of the element in the display page;
Render the first area and the second area.
The position of element is indicated according to two-dimensional array on the display page in one of the embodiments, the focus Displacement includes the first displacement and second displacement amount;Current focus position in the identification display page, works as according to described Front focus position and the focus shift amount navigate to object element, comprising:
The current focus position in the display page is obtained, the current focus position includes current first coordinate and current the Two coordinates;
Increase by first displacement on the basis of current first coordinate, obtains the first coordinate to be triggered;
Increase the second displacement amount on the basis of current second coordinate, obtains the second coordinate to be triggered;
According to first coordinate to be triggered and second coordinate setting to be triggered to object element.
A kind of focus trigger device showing the page, described device include:
Focus changes command reception module, and the focus for receiving control terminal transmission changes instruction, and the focus variation refers to Order carries focus shift amount;
Location identification module shows the current focus position in the page for identification, according to the current focus position and The focus shift amount navigates to object element;
Show Styles obtains module, the element pattern class of the object element for identification, and according to element pattern class and The corresponding relationship of focus pattern class obtains the corresponding focus pattern class of the object element;
Update module is shown, in the display page, the object element to be shown as the focus pattern class Corresponding focus display effect, and eliminate the focus display effect of the corresponding currentElement in the current focus position.
The Show Styles obtains module in one of the embodiments, comprising:
Current pattern recognition unit, the first element style identifications in display formula for obtaining the object element;
Focus pattern acquiring unit to be shown, for reflecting according to stored element style identifications and focus style identifications Relationship is penetrated, the corresponding first focus style identifications of the first element style identifications are obtained;
Focus pattern adding unit, for the first focus style identifications to be added to the display journey of the object element In formula.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing The step of device realizes any of the above-described the method when executing the computer program.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor The step of method described in any of the above embodiments is realized when row.
Focus triggering method, device, computer equipment and the storage medium of the above-mentioned display page, the control terminals such as remote controler to Terminal sends the focus variation instruction for carrying focus shift amount, after terminal, which receives focus, changes instruction, according to therein Focus shift amount navigates to the object element in the display page, is obtained according to the corresponding relationship of element pattern class and focus pattern class Focus pattern class of this object element when triggering is focus, and this element is shown as by focus display effect according to focus pattern class Fruit, eliminate display the page in the corresponding currentElement in current focus position focus display effect, complete this focal variation, The operation of new focus triggering;In the above method, by the corresponding relationship of element pattern class and focus pattern class come control element not Display effect when triggering and being triggered when an element is defined as being triggered element, then goes to call corresponding focus sample Formula class finally realizes the focus display effect of this element;For to meeting element and can also be compiled by the page in the display page The mode of code, is included in the element that can be triggered focus, and passes through centralized definition element pattern class and focus pattern class Corresponding relationship can flexibly modify the variation that element is triggered display effect before and after focus.
Detailed description of the invention
Fig. 1 is the application scenario diagram that the focus triggering method of the page is shown in one embodiment;
Fig. 2 is the flow diagram that the focus triggering method of the page is shown in one embodiment;
Fig. 3 is the flow diagram of step S206 in one embodiment;
Fig. 4 is the flow diagram of step S204 in one embodiment;
Fig. 5 is the structural block diagram that the focus trigger device of the page is shown in one embodiment;
Fig. 6 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
The focus triggering method of the display page provided by the present application, can be applied in application environment as shown in Figure 1.Its In, control terminal 102 is communicated by modes such as infrared ray, network, bluetooths with terminal 104.Set-top box 104 is sent out according to control terminal The focus sent changes instruction, obtains the position of object element, and when being triggered focus according to this object element set Display effect is shown, eliminates the focus display effect of other elements in the display page, realizes that the focus of the page changes operation;Eventually End 104 shows the change conditions of focus in the display page of display screen 106.Wherein, control terminal 102 can be, but not limited to be Various TV, that is, control terminals, smart phone, tablet computer and the portable wearable device for being equipped with remote control formula, terminal 104 It can be the set-top box of smart television, be also possible to other equipment that can realize set-top box functionality.Display screen 106 can be intelligence The equipment of the realization display function such as TV, computer.
In one embodiment, it as shown in Fig. 2, providing a kind of focus triggering method for showing the page, answers in this way For being illustrated for the server in Fig. 1, comprising the following steps:
S202 receives the focus that control terminal is sent and changes instruction, and focus changes instruction and carries focus shift amount.
Wherein, element is the operable content, such as picture box, key, input frame etc. shown on the page;Focus is then It is the element of current control terminal triggering.
It is to operate the control terminal of the terminals such as set-top box that focus, which changes instruction, sending to terminal, for changing display display The instruction of focus element on the page;For example, focus current on the display page is the element of upper left first shown on the page, Control terminal assigns focus to terminal and changes instruction, and focus is moved to second, upper left corner element from first, upper left corner element On.Focus shift amount is the variable quantity that focus changes the position for instructing corresponding focus to be triggered relative to current focus;It will Focus is moved in the example on the element of second, the upper left corner from first, upper left corner element, and focus shift amount is from first Element is moved to the displacement of second element;Focus shift amount can be according to element localization method in the different display pages come table Show, for example, if focus shift amount can be to be triggered when indicating the element in the display page with the mode of two-dimensional coordinate The difference of coordinate between focus and current focus;If carrying out separately encoded mode to each element in the display page, Focus shift amount is then the path that coding jumps.
Specifically, the focus that terminal receives that user's operation control terminal is assigned changes instruction, this focus changes should take in instruction With the focus shift amount between the element to be triggered for focus and current focus element, terminal is allowed to recognize target element Position of the element in the display page.
S204, identification show the current focus position in the page, are navigated to according to current focus position and focus shift amount Object element.
Current focus position is the position in current display page as the element of focus, in certain that one shows in the page When one element is triggered as focus display, focus display effect can be called in the display formula of this element, terminal is connecing After the focus variation instruction for receiving control terminal transmission, first the display effect of all elements in current display page is scanned, When having invoked focus display effect in the display formula for finding a certain element, that is, think that the position of this element is current focus position It sets;Terminal increases focus shift amount on current focus position, obtains the position of object element.
S206, identifies the element pattern class of object element, and according to the corresponding relationship of element pattern class and focus pattern class, Obtain the corresponding focus pattern class of object element.
Wherein, element pattern class is pattern class of the object element when not being triggered focus, can be according to the class of element Type is set, for example, picture dvielement can be set as to a dvielement pattern, input frame dvielement is set as a kind of member Element, each dvielement correspond to different element pattern classes, and element pattern class can be arranged with the code displaying in the display page, The modes such as element pattern expression are carried out to it when can also be inserted into corresponding element in showing the page.
Focus pattern class is pattern class when a certain element is triggered focus, can be according to specific focus display effect It sets, same class, i.e. element all in the page can be set by the different corresponding focus pattern classes of element pattern class When triggering is focus, of a sort display effect is all corresponded to, different focuses can also be arranged to different element pattern classes Pattern class, so that the element of different element pattern classes is shown as different focus display effects when being triggered focus.
Specifically, technical staff is when encoding the different elements on the page, to the element of different element pattern classes It distinguishes, and establishes the corresponding relationship of element pattern class Yu focus pattern class, so that terminal is recognizing an object element When will be triggered focus, corresponding focus pattern class is obtained according to the element pattern class of this element, reaches this element and is touched Focus display effect when hair is focus.
The object element is shown as the corresponding focus of the focus pattern class and shown by S208 in the display page Show effect, and eliminates the focus display effect of the corresponding currentElement in the current focus position.
Wherein, focus display effect is object element when triggering is focus, the actual displayed effect in the display page, For example, frame can usually be added on this element, or will when being triggered focus for some elements in the display page Pantogen frame is tuned into highlight effect etc..
CurrentElement is the member that focus effect is shown as before object element triggering is become focus by terminal, in the display page Element, the i.e. corresponding element in current focus position, it is focus in the control terminal control display page from current member that focus, which changes instruction, Element becomes the instruction of object element;In the example being moved to focus from first, upper left corner element on the element of second, the upper left corner In, first, upper left corner element is currentElement, and second, upper left corner element is object element.
Specifically, set-top box obtains this target element according to step S206 after navigating to object element according to step S204 Focus pattern class of the element when triggering is focus, is shown as corresponding focus for this object element further according to focus pattern class and shows Effect, and the focus display effect of currentElement in the display page is eliminated, so that only remaining this time triggering is coke in the display page The element of point is shown as focus display effect, completes this focus trigger action.
In the focus triggering method of the above-mentioned display page, focus variation is sent to terminal by control terminals such as remote controlers and is referred to It enables, after terminal, which receives focus, changes instruction, the object element in the display page is navigated to according to focus shift amount therein, Focus pattern class of this object element when triggering is focus is obtained according to the corresponding relationship of element pattern class and focus pattern class, And this element is shown as by focus display effect according to focus pattern class, the focus for eliminating currentElement in the display page shows effect Fruit completes the operation that this focal variation, new focus trigger;In the above method, pass through element pattern class and focus pattern class Corresponding relationship carry out display effect when control element is not triggered and is triggered, be defined as the element that is triggered in an element When, then go to call corresponding focus pattern class, finally realize the focus display effect of this element;For to the symbol in the display page The element that can be triggered focus can also be included in, and pass through centralized definition member in such a way that the page encodes by closing element The corresponding relationship of plain pattern class and focus pattern class can flexibly modify the variation that element is triggered display effect before and after focus.
In one embodiment, Fig. 3 is referred to, the element pattern class of the identification object element in above-mentioned steps S206, and According to the corresponding relationship of element pattern class and focus pattern class, the corresponding focus pattern class of object element is obtained, may include:
S302 obtains the first element style identifications in the display formula of object element.
Wherein, the display content in the display page of Most current terminal is that the mode encoded with the page indicates, mesh The display formula of mark element is that object element corresponding encoded block, coding mode in display can use JAVA or C language Speech etc. common coding method;The pattern class of element is indicated using corresponding element style identifications in coding, with aobvious Show the specific coding of representative element pattern class in the page to indicate, the coding mode of each element pattern class is not identical, for example, In In the coding of one display page, the corresponding element pattern class of label can be respectively indicated with label and image and picture is corresponding Element pattern class;First element style identifications are to show the mark for the element pattern that object element is represented in the page.
Specifically, element pattern class with its corresponding focus pattern class of the terminal in the identification page is compiled using the page Style identifications defined in code indicate, therefore identify that the element pattern class of object element is also pass through acquisition in step S206 The methods of first element style identifications of object element identifies.
For example, showing that two row elements in the page indicate when defining using IS are as follows:
First row element: var array=[" label-1 ", " label-2 ", " label-3 "];
Second row element: [" image-1 ", " image-2 ", " image-3 "];
And define Var row=0, col=0;Record the row and column of current focus, the i.e. element of the first row first row.Its In label and image indicate element pattern class.
S304 obtains the first element sample according to the mapping relations of stored element style identifications and focus style identifications Formula identifies corresponding first focus style identifications.
Specifically, the mapping relations of element pattern class focus pattern class corresponding with its also use and element pattern class pair The element style identifications and focus style identifications corresponding with focus pattern class answered are established, i.e., in the top layer coding of the page, The mapping relations of element style identifications and focus style identifications are defined, it, can be with so that terminal is after identifying the first style identifications The mapping relations of inquiry element style identifications and focus style identifications are gone according to the first style identifications to obtain the first style identifications Corresponding first focus mark.The mapping relations of element style identifications and focus style identifications can be such as: label class is corresponding Focus1, image class correspond to focus2 class, and focus1 and focus2 here is the example of focus style identifications.
First focus style identifications are added in the display formula of object element by S306.
It specifically, can be by this when terminal obtains the first focus style identifications when object element is triggered focus Style identifications are added in the corresponding display formula of the display effect of this element in the display interface, this display formula is to define this The coding module of the display effect of element;Such as the focal position in upper example is Varrow=0, col=0.It can build later The encoding block of a vertical focus display effect, such as: focus { XX }, the XX in bracket are the calling image of focus display effect Link, allow terminal to reach corresponding focus display effect according to the corresponding image of this Linked Invoke.
In addition, terminal eliminates the operation of the focus display effect of currently displayed history triggering element, it may include: to know It does not show whether comprising focus style identifications in the display formula of the element in the page in addition to object element, if comprising deleting Focus style identifications in the display formula of element in addition to object element.It completes to realize target element in step S306 in terminal After the focus display effect of element, the focus display effect that history is triggered to element is needed to eliminate, removing method is according to step The inverse operation that the focus display effect of new focus is triggered in S306, by the coke in the display formula of the element in addition to object element Point style identifications are deleted.
In above-described embodiment, will show in the page element pattern class of element and its be triggered the focus pattern after focus Class is defined to obtain element style identifications and focus style identifications according to the bottom of page coding, and the focus of terminal triggers Practical method is to define the process for carrying out coding traversal, modifying automatically in coding according to it;The member for defining the page is encoded from bottom Transformational relation between element and focus, facilitates the understanding of technical staff, and may be implemented flexibly to modify.
In one embodiment, the focus pattern class that is shown as the object element in above-mentioned steps S208 corresponds to Focus display effect, may include: to obtain the corresponding focus of the first focus style identifications to show example;It is shown according to focus real Example displaying target element in the display page;The rendering display page.
Wherein, focus shows that example is that element is triggered the display effect example after focus, can be the form of image, Or focus sound effect example can be increased, be highlighted example effects etc..Focus can be shown that example is stored in set-top box In local default file folder, when its corresponding element is triggered focus, default text is called in formula by showing at it The focus that stores shows example in part folder, connects the focus { XX } in example, " XX " be focus show example storage address or Person calls coding.
Specifically, after set-top box triggering object element is focus, corresponding focus display effect is aobvious according to focus Show example to show, set-top box calls corresponding focus to show example according to the first focus style identifications, and object element is pressed It shows that the display effect of example is shown according to focus, and refreshing rendering is carried out to the original display page, realize the page after focus changes Display effect.
In above-described embodiment, it is by set-top box sheet that set-top box, which realizes the focus display effect triggering of new focus element, The stored focus display example in ground can pass through come what is realized and change focus display example or focus display example and focus The corresponding relationship of style identifications realizes the focus display effect of the flexibly change page.
In one embodiment, the focus triggering method of the above-mentioned display page can also include: and receive server to send Map updating instruction;The mapping relations of more new element style identifications and focus style identifications are instructed according to map updating.
Wherein, map updating instruction be each set-top box of management server be sent to terminal, for updating terminal local The instruction of the mapping relations of stored element style identifications and focus style identifications, can be sent in a manner of internet message Terminal.
Specifically, after the map updating that terminal receives server transmission instructs, new element sample can be downloaded from server The mapping relations of formula mark and focus style identifications, and locally stored mapping relations are substituted with newly downloaded mapping relations, So that the focus triggering of terminal next time comes in fact according to the mapping relations of updated element style identifications and focus style identifications Existing corresponding focus display effect.
In above-described embodiment, server can be in such a way that the terminal managed to it sends map updating instruction, modification The focus of the element style identifications of terminal local and the mapping relations of focus style identifications, the control of unified management multiple terminals shows effect Fruit.
In one embodiment, the above-mentioned steps rendering display page may include: identification object element in the display page First area and deletion the corresponding element of focus style identifications display the page in second area;Render first area and Second area.
It specifically, can in order to avoid, all to full page rendering, generating unnecessary flow loss when the variation of every secondary focal point To carry out subregion to the display page, element position, the number of elements etc. that the mode of subregion can be shown in the page according to one are come It divides, first area is the region shown in the page comprising object element, and second area is to need to eliminate coke in the display page Region where the former focus of point display effect;When the terminal rendering display page, only to the first area and second that there is variation Region is rendered, without rendering unchanged region.
In above-described embodiment, by display paging partition, and only rendering focus change when display effect variation region, Reduce terminal and show the rendering work of the page, and flow loss caused by reducing in page rendering.
In one embodiment, show that the position of element on the page indicates that then focus shift amount includes according to two-dimensional array First displacement and second displacement amount.When carrying out element definition in the display page to terminal, by the way of two-dimensional array Element on the management display page, i.e., each element indicate that this position ID is one in the display page with unique position ID The coordinate that a two-dimensional array indicates.It is actually according to each member in the display page that control terminal sends focus to change instruction to terminal The two-dimensional position ID of element carries out the positioning of focus to be triggered.It, will after the focus that terminal receives control terminal transmission changes instruction Focus changes in command mappings to the coordinate of the two-dimensional array of the element position characterization of the display page, is obtained by two-dimensional array The position of element to be triggered.
Fig. 4 is referred to, the current focus position in the identification display page in above-mentioned steps S204, according to current focus position It sets and navigates to object element with focus shift amount, specifically includes the following steps:
S402, obtains the current focus position in the display page, and current focus position includes current first coordinate and current Second coordinate.
Specifically, representation of the current focus position in the display page is the coordinate representation of a two-dimensional array, In should include current first coordinate and current second coordinate.The focus shift amount that control terminal is sent also include object element relative to Second displacement amount of the first displacement and object element of current first coordinate relative to current second coordinate.For example, current burnt Point position can be expressed as previous=array[col] [row], col is current first coordinate, and row is current second seat Mark.
S404 increases by the first displacement on the basis of current first coordinate, obtains the first coordinate to be triggered.
Specifically, control terminal generally passes through directionkeys (left/right/up/down) and comes focus position in the display page of controlling terminal The variation set, terminal first identifies the corresponding direction of displacement of key that control terminal is pressed, according to direction of displacement on current focus position The variation of displacement is carried out, the focus that identification control terminal is sent first changes in instruction increased first on current first coordinate Displacement gets the first coordinate to be triggered of object element.
For example, the displacement of current first coordinate and current second coordinate direction can be respectively mapped to control terminal On four keys of left/right/up/down, such as the displacement of current first coordinate direction is mapped to the left-right key of control terminal, presses a left side Negative sense displacement is added in key on current first coordinate, presses right button and positive-displacement amount is added i.e. on current first coordinate; The displacement of current second coordinate direction is mapped to the upper and lower key of control terminal;Down key is pressed to be added on current second coordinate Negative sense displacement presses key and positive-displacement amount is added i.e. on current second coordinate.The key of its control terminal and focus shift Mapping relations between the variation direction of amount are not limited to above-mentioned example, can adjust according to the actual situation.
S406 increases second displacement amount on the basis of current second coordinate, obtains the second coordinate to be triggered.It identifies simultaneously Control terminal send focus change instruction on current second coordinate increased second displacement amount, get object element to Trigger the second coordinate.
S408, according to the first coordinate to be triggered and the second coordinate setting to be triggered to object element.
Terminal is according to the first coordinate to be triggered of the object element obtained in above-mentioned steps S404 and step S406 and wait touch It sends out the second coordinate and navigates to unique object element in the display page.
Such as, previous=array[col] [row] expression current focus position;Current=array[col+ Ystep] [row+xstep] current be object element position, then ystep and xstep be according to remote control machine directionkeys working as The first displacement and second displacement amount on front focus position.
In above-described embodiment, by common power profile in the key and the actual displayed page of control terminal, use The mode of two-dimensional array coordinate indicates the element in the display page, and controls current focus position coordinates direction position by control terminal The scheme that focus changes is realized in the variation of shifting amount.
It should be understood that although each step in the flow chart of Fig. 2-4 is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-4 Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately It executes.
In one embodiment, as shown in figure 5, providing a kind of focus trigger device for showing the page, comprising: focus becomes Dynamic command reception module 100, location identification module 200, Show Styles obtain module 300 and display update module 400, in which:
Focus changes command reception module 100, and the focus for receiving control terminal transmission changes instruction, and focus changes instruction Carry focus shift amount.
Location identification module 200 shows the current focus position in the page, according to current focus position and coke for identification Point displacement navigates to object element.
Show Styles obtains module 300, for identification the element pattern class of object element, and according to element pattern class and coke The corresponding relationship of point pattern class obtains the corresponding focus pattern class of object element.
Update module 400 is shown, in the display page, the object element to be shown as the focus pattern class pair The focus display effect answered, and eliminate the focus display effect of the corresponding currentElement in the current focus position
In one embodiment, above-mentioned Show Styles obtains module 300, may include:
Current pattern recognition unit, the first element style identifications in display formula for obtaining object element.
Focus pattern acquiring unit to be shown, for reflecting according to stored element style identifications and focus style identifications Relationship is penetrated, the corresponding first focus style identifications of the first element style identifications are obtained.
Focus pattern adding unit, for the first focus style identifications to be added in the display formula of object element.
In one embodiment, the display update module 400 in the focus trigger device of the above-mentioned display page, can wrap It includes:
It shows case-based system unit, shows example for obtaining the corresponding focus of the first focus style identifications.
Example display unit, for showing example displaying target element according to focus.
Rendering unit, for rendering the display page.
In one embodiment, the focus trigger device of the above-mentioned display page can also include:
Command reception module is updated, for receiving map updating instruction.
Map updating module, for updating stored element style identifications and focus pattern mark according to map updating instruction The mapping relations of knowledge.
In one embodiment, the rendering unit in the focus trigger device of the above-mentioned display page may include:
Region recognition subelement, object element is showing the first area in the page and the focus pattern of deletion for identification Identify second area of the corresponding element in the display page.
Subregion renders subelement, for rendering first area and second area.
In one embodiment, the location identification module 200 in the focus trigger device of the above-mentioned display page, can wrap It includes:
Current focus position units, for obtaining the current focus position in the display page, current focus position includes working as Preceding first coordinate and current second coordinate.
First displacement unit obtains the first coordinate to be triggered for increasing by the first displacement on the basis of the first coordinate.
Second displacement unit obtains the second coordinate to be triggered for increasing second displacement amount on the basis of the second coordinate.
Focus positioning unit to be triggered, for according to the first coordinate to be triggered and the second coordinate setting to be triggered to target element Element.
The specific of focus trigger device about the display page limits the focus that may refer to above for the display page The restriction of triggering method, details are not described herein.Modules in the focus trigger device of the above-mentioned display page can whole or portion Divide and is realized by software, hardware and combinations thereof.Above-mentioned each module can be embedded in the form of hardware or independently of computer equipment In processor in, can also be stored in a software form in the memory in computer equipment, in order to processor calling hold The corresponding operation of the above modules of row.
In one embodiment, a kind of computer equipment is provided, which can be terminal, internal structure Figure can be as shown in Figure 6.The computer equipment includes processor, the memory, network interface, display connected by system bus Screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment is deposited Reservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system and computer journey Sequence.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The network interface of machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor with Realize a kind of focus triggering method for showing the page.The display screen of the computer equipment can be liquid crystal display or electronic ink Water display screen, the input unit of the computer equipment can be the touch layer covered on display screen, be also possible to computer equipment Key, trace ball or the Trackpad being arranged on shell can also be external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Fig. 6, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, which is stored with Computer program, which performs the steps of when executing computer program receives the focus variation instruction that control terminal is sent, Focus changes instruction and carries focus shift amount;Current focus position in the identification display page, according to current focus position and Focus shift amount navigates to object element;Identify the element pattern class of object element, and according to element pattern class and focus pattern The corresponding relationship of class obtains the corresponding focus pattern class of object element;In the display page, the object element is shown as institute The corresponding focus display effect of focus pattern class is stated, and the focus for eliminating the corresponding currentElement in the current focus position is shown Effect.
In one embodiment, processor executes the element pattern class for the identification object element realized when computer program, And according to the corresponding relationship of element pattern class and focus pattern class, the corresponding focus pattern class of object element is obtained, comprising: obtain The first element style identifications in the display formula of object element;According to stored element style identifications and focus style identifications Mapping relations, obtain the corresponding first focus style identifications of the first element style identifications;First focus style identifications are added Into the display formula of object element.
In one embodiment, that realizes when processor execution computer program is shown as the coke for the object element The corresponding focus display effect of point pattern class, comprising: obtain the corresponding focus of the first focus style identifications and show example;According to coke Point display example displaying target element in the display page;The rendering display page.
In one embodiment, it is also performed the steps of when processor executes computer program and receives what server was sent Map updating instruction;The mapping relations of more new element style identifications and focus style identifications are instructed according to map updating.
In one embodiment, processor executes the rendering realized when computer program and shows the page, comprising: identification target The corresponding element of focus style identifications of first area and deletion of the element in the display page is showing the secondth area in the page Domain;Render first area and second area.
In one embodiment, show that the position of element on the page indicates that then focus shift amount includes according to two-dimensional array First displacement and second displacement amount;Processor executes the current focus position in the identification display page realized when computer program It sets, object element is navigated to according to current focus position and focus shift amount, comprising: obtain the current focus position in the display page It sets, current focus position includes current first coordinate and current second coordinate;Increase by first on the basis of current first coordinate Displacement obtains the first coordinate to be triggered;Increase second displacement amount on the basis of current second coordinate, obtains to be triggered second Coordinate;According to the first coordinate to be triggered and the second coordinate setting to be triggered to object element.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of when being executed by processor receives the focus variation instruction that control terminal is sent, and focus changes instruction and takes With focus shift amount;Current focus position in the identification display page, positions according to current focus position and focus shift amount To object element;It identifies the element pattern class of object element, and according to the corresponding relationship of element pattern class and focus pattern class, obtains Take the corresponding focus pattern class of object element;In the display page, the object element is shown as the focus pattern class pair The focus display effect answered, and eliminate the focus display effect of the corresponding currentElement in the current focus position.
In one embodiment, the element pattern for the identification object element realized when computer program is executed by processor Class, and according to the corresponding relationship of element pattern class and focus pattern class, obtain the corresponding focus pattern class of object element, comprising: Obtain the first element style identifications in the display formula of object element;According to stored element style identifications and focus pattern The mapping relations of mark obtain the corresponding first focus style identifications of the first element style identifications;By the first focus style identifications It is added in the display formula of object element.
In one embodiment, realize when computer program is executed by processor be shown as the object element is described The corresponding focus display effect of focus pattern class, comprising: obtain the corresponding focus of the first focus style identifications and show example;According to Focus shows example displaying target element in the display page;The rendering display page.
In one embodiment, it is also performed the steps of when computer program is executed by processor and receives server transmission Map updating instruction;The mapping relations of more new element style identifications and focus style identifications are instructed according to map updating.
In one embodiment, the rendering realized when computer program is executed by processor shows the page, comprising: identification mesh The corresponding element of focus style identifications for marking first area and deletion of the element in the display page is showing second in the page Region;Render first area and second area.
In one embodiment, show that the position of element on the page indicates that then focus shift amount includes according to two-dimensional array First displacement and second displacement amount;The current focus in the identification display page realized when computer program is executed by processor Position navigates to object element according to current focus position and focus shift amount, comprising: obtains the current focus in the display page Position, current focus position include current first coordinate and current second coordinate;Increase by the basis of current first coordinate One displacement obtains the first coordinate to be triggered;Increase second displacement amount on the basis of current second coordinate, obtains to be triggered the Two coordinates;According to the first coordinate to be triggered and the second coordinate setting to be triggered to object element.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of focus triggering method for showing the page, which comprises
It receives the focus that control terminal is sent and changes instruction, the focus changes instruction and carries focus shift amount;
Current focus position in the identification display page, navigates to mesh according to the current focus position and the focus shift amount Mark element;
It identifies the element pattern class of the object element, and according to the corresponding relationship of element pattern class and focus pattern class, obtains The corresponding focus pattern class of the object element;
In the display page, the object element is shown as the corresponding focus display effect of the focus pattern class, and Eliminate the focus display effect of the corresponding currentElement in the current focus position.
2. the method according to claim 1, wherein the element pattern class of the identification object element, and According to the corresponding relationship of element pattern class and focus pattern class, the corresponding focus pattern class of the object element is obtained, comprising:
Obtain the first element style identifications in the display formula of the object element;
According to the mapping relations of stored element style identifications and focus style identifications, the first element style identifications are obtained Corresponding first focus style identifications;
The first focus style identifications are added in the display formula of the object element.
3. according to the method described in claim 2, it is characterized in that, described be shown as the focus pattern for the object element The corresponding focus display effect of class, comprising:
It obtains the corresponding focus of the first focus style identifications and shows example;
Show that example shows the object element in the display page according to the focus;
Render the display page.
4. according to the method described in claim 2, it is characterized in that, the method also includes:
Receive the map updating instruction that server is sent;
The mapping relations of the element style identifications and focus style identifications are updated according to map updating instruction.
5. the method according to claim 1, wherein the rendering display page, comprising:
Identify the corresponding element of focus style identifications of first area and deletion of the object element in the display page Second area in the display page;
Render the first area and the second area.
6. the method according to claim 1, wherein the position of element is according to two-dimensional array on the display page It indicates, the focus shift amount includes the first displacement and second displacement amount;Current focus position in the identification display page It sets, object element is navigated to according to the current focus position and the focus shift amount, comprising:
The current focus position in the display page is obtained, the current focus position includes that current first coordinate and current second sit Mark;
Increase by first displacement on the basis of current first coordinate, obtains the first coordinate to be triggered;
Increase the second displacement amount on the basis of current second coordinate, obtains the second coordinate to be triggered;
According to first coordinate to be triggered and second coordinate setting to be triggered to object element.
7. a kind of focus trigger device for showing the page, which is characterized in that described device includes:
Focus changes command reception module, and the focus for receiving control terminal transmission changes instruction, and the focus changes instruction and takes With focus shift amount;
Location identification module shows the current focus position in the page for identification, according to the current focus position and described Focus shift amount navigates to object element;
Show Styles obtains module, for identification the element pattern class of the object element, and according to element pattern class and focus The corresponding relationship of pattern class obtains the corresponding focus pattern class of the object element;
Update module is shown, for it is corresponding that the object element to be shown as the focus pattern class in the display page Focus display effect, and eliminate the focus display effect of the corresponding currentElement in the current focus position.
8. the apparatus according to claim 1, which is characterized in that the Show Styles obtains module, comprising:
Current pattern recognition unit, the first element style identifications in display formula for obtaining the object element;
Focus pattern acquiring unit to be shown, for being closed according to the mapping of stored element style identifications and focus style identifications System obtains the corresponding first focus style identifications of the first element style identifications;
Focus pattern adding unit, for the first focus style identifications to be added to the display formula of the object element In.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 6 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 6 is realized when being executed by processor.
CN201910603332.1A 2019-07-05 2019-07-05 Show focus triggering method, device, computer equipment and the storage medium of the page Pending CN110475138A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910603332.1A CN110475138A (en) 2019-07-05 2019-07-05 Show focus triggering method, device, computer equipment and the storage medium of the page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910603332.1A CN110475138A (en) 2019-07-05 2019-07-05 Show focus triggering method, device, computer equipment and the storage medium of the page

Publications (1)

Publication Number Publication Date
CN110475138A true CN110475138A (en) 2019-11-19

Family

ID=68506829

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910603332.1A Pending CN110475138A (en) 2019-07-05 2019-07-05 Show focus triggering method, device, computer equipment and the storage medium of the page

Country Status (1)

Country Link
CN (1) CN110475138A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111968126A (en) * 2020-06-30 2020-11-20 上海艾策通讯科技股份有限公司 Page focus identification method and device, computer equipment and storage medium
CN113434214A (en) * 2021-06-28 2021-09-24 拉扎斯网络科技(上海)有限公司 Method and device for displaying components in page

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040261103A1 (en) * 2003-06-20 2004-12-23 Canon Kabushiki Kaisha Image display method and program
CN103297854A (en) * 2012-08-24 2013-09-11 乐视致新电子科技(天津)有限公司 Method for controlling focuses of web pages
CN105744337A (en) * 2014-12-24 2016-07-06 三星电子株式会社 Display apparatus and a display method
CN105791945A (en) * 2016-03-14 2016-07-20 深圳市茁壮网络股份有限公司 Focal point displaying method and apparatus
CN106155644A (en) * 2015-03-27 2016-11-23 中国科学院声学研究所 It is applicable to the webpage focal point control implementation method of intelligent television browser
CN107391698A (en) * 2017-07-27 2017-11-24 杭州登虹科技有限公司 A kind of method, apparatus, medium and the computing device of Dynamic Announce webpage
CN109309874A (en) * 2018-08-31 2019-02-05 青岛海信电器股份有限公司 A kind of focus update method and device
CN109324734A (en) * 2018-08-21 2019-02-12 北京旷视科技有限公司 Page display method, device and electronic equipment
CN109660844A (en) * 2017-10-12 2019-04-19 腾讯科技(深圳)有限公司 Method of controlling operation thereof, device, television set, set-top box and the storage medium of the page

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040261103A1 (en) * 2003-06-20 2004-12-23 Canon Kabushiki Kaisha Image display method and program
CN103297854A (en) * 2012-08-24 2013-09-11 乐视致新电子科技(天津)有限公司 Method for controlling focuses of web pages
CN105744337A (en) * 2014-12-24 2016-07-06 三星电子株式会社 Display apparatus and a display method
CN106155644A (en) * 2015-03-27 2016-11-23 中国科学院声学研究所 It is applicable to the webpage focal point control implementation method of intelligent television browser
CN105791945A (en) * 2016-03-14 2016-07-20 深圳市茁壮网络股份有限公司 Focal point displaying method and apparatus
CN107391698A (en) * 2017-07-27 2017-11-24 杭州登虹科技有限公司 A kind of method, apparatus, medium and the computing device of Dynamic Announce webpage
CN109660844A (en) * 2017-10-12 2019-04-19 腾讯科技(深圳)有限公司 Method of controlling operation thereof, device, television set, set-top box and the storage medium of the page
CN109324734A (en) * 2018-08-21 2019-02-12 北京旷视科技有限公司 Page display method, device and electronic equipment
CN109309874A (en) * 2018-08-31 2019-02-05 青岛海信电器股份有限公司 A kind of focus update method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111968126A (en) * 2020-06-30 2020-11-20 上海艾策通讯科技股份有限公司 Page focus identification method and device, computer equipment and storage medium
CN111968126B (en) * 2020-06-30 2023-10-17 上海艾策通讯科技股份有限公司 Page focus recognition method, device, computer equipment and storage medium
CN113434214A (en) * 2021-06-28 2021-09-24 拉扎斯网络科技(上海)有限公司 Method and device for displaying components in page

Similar Documents

Publication Publication Date Title
EP3220249A1 (en) Method, device and terminal for implementing regional screen capture
CN109144656A (en) Method, apparatus, computer equipment and the storage medium of multielement layout
CN108376094B (en) Notification message display method and device, computer equipment and storage medium
CN109343851A (en) Page generation method, device, computer equipment and storage medium
CN106155454A (en) A kind of interface display method, device and electronic equipment
CN110456956A (en) Screenshot method, device, computer equipment and storage medium
CN110475138A (en) Show focus triggering method, device, computer equipment and the storage medium of the page
KR101975049B1 (en) Method and apparatus for setting background of ui control, and terminal
EP2013792A1 (en) Mobile terminal capable of modifying a flash image and method of modifying a flash image therewith
CN108595919A (en) Software activation method, device, system and storage medium
CN110489312A (en) Data correlation method and device for control trigger data acquisition
CN109525896A (en) Comment on answering method, device, equipment and storage medium
CN109375972B (en) Method, apparatus, computer device and storage medium for multi-element layout
CN109324724A (en) Wiping method, device, equipment and the storage medium of electronic whiteboard
CN109168071A (en) Image processing method and device
CN105446676B (en) Carry out the method and device that large-size screen monitors are shown
CN106528136A (en) Widget-based display method and apparatus, and terminal device
CN108829486A (en) A kind of background setting method, device, equipment and storage medium
CN103561347A (en) Shortcut menu generation method and device based on browser
CN114895954A (en) Code modification method, system, equipment and storage medium of remote control system
CN109690451A (en) Display device and its control method
CN108681478A (en) Communication means, device and the computer equipment on intelligent interaction flat instrument column
CN111880421A (en) Linkage control method and system of household electrical appliance, storage medium and electronic equipment
CN108320315A (en) View switching method, device, computer equipment and storage medium
CN110263932A (en) Multi-agent simulation system graphical combination construction method and device

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
TA01 Transfer of patent application right

Effective date of registration: 20210129

Address after: 518066 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant after: Shenzhen saiante Technology Service Co.,Ltd.

Address before: 1-34 / F, Qianhai free trade building, 3048 Xinghai Avenue, Mawan, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong 518000

Applicant before: Ping An International Smart City Technology Co.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20191119

RJ01 Rejection of invention patent application after publication