Method of operating and device that a kind of webpage is controlled
Technical field
The present invention relates to computer technology, particularly a kind of method of operating and device of webpage control.
Background technology
, along with the development of computer technology, various types of input modes have appearred, such as handwriting input mode or keyboard entry method etc.The information that adopts various types of input modes to input in computing machine has two kinds of purposes, and a kind of is as text information storage, and another kind is to use as steering order.Adopt certain mode to input such as page turning, advance, retreat and open the instructions such as computer website, just can control the operation in computing machine.
In polytype input mode, a kind of handwriting input mode that is is arranged, this handwriting input mode can directly be completed on the touch-screen of computing machine or mobile terminal, also can adopt the external writing pad of computing machine or mobile terminal to complete., along with the widespread use of touch-screen, by touch-screen, be entered as for popular trend.
When the webpage that adopts the handwriting input mode to browse computing machine or mobile terminal carries out control operation, such as control operation is: page turning, advance, retreat or while opening webpage etc., just need to be by the handwriting pad that is connected with computing machine or mobile terminal, the perhaps touch screen hand-writing of computing machine or mobile terminal input instruction, after computing machine or mobile terminal receive the input instruction, just according to control operation mode corresponding to instruction, webpage is carried out control operation.
Be provided with browser in computing machine or mobile terminal, it has the operation web page function and adopts the handwriting input mode to operate the mode of operation corresponding relation of this webpage function, according to the mode of operation of input mode input at first, and just can the operation web page function.Such as, the operation web page function is for to carry out " advancing ", " retreating " or " page turning " function to webpage, and the mode of operation that adopts the handwriting input mode to operate this webpage function is respectively and clicks sign " advancing " button, clicks sign " retreating " button or clicks sign " page turning " button.When the user adopted the handwriting input mode to click different buttons, browser just can be completed corresponding web page operation.The operation web page function that browser has is that itself arranges, it doesn't matter with shown webpage, that is to say, not simultaneously, it also has identical operation web page function and adopts the handwriting input mode to operate the mode of operation of this webpage function the shown webpage of browser.
Along with the development of internet, web page contents is tending towards diversification,, for different webpages, also needs different modes of operation, at this moment, just need to different web page operation functions be set for different web pages.For example,, for the microblogging webpage, for the operating function of this webpage, " relay " operating function, " sending out microblogging " operating function and " sending out comment " operating function etc. just need to be arranged.In webpage, the web page operation function is called element, the mode of operation that operates this webpage function is event action mode corresponding to this element of operation.The process that different web page operation functions is set for different web pages is:
At first, element is set and operates event action mode corresponding to this element in page script, such as, the corresponding event action mode of " relay " element in webpage and operation " relay " element is for triggering the button of sign " relay ";
Then, the browser resolves page script that computing machine or mobile terminal arrange, pass through displaying web page through browser, such as, web displaying has " relay " button, and prompting is after the user adopts the handwriting input mode to click, namely according to event action mode corresponding to this element to event action corresponding to this element after, just can complete event corresponding to this element, namely relay;
Finally, the user adopts the event action mode that the handwriting input mode just can be corresponding according to each element of the shown webpage of browser, and the event corresponding to element operates, and completes event corresponding to element.
Can find out from such scheme, for different web pages, the different web pages operating function is set and has following problem, page script self setting because different web pages arranges the different web pages operating function, browser can only be resolved different web pages, the mode of operation of the different web pages operating function of different web pages is prompted to the user to be used and can't change, make the user to arrange according to the mode of operation of self-demand to the different web pages operating function of different web pages, reduced user experience.
Summary of the invention
In view of this, the invention provides the method for operating that a kind of webpage is controlled, the method can arrange the mode of operation of the different web pages operating function of different web pages, improves user experience.
The operating means that the present invention also provides a kind of webpage to control, this device can arrange the mode of operation of the different web pages operating function of different web pages, improves user experience.
For achieving the above object, technical scheme of the present invention is achieved in that
The method of operating that a kind of webpage is controlled, arrange hand-written control function, and in this hand-written control function, event action mode that the element in operation web page is corresponding and set hand-written control operation mode are carried out correspondingly, and the method also comprises:
Browser resolves and display web page, load this hand-written control function, after the hand-written control operation mode that reception employing handwriting input mode is inputted, determine event action mode corresponding to element in corresponding shown webpage, the event corresponding to element operates, and completes event corresponding to element.
The method also arranges white list, has stored the web page address information that will use hand-written control function in this white list,
Before the hand-written control function of described loading, the method also comprises:
Determine that the address information of the shown webpage of browser is in set white list.
If determine that the address information of the shown webpage of browser is not in set white list, receive the event action mode that adopts the handwriting input mode to input according to event action mode corresponding to each element of the shown webpage of browser, the event corresponding to element operates, and completes event corresponding to element.
The described event action mode that element in operation web page is corresponding is carried out three elementary field settings of corresponding employing with set hand-written control operation mode, three elementary fields are<component identification, set hand-written control operation mode, the event action mode that element is corresponding 〉.
The operating means that a kind of webpage is controlled, this device comprises: module and judge module are set, wherein,
Module is set, is used for hand-written control function is set, event action mode in this hand-written control function, that the element in operation web page is corresponding is carried out corresponding with set hand-written control operation mode;
The browser control module, after being used for the browser resolves and display web page that arrange, load this hand-written control function, after receiving the user and adopting the hand-written control operation mode that the handwriting input mode inputs, determine event action mode corresponding to element in corresponding shown webpage, the event corresponding to element operates, and completes event corresponding to element.
This device also comprises: judge module, whether be used for to determine the address information of the shown webpage of browser at set white list, and with result feedback to the browser control module;
Module is set, and also the user arranges white list, has stored the web page address information that will use hand-written control function in this white list;
Described browser control module, also be used for receiving the result of judge module feedback: when result is at white list, load this hand-written control function, after the hand-written control operation mode that reception employing handwriting input mode is inputted, determine event action mode corresponding to element in corresponding shown webpage, the event corresponding to element operates, and completes event corresponding to element.
Described browser control module, also be used for when result for not at white list the time, receive the event action mode that adopts the handwriting input mode to input according to event action mode corresponding to each element of the shown webpage of browser, the event corresponding to element operates, and completes event corresponding to element.
As seen from the above technical solutions, the present invention arranges hand-written control function at computing machine or mobile terminal, event action mode in this hand-written control function, that the element in operation web page is corresponding is carried out corresponding with set hand-written control operation mode, when displaying web page through browser, load this hand-written control function, after the hand-written control operation mode that reception employing handwriting input mode is inputted, determine event action mode corresponding to element in corresponding shown webpage, the event corresponding to element operates, and completes event corresponding to element.Like this, make the user to arrange according to the mode of operation of self-demand to the different web pages operating function of different web pages, improve user experience.
Description of drawings
The flow chart that Fig. 1 controls for the webpage that the embodiment of the present invention provides;
The operating means structural representation that Fig. 2 controls for the webpage that the embodiment of the present invention provides;
Fig. 3 shows schematic diagram for the hand-written control operation mode in the microblogging page that the embodiment of the present invention provides.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with the accompanying drawings and the specific embodiments.
in order to make the user to arrange according to the mode of operation of self-demand to the different web pages operating function of different web pages, improve user experience, the present invention arranges hand-written control function at computing machine or mobile terminal, event action mode in this hand-written control function, that the element in operation web page is corresponding is carried out corresponding with set hand-written control operation mode, when displaying web page through browser, load this hand-written control function, after the hand-written control operation mode that reception employing handwriting input mode is inputted, determine event action mode corresponding to element in corresponding shown webpage, the event corresponding to element operates, complete event corresponding to element.
For the mode of operation of the different web pages operating function for different web pages arranges, can also white list be set at computing machine or mobile terminal, stored the web page address information that will use hand-written control function in this white list, when displaying web page through browser, the address information of at first determining shown webpage whether in set white list, if, load this hand-written control function in browser, otherwise, not loading, browser operates webpage according to existing mode.
The flow chart that Fig. 1 controls for the webpage that the embodiment of the present invention provides, hand-written control function is set, in this hand-written control function, event action mode that the element in operation web page is corresponding and set hand-written control operation mode are carried out correspondingly, and its concrete steps are:
After the browser resolves webpage that step 101, computing machine or mobile terminal arrange, display web page in browser;
The address information that step 102, computing machine or mobile terminal are determined the shown webpage of browser whether in set white list, if so, execution step 103; Otherwise, execution step 105;
In this step, at computing machine or mobile terminal, be provided with white list, stored the web page address information that will use hand-written control function in this white list;
Step 103, computing machine or mobile terminal load this hand-written control function at browser, after receiving the user and adopting the hand-written control operation mode that the handwriting input mode inputs, determine event action mode corresponding to element in corresponding shown webpage, the event corresponding to element operates, and completes event corresponding to element;
Step 104, computing machine or mobile terminal receive the event action mode that the user adopts the handwriting input mode to input according to event action mode corresponding to each element of the shown webpage of browser, the event corresponding to element operates, and completes event corresponding to element.
In the method, also can not carry out computing machine or mobile terminal and determine the whether judgement in set white list of address information of the shown webpage of browser, and directly perform step 103.Directly loading this hand-written control function gets final product.
The operating means structural representation that Fig. 2 controls for the webpage that the embodiment of the present invention provides comprises: module, browser control module and judge module are set, wherein,
Module is set, be used for arranging hand-written control function, in this hand-written control function, event action mode that the element in operation web page is corresponding and set hand-written control operation mode are carried out correspondingly, and white list is set, and have stored the web page address information that will use hand-written control function in this white list;
The browser control module, after being used for the browser resolves webpage that arranges, display web page in browser, receive the result of judge module feedback: when result is in white list, load this hand-written control function, after receiving the user and adopting the hand-written control operation mode that the handwriting input mode inputs, determine event action mode corresponding to element in corresponding shown webpage, the event corresponding to element operates, and completes event corresponding to element; For not in white list the time, receive the event action mode that the user adopts the handwriting input mode to input according to event action mode corresponding to each element of the shown webpage of browser when result, the event corresponding to element operates, and completes event corresponding to element;
Whether judge module, be used for determine the address information of the shown webpage of browser at set white list, and with result feedback to the browser control module.
In this apparatus structure, also can not comprise judge module, can carry out hand-written control function to the webpage of all browser display and directly by the browser control module, load this hand-written control function.
In embodiments of the present invention, the core technology of handwriting input mode is the handwriting recognition technology of computing machine or mobile terminal, and this is existing mature technology, repeats no more here.
Below lift an object lesson explanation
At first, hand-written control function is set on computing machine or mobile terminal, event action mode in this hand-written control function, that the element in operation web page is corresponding is carried out corresponding with set hand-written control operation mode, such as, click " relay " element button mode corresponding to " relay " element is set corresponding with set " circle " hand-written control operation mode, storage microblogging web page address information in white list;
in this step, adopt three elementary field event action modes that the element in operation web page is corresponding to carry out corresponding with set hand-written control operation mode, namely<component identification, set hand-written control operation mode, the event action mode that element is corresponding 〉, in webpage, the element that each component identification is corresponding is unique, such as, in the microblogging webpage, the component identification of " relay " element is ' mybuttonid ', corresponding event action mode is just completed the relay event for the button of clicking sign " relay " element, be onclick=' forwardweibo ', set hand-written control operation mode is circle, be designated ' 3 ', like this, three elementary fields are exactly<' mybuttonid ', ' 3 ', ' forwardweibo ' 〉.
Then, after the browser resolves webpage that computing machine or mobile terminal arrange, display web page in browser, shown webpage are meagre webpage;
Again, whether the address information that computing machine or mobile terminal are determined the shown webpage of browser in set white list, determines that namely meagre web page address information is in set white list;
Finally, computing machine or mobile terminal load this hand-written control function at browser, after receiving the user and adopting the hand-written control operation mode that the handwriting input mode inputs, determine event action mode corresponding to element in corresponding shown webpage, the event corresponding to element operates, and completes event corresponding to element;
in this step, as shown in Figure 3, Fig. 3 shows schematic diagram for the hand-written control operation mode in the microblogging page that the embodiment of the present invention provides, at browser display microblogging webpage, the user adopts the handwriting input mode, such as adopting handwriting pad, touch-screen or mouse draw the circle track, corresponding hand-written control operation mode is " 3 ", namely send hand-written control operation order " relay ", at this moment, after the browser of computing machine or mobile terminal receives the hand-written control operation mode of circle, namely ' 3 ', determine that event action mode corresponding to corresponding element is for clicking the button of sign " relay " element, send this event action mode, microblogging is relayed.
The foregoing is only preferred embodiment of the present invention, not be used for limiting protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of doing, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.