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.
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.