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 pageDisplay 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 amountTo 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 classFruit, 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 classWith 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 obtainedIdentify 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 showShow 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 correspondingSecond 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 focusDisplacement includes the first displacement and second displacement amount;Current focus position in the identification display page, works as according to describedFront 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 theTwo 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 toOrder carries focus shift amount;
Location identification module shows the current focus position in the page for identification, according to the current focus position andThe 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 andThe 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 classCorresponding 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 identificationsRelationship 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 elementIn formula.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processingThe 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 processorThe 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 toTerminal sends the focus variation instruction for carrying focus shift amount, after terminal, which receives focus, changes instruction, according to thereinFocus 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 classFocus pattern class of this object element when triggering is focus, and this element is shown as by focus display effect according to focus pattern classFruit, 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 notDisplay effect when triggering and being triggered when an element is defined as being triggered element, then goes to call corresponding focus sampleFormula 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 pageThe mode of code, is included in the element that can be triggered focus, and passes through centralized definition element pattern class and focus pattern classCorresponding 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 understoodThe application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, notFor 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.ItsIn, 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 terminalThe focus sent changes instruction, obtains the position of object element, and when being triggered focus according to this object element setDisplay effect is shown, eliminates the focus display effect of other elements in the display page, realizes that the focus of the page changes operation;EventuallyEnd 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 beVarious TV, that is, control terminals, smart phone, tablet computer and the portable wearable device for being equipped with remote control formula, terminal 104It 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 intelligenceThe 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 wayFor 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 thenIt 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 displayThe 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 elementOn.Focus shift amount is the variable quantity that focus changes the position for instructing corresponding focus to be triggered relative to current focus;It willFocus 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 firstElement is moved to the displacement of second element;Focus shift amount can be according to element localization method in the different display pages come tableShow, 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 coordinateThe 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 instructionWith the focus shift amount between the element to be triggered for focus and current focus element, terminal is allowed to recognize target elementPosition 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 amountObject element.
Current focus position is the position in current display page as the element of focus, in certain that one shows in the pageWhen one element is triggered as focus display, focus display effect can be called in the display formula of this element, terminal is connecingAfter 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 positionIt 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 elementType is set, for example, picture dvielement can be set as to a dvielement pattern, input frame dvielement is set as a kind of memberElement, 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 effectIt sets, same class, i.e. element all in the page can be set by the different corresponding focus pattern classes of element pattern classWhen triggering is focus, of a sort display effect is all corresponded to, different focuses can also be arranged to different element pattern classesPattern 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 classesIt distinguishes, and establishes the corresponding relationship of element pattern class Yu focus pattern class, so that terminal is recognizing an object elementWhen will be triggered focus, corresponding focus pattern class is obtained according to the element pattern class of this element, reaches this element and is touchedFocus 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 pageShow 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 pagePantogen 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 pageElement, 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 cornerIn, 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 S204Focus 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 showsEffect, 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 pageThe 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 toIt 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 effectFruit completes the operation that this focal variation, new focus trigger;In the above method, pass through element pattern class and focus pattern classCorresponding relationship carry out display effect when control element is not triggered and is triggered, be defined as the element that is triggered in an elementWhen, then go to call corresponding focus pattern class, finally realize the focus display effect of this element;For to the symbol in the display pageThe 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 elementThe 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, andAccording 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, meshThe display formula of mark element is that object element corresponding encoded block, coding mode in display can use JAVA or C languageSpeech etc. common coding method;The pattern class of element is indicated using corresponding element style identifications in coding, with aobviousShow 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, InIn the coding of one display page, the corresponding element pattern class of label can be respectively indicated with label and image and picture is correspondingElement 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 pageStyle identifications defined in code indicate, therefore identify that the element pattern class of object element is also pass through acquisition in step S206The 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.ItsIn 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 identificationsFormula 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 pairThe 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 identificationsThe mapping relations of inquiry element style identifications and focus style identifications are gone according to the first style identifications to obtain the first style identificationsCorresponding first focus mark.The mapping relations of element style identifications and focus style identifications can be such as: label class is correspondingFocus1, 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 focusStyle 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 thisThe coding module of the display effect of element;Such as the focal position in upper example is Varrow=0, col=0.It can build laterThe encoding block of a vertical focus display effect, such as: focus { XX }, the XX in bracket are the calling image of focus display effectLink, 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 knowIt 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 deletingFocus style identifications in the display formula of element in addition to object element.It completes to realize target element in step S306 in terminalAfter 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 stepThe 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 elementPoint 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 focusClass is defined to obtain element style identifications and focus style identifications according to the bottom of page coding, and the focus of terminal triggersPractical 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 bottomTransformational 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 toFocus display effect, may include: to obtain the corresponding focus of the first focus style identifications to show example;It is shown according to focus realExample 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 boxIn local default file folder, when its corresponding element is triggered focus, default text is called in formula by showing at itThe focus that stores shows example in part folder, connects the focus { XX } in example, " XX " be focus show example storage address orPerson calls coding.
Specifically, after set-top box triggering object element is focus, corresponding focus display effect is aobvious according to focusShow example to show, set-top box calls corresponding focus to show example according to the first focus style identifications, and object element is pressedIt 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 changesDisplay 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 focusThe 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 sendMap 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 localThe instruction of the mapping relations of stored element style identifications and focus style identifications, can be sent in a manner of internet messageTerminal.
Specifically, after the map updating that terminal receives server transmission instructs, new element sample can be downloaded from serverThe 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 identificationsExisting 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, modificationThe 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 effectFruit.
In one embodiment, the above-mentioned steps rendering display page may include: identification object element in the display pageFirst area and deletion the corresponding element of focus style identifications display the page in second area;Render first area andSecond area.
It specifically, can in order to avoid, all to full page rendering, generating unnecessary flow loss when the variation of every secondary focal pointTo 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 comeIt 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 pageRegion where the former focus of point display effect;When the terminal rendering display page, only to the first area and second that there is variationRegion 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 arrayFirst displacement and second displacement amount.When carrying out element definition in the display page to terminal, by the way of two-dimensional arrayElement on the management display page, i.e., each element indicate that this position ID is one in the display page with unique position IDThe 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 terminalThe 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 instructionFocus 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 arrayThe 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 positionIt 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 currentSecond 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 toSecond displacement amount of the first displacement and object element of current first coordinate relative to current second coordinate.For example, current burntPoint position can be expressed as previous=array[col] [row], col is current first coordinate, and row is current second seatMark.
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 terminalThe 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 positionThe variation of displacement is carried out, the focus that identification control terminal is sent first changes in instruction increased first on current first coordinateDisplacement 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 terminalOn 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 sideNegative 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 coordinateNegative sense displacement presses key and positive-displacement amount is added i.e. on current second coordinate.The key of its control terminal and focus shiftMapping 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 simultaneouslyControl terminal send focus change instruction on current second coordinate increased second displacement amount, get object element toTrigger 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 touchIt 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 asThe 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, useThe mode of two-dimensional array coordinate indicates the element in the display page, and controls current focus position coordinates direction position by control terminalThe 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 stepsExecution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-4Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-stepsCompletion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successivelyIt carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternatelyIt executes.
In one embodiment, as shown in figure 5, providing a kind of focus trigger device for showing the page, comprising: focus becomesDynamic 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 instructionCarry focus shift amount.
Location identification module 200 shows the current focus position in the page, according to current focus position and coke for identificationPoint 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 cokeThe 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 pairThe 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 identificationsRelationship 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 wrapIt 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 instructionThe 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 identificationIdentify 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 wrapIt includes:
Current focus position units, for obtaining the current focus position in the display page, current focus position includes working asPreceding 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 elementElement.
The specific of focus trigger device about the display page limits the focus that may refer to above for the display pageThe restriction of triggering method, details are not described herein.Modules in the focus trigger device of the above-mentioned display page can whole or portionDivide 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 equipmentIn processor in, can also be stored in a software form in the memory in computer equipment, in order to processor calling holdThe corresponding operation of the above modules of row.
In one embodiment, a kind of computer equipment is provided, which can be terminal, internal structureFigure can be as shown in Figure 6.The computer equipment includes processor, the memory, network interface, display connected by system busScreen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment is depositedReservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system and computer journeySequence.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculatingThe network interface of machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor withRealize a kind of focus triggering method for showing the page.The display screen of the computer equipment can be liquid crystal display or electronic inkWater display screen, the input unit of the computer equipment can be the touch layer covered on display screen, be also possible to computer equipmentKey, 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 tiedThe block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipmentIt 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 withComputer 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 andFocus shift amount navigates to object element;Identify the element pattern class of object element, and according to element pattern class and focus patternThe corresponding relationship of class obtains the corresponding focus pattern class of object element;In the display page, the object element is shown as instituteThe corresponding focus display effect of focus pattern class is stated, and the focus for eliminating the corresponding currentElement in the current focus position is shownEffect.
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: obtainThe first element style identifications in the display formula of object element;According to stored element style identifications and focus style identificationsMapping relations, obtain the corresponding first focus style identifications of the first element style identifications;First focus style identifications are addedInto the display formula of object element.
In one embodiment, that realizes when processor execution computer program is shown as the coke for the object elementThe corresponding focus display effect of point pattern class, comprising: obtain the corresponding focus of the first focus style identifications and show example;According to cokePoint 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 sentMap 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 targetThe 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 pageDomain;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 arrayFirst displacement and second displacement amount;Processor executes the current focus position in the identification display page realized when computer programIt sets, object element is navigated to according to current focus position and focus shift amount, comprising: obtain the current focus position in the display pageIt sets, current focus position includes current first coordinate and current second coordinate;Increase by first on the basis of current first coordinateDisplacement obtains the first coordinate to be triggered;Increase second displacement amount on the basis of current second coordinate, obtains to be triggered secondCoordinate;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 calculatedMachine 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 takesWith focus shift amount;Current focus position in the identification display page, positions according to current focus position and focus shift amountTo 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, obtainsTake the corresponding focus pattern class of object element;In the display page, the object element is shown as the focus pattern class pairThe 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 processorClass, 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 patternThe mapping relations of mark obtain the corresponding first focus style identifications of the first element style identifications;By the first focus style identificationsIt 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 describedThe corresponding focus display effect of focus pattern class, comprising: obtain the corresponding focus of the first focus style identifications and show example;According toFocus 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 transmissionMap 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 meshThe corresponding element of focus style identifications for marking first area and deletion of the element in the display page is showing second in the pageRegion;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 arrayFirst displacement and second displacement amount;The current focus in the identification display page realized when computer program is executed by processorPosition navigates to object element according to current focus position and focus shift amount, comprising: obtains the current focus in the display pagePosition, current focus position include current first coordinate and current second coordinate;Increase by the basis of current first coordinateOne displacement obtains the first coordinate to be triggered;Increase second displacement amount on the basis of current second coordinate, obtains to be triggered theTwo 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 withRelevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computerIn 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 includeRandom 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), enhancingType 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 embodimentIn each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lanceShield 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 simultaneouslyIt 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 artIt says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the applicationRange.Therefore, the scope of protection shall be subject to the appended claims for the application patent.