Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Fig. 1 has the schematic flow sheet of the embodiment of the method one of the terminal of touch screen for present invention control.As shown in figure 1,
This method includes:
S101, in touch-control screen display webpage, obtains the resource file of webpage.
User uses the terminal with touch screen to start browser, input network address or the hyperlink label for clicking on some websites
So that during displaying web page through browser, the resource file of the webpage is downloaded to terminal by browser according to standard process.
The resource file of described webpage includes but is not limited to:Edit format is HTML (Hypertext Markup
Language, HTML), JS (JavaScript, script) or CSS (Cascading Style Sheets,
Cascading style list) etc. web page editing file.
S102, when it is determined that resource file includes being used to identify the information of mouse-over event, starts preset mode.
Terminal has downloaded the resource file of webpage in S101, special using some key definitions in the resource file
Determine event, such as in the editing files of html format, the letter of mark mouse-over event is used as using on Mouse over
Breath, i.e. terminal can determine that current web page needs to trigger mouse-over event according to the on Mouse over, and terminal can start pre-
If pattern, the operation to detect triggering mouse-over event.
S103, the operation that detection touch screen is perceived.
S104, when the operation detected meets the trigger condition of some mouse-over event, triggers some mouse-over
Event.
In the present embodiment, terminal meets the trigger condition of some mouse-over event detecting the operation to the element that hovers
When, trigger some mouse-over event.Wherein hovering element can be some option-tag comprising drop-down menu, or some is literary
Word or letter, can also be picture;The mouse-over event is defined after user's operation information is detected, mouse-over event
Specific display effect, for example, eject the drop-down menu of option-tag.
It is exemplified below:In edit asset file, can also by the above-mentioned mouse-over information on Mouse over
Hovering element and specific event information are associated;Such as user contains when browsing some portal website in shown webpage
There is the mark picture of the portal website, the mark picture is an option-tag in webpage, in the editing files of webpage
The option-tag, mouse-over information on Mouse over and expression event information " display ' Welcome ' " are represented with character a
Display effect it is associated with character a;The option that character a is represented then is touched with finger on touch screen when terminal detects user
During label, mouse-over event is triggered, is shown according to associated display effect, i.e., at touch-control screen display " Welcome ".
The method of the terminal of the control with touch screen of the present embodiment, by detecting that the operation of user triggers corresponding mouse
Hovering event so that the webpage shown in the terminal with touch screen can also realize mouse-over effect, web displaying side
Formula is flexible and varied, and the terminal with touch screen can be with PC (Personal Computer, PC) terminal equally by net
Showing for page content intact, enhances the experience of user.
It will illustrate respectively with several embodiments and how to trigger the corresponding mouse-over thing of user's operation information below
Part;Wherein, several control models as described below are only for example, and the present invention is not construed as limiting.
Fig. 2 has the schematic flow sheet of the embodiment of the method two of the terminal of touch screen for present invention control.In the present embodiment
Preset mode be virtual push button auxiliary mode, as shown in Fig. 2 this method includes:
S201, starts browser, opens webpage.
S202, obtains the resource file of the shown webpage on touch screen.
S101 in the specific such as embodiment of the present invention one, will not be repeated here.
S203, determines the mouse-over information for whether including being used to identify mouse-over event in resource file;If including,
S204 is performed, if not including, the display mode described in S208 is performed.
Terminal inquiry resource file, specific such as S102, by taking html format as an example, includes on when inquiring resource file
Mouse over, the on Mouse over are the mouse-over information for identifying mouse-over event, then it represents that devised in webpage
Mouse-over effect, then continue executing with S204.
S204, displays whether to start the prompt message of preset mode.
For example, when inquiring resource file and including on Mouse over, the terminal with touch screen can be in touch-control
Screen display prompt message, described prompt message is, for example, that " page includes mouse-over effect, if start intelligent mould
Formula", the prompt message is used to ask the user whether to start the preset mode, it is herein assumed that preset mode is referred to as intelligent mode.
Also, the operation information of triggering mouse-over event can also be shown simultaneously, and the operation information is to be used to inform use
How family, which carries out operation, could trigger the mouse-over event;Such as, the operation information is " to start after the pattern, press void
Intend button while carry out touch operation can analog mouse hovering event ";Terminal can show above-mentioned simultaneously on touch screen
Prompt message and operation information, are specially that " page includes mouse-over effect, if start intelligent modeStart the intelligence
Touch operation is carried out after pattern, while pressing virtual push button can analog mouse hovering event ".
User's selection starts intelligent mode, and is operated to trigger the mouse-over thing according to the operation information of display
While the finger of part, such as user can press virtual push button, another finger touches associated with mouse-over event on the page
Hovering element, the hovering element can be specially option-tag, word, letter or the picture that some includes drop-down menu, if should
Mouse-over event is the drop-down menu that ejection is illustrated to the option-tag, then the drop-down for explanation is ejected on webpage
Menu;The mouse-over event can also be the specific mouse-over effect of display, for example, show " Welcome ".
Above-mentioned prompt message stays for some time on touch screen, and the specific residence time can pre-set threshold value, not
More than in the time of the threshold value, user's selection starts or not started intelligent mode;After time threshold, user is without any behaviour
Make, the prompt message then disappears, and the webpage is with display described in S208;After prompt message disappearance, user needs to start intelligence
During pattern, it can select to start intelligent mode in some option, for example, the setting choosing for the browser software installed in terminal
Xiang Zhong, selection starts intelligent mode.
S205, judges whether user starts preset mode.
When prompt message in S204 occurs, user selection startupoptions, i.e. terminal, which are detected, starts preset mode
Confirm operation, represent that user's selection starts preset mode, i.e., above-mentioned intelligent mode, the intelligent mode is that above-mentioned virtual push button is auxiliary
Help pattern.Terminal will also continue executing with subsequent step, in the way of virtual push button auxiliary mode is set, and be operated and be touched according to user
Send out mouse-over event;If user selects not startupoptions, webpage is shown in the way of described in S208.
Wherein, such as have in described prompt message for options such as the "Yes" or "No" of user's selection, if then user makes
The "Yes" option in prompt message is touched with finger, represents that user have selected intelligent mode;The selection operation of the user, by with
The terminal of touch screen is detected, and is detected equivalent to terminal for representing that the user confirms to start above-mentioned preset mode really
Recognize message;If user have selected "No" option, represent that user's selection does not start above-mentioned preset mode on current web page, the user
Selection operation detected by the terminal with touch screen, terminal shows net on touch screen in the way of described in S208
Page.
S206, shows virtual push button.
The virtual push button shows virtual push button at the default default coordinate of terminal;
Optionally, in order to improve Consumer's Experience, user can also move freely the virtual push button;Such as user can pin
The virtual push button of touch-control screen display, is dragged, until dragging to desired display location;In the process, user pins
The operation that virtual push button is dragged can be detected by terminal, for example, terminal is provided with temperature sensor or pressure sensor,
When finger is pinned virtual push button and dragged, the temperature or pressure of the drag area on touch screen change, temperature sensor or
Pressure sensor senses the change.
S207, is touched detecting the corresponding hovering element of some mouse-over event, and the void of touch-control screen display
When plan button is touched, some mouse-over event is triggered.
Specifically, the terminal with touch screen is detected, user's finger presses virtual push button and finger is without departing from touch-control
Screen, and some mouse-over event it is corresponding hovering element be touched when, trigger some mouse-over event.
In the present embodiment, virtual push button it is position-movable, user can according to use habit complete operate, facilitate user's
Use, while the web page browsing effect of terminal is humanized, enhance the experience of user.
Terminal detects the corresponding hovering element of some mouse-over event and is touched, and the virtual of touch-control screen display is pressed
When button is touched, some mouse-over event is triggered, concrete example is as follows:User touches and some while touching virtual push button
The corresponding word of mouse-over event, letter or picture.Now, some mouse-over event is triggered, for example, being ejected on the page
There is " Welcome " in drop-down menu.
It should be noted that after user's finger touches virtual push button, to make terminal accurately detect, user operates, now eventually
End shield multi-touch function.Such as user's finger is touched after virtual push button, and another finger needs according to user's operation information
Region beyond virtual push button touches touch screen, and now terminal can be obtained to have on touch screen and touched at two, if now multiple spot is touched
Touch function not shield, then terminal may resolve to user's operation information multiple point touching pattern, it is aobvious according to multiple point touching pattern
Show webpage, such as amplify, reduce or minimize webpage, without triggering mouse-over event, made troubles to user, therefore
Under virtual push button auxiliary mode, after user touches virtual push button, terminal must shield multi-touch function.
It should be noted that terminal, which can also obtain user, operates corresponding touch overlay area;The described touch area of coverage
Domain is, for example, user when touching touch screen, the viewing area that finger is touched, and the content shown in the region will necessarily be by hand
Finger is blocked;Therefore the touch screen region outside the touch overlay area, shows the corresponding content of mouse-over event, for example
Show " Welcome ", it is to avoid user's finger blocks the event content of display, while shielding multi-touch function, makes terminal
Mouse-over event can accurately be triggered by detecting after user's operation information, to increase Consumer's Experience.
In addition, terminal is after the content of some mouse-over event of touch-control screen display, if terminal detects any operation,
Stop showing some corresponding content of mouse-over event, it may also be said to, if terminal is not detected by user's operation information, in touch-control
The content of the mouse-over event keeps dispaly state on screen.Specifically, mouse-over effect appearance after, user's finger from
Touch screen is opened, before touching touch screen again to user's finger, the effect will not disappear.For example, finger touches some option mark
After label, terminal triggering mouse-over event, ejected the drop-down menu of the option-tag, now terminal detect user's finger from
The region where virtual push button and the option-tag is opened, the drop-down menu will not disappear.When terminal detects user's finger
When touching virtual push button again and touching another option-tag, i.e., user's operation is performed again, then foregoing drop-down menu disappears simultaneously
Perform the corresponding mouse-over event of option-tag of current touch;Or terminal detect user's finger do not touch it is virtual by
Button, only touches the option-tag on webpage, and foregoing drop-down menu disappears and entered the webpage of the option-tag link of current touch.
After occurring due to mouse-over effect, user's finger leaves touch screen, and the effect will not disappear, and be easy to user to look into
See;For example, the content that the drop-down menu of some option-tag ejection is included is more, user browses the content needs of the drop-down menu
Certain time, now the finger of user can leave touch screen, be not required to keep perform user operation state, be convenient to user and check
Information and Consumer's Experience is preferable.When terminal detects user's operation information and when triggering mouse-over event, also it can trigger eventually
End vibrations, specifically, the vibration modules of terminal where touch screen are called, are shaken, and give user's feedback response;
For example, user's finger performs operation information while virtual push button is touched, i.e., in the region touch where option-tag or
Slide, now, the vibration modules set in the terminal where touch screen are called, and produce vibration, rung by shaking feedback
Should, user can obtain mouse-over event and be successfully triggered.
More excellent, terminal can obtain the corresponding hovering element of user's operation and the time letter that hovered on the hovering element
Breath;The hovering element can be some word, letter or picture.When temporal information of hovering exceedes default time threshold, obtain
The corresponding display content of hovering element, and the display content is shown in display window.For example, user performs operation,
Touched in region where some information element shown on webpage and keep touch condition without departing from touch screen, that is, kept outstanding
Stop state, now terminal obtains the hovering element that user's finger keeps floating state, and the hovering element can be some option mark
Label, or one with hyperlinked information section of word, when user's finger is kept for the time of floating state exceed preset time in terminal
During threshold value, terminal is just displayed in the form of subwindow the info web content for the element link that hovers in current page,
User can enter without click hovering element just can quickly browse the particular content that hovering element is included in new webpage;It is above-mentioned
The element that hovers can also be only the vocabulary or sentence word without webpage link information, when user's finger is in the vocabulary or sentence
When the time is hovered on son more than threshold value, terminal can search for the hovering element in Background scheduling search engine, and should by what is searched
The relevant information of hovering element is shown in subwindow, user is obtained relevant information and is more facilitated, and the display effect of webpage
It is more flexibly lively, give user and preferably experience.
S208, webpage does not show mouse-over effect.
In S208, webpage will not show mouse-over effect, even if user's finger is hovered in some option-tag,
Mouse-over event will not be triggered;Now user's finger is touched after option-tag, and webpage is just directly entered the option-tag institute
The new webpage of link, user can obtain content information in the new webpage.
It should be noted that:S201, S204, S205 and S206 are optional step.
In the present embodiment, terminal can trigger mouse-over event by detecting the operation of user on touch screen, solve
The problem of mouse-over effect can not being shown when webpage is browsed in the terminal with touch screen;Web displaying is set flexibly to give birth to
It is dynamic, the experience of user is enhanced, while can also obtain touch overlay area, the touch screen region beyond the region shows event
Content, it is to avoid user's finger blocks the event content of display, at the same give vibrations feedback response, display effect it is more intelligent and
Hommization.
Fig. 3 has the schematic flow sheet of the embodiment of the method three of the terminal of touch screen for present invention control.In the present embodiment
Preset mode be physical button auxiliary mode, wherein physical button is by taking volume key as an example, as shown in figure 3, this method includes:
S301, starts browser, opens webpage.
S302, obtains the resource file of the shown webpage on touch screen.
S101 in the specific such as embodiment of the present invention one, will not be repeated here.
S303, determines the mouse-over information for whether including being used to identify mouse-over event in resource file;If including,
S304 is performed, if not including, the display mode described in S307 is performed.
Terminal inquiry resource file, specific such as S102, by taking html format as an example, includes on when inquiring resource file
Mouse over, the on Mouse over are the mouse-over information for identifying mouse-over event, then it represents that devised in webpage
Mouse-over effect, then continue executing with S304.
S304, displays whether to start the prompt message of preset mode.
For example, when inquiring resource file and including on Mouse over, the terminal with touch screen can be in touch-control
Screen display prompt message, described prompt message is, for example, that " page includes mouse-over effect, if start intelligent mould
Formula", the prompt message is used to ask the user whether to start the preset mode, it is herein assumed that preset mode is referred to as intelligent mode.
Also, the operation information of triggering mouse-over event can also be shown simultaneously, and the operation information is to be used to inform use
How family, which carries out operation, could trigger the mouse-over event;Such as, the operation information is " to start after the pattern, press sound
Measure key while carry out touch operation can analog mouse hovering event ";Terminal can show above-mentioned carry simultaneously on touch screen
Show information and operation information, be specially that " page includes mouse-over effect, if start intelligent modeStart the intelligent mould
Touch operation is carried out after formula, while pressing volume key can analog mouse hovering event ".
User's selection starts intelligent mode, and is operated to trigger the mouse-over thing according to the operation information of display
While the finger of part, such as user can press volume key, another finger touches associated with mouse-over event on the page
Hover element, and the hovering element can include option-tag, word, letter or the picture of drop-down menu for some;If the mouse hangs
The event of stopping is the drop-down menu that ejection is illustrated to the option-tag, then drop-down menu is ejected on webpage or display is specific
Mouse-over effect, such as display " Welcome ".
Above-mentioned prompt message stays for some time on touch screen, and the specific residence time can pre-set threshold value, not
More than in the time of the threshold value, user's selection starts or not started intelligent mode;After time threshold, user is without any behaviour
Make, the prompt message then disappears;The webpage is shown according to S307;After prompting message disappearance, user needs to start intelligent mode,
It can select to start intelligent mode in some option, for example, in the setting options for the browser software installed in terminal, choosing
Select startup intelligent mode.
S305, judges whether user starts preset mode.
When prompt message in S304 occurs, user's selection startupoptions, i.e. terminal detection starts preset mode really
Recognize operation, represent that user's selection starts preset mode, i.e., above-mentioned intelligent mode, the intelligent mode is above-mentioned physical button auxiliary
Pattern.Terminal will also continue executing with subsequent step, in the way of virtual push button auxiliary mode is set, according to user's operation information
Trigger mouse-over event;If user selects not startupoptions, webpage is shown in the way of described in S307.
Wherein, such as have in described prompt message for options such as the "Yes" or "No" of user's selection, if then user makes
The "Yes" option in prompt message is touched with finger, represents that user have selected intelligent mode;The selection operation of the user, by with
The terminal of touch screen is detected, and is detected equivalent to terminal for representing that the user confirms to start above-mentioned preset mode really
Recognize message;If user have selected "No" option, represent that user's selection does not start above-mentioned preset mode on current web page, the user
Selection operation detected by the terminal with touch screen, terminal shows net on touch screen in the way of described in S307
Page.
S306, when detecting the corresponding hovering element of some mouse-over event and being touched, and some default button quilt
Press, trigger some mouse-over event.
Some default button is physical button, and physical button is by taking volume key as an example in the present embodiment, for example, user
Volume key is pressed, while user touches touch screen, such as some option-tag on webpage is contacted, or at certain option-tag
Slide, then touch or slide at some option-tag while the user presses volume key, now, terminal will be according to the behaviour
Make to perform corresponding mouse-over event, such as, during corresponding some the mouse-over event of terminal triggering option-tag, according to
The mouse-over event effect of option-tag association is shown, for example, eject drop-down menu or " Welcome " occur.
It should be noted that terminal, which can also obtain user, touches the corresponding touch overlay area of option-tag;In the touch
Touch screen region outside overlay area, shows the corresponding content of mouse-over event, for example, show " Welcome ", it is to avoid
User's finger blocks the event content of display, to increase Consumer's Experience.
In addition, showing after some corresponding content of mouse-over event, if terminal detects any operation, the touch-control of terminal
Screen stops some described corresponding content of mouse-over event of display, it may also be said to, after the appearance of mouse-over effect, terminal inspection
Measure user's finger and leave touch screen, before touching touch screen again to user's finger, the effect will not disappear.For example, finger
Touch after some option-tag, trigger mouse-over event, ejected the drop-down menu of the option-tag, now terminal is detected
User's finger leaves the region where physical button and the option-tag, and the drop-down menu will not disappear.When terminal detection
When pressing physical button again to user's finger and touching another option-tag, i.e., user's operation, then foregoing drop-down are performed again
Menu disappears and performs the corresponding mouse-over event of option-tag of current touch;Or when terminal detects user's finger not
Press physical button, only touch the option-tag on webpage, foregoing drop-down menu disappears and enters the option-tag of current touch
The webpage of link.
After occurring due to mouse-over effect, user's finger leaves touch screen, and the effect will not disappear, and be easy to user to look into
See;For example, the content that the drop-down menu of some option-tag ejection is included is more, user browses the content needs of the drop-down menu
Certain time, now the finger of user can leave touch screen, be not required to keep perform user operation state, be convenient to user and check
Information and Consumer's Experience is preferable.
When terminal detects user's operation information and when triggering mouse-over event, that is, trigger some mouse-over event
While, the terminal vibrations are triggered, i.e. the vibration modules of terminal where touch screen are called, are shaken, give use
Family feedback response;For example, user's finger performs operation information while physical button, i.e., in the region where option-tag
Touch or slide, now, the vibration modules set in the terminal where touch screen are called, and produce vibration, pass through vibrations
Feedback is responded, and user can obtain mouse-over event and be successfully triggered.
More excellent, when terminal can obtain the corresponding hovering element of user's operation information and be hovered on the hovering element
Between information;Wherein hovering element can for some word, letter or picture,.Exceed default time threshold in hovering temporal information
When, the corresponding display content of hovering element is obtained, and the display content is shown in display window.For example, user performs
Touched in user's operation, region where some information element shown on webpage and keep touch condition without departing from touch-control
Screen, that is, keep floating state, and now terminal obtains the hovering element that user's finger keeps floating state, and the hovering element can be
Some option-tag, or one with hyperlinked information section of word, when user's finger is kept for the time of floating state exceed terminal
During preset time threshold, terminal is just shown in the form of subwindow the info web content for the element link that hovers in current page
Reveal come, user can without click on hovering element enter new webpage in just can quickly browse hovering element include it is specific in
Hold;Above-mentioned hovering element can also be only the vocabulary or sentence word without webpage link information, when user's finger is at this
When the time is hovered on vocabulary or sentence more than threshold value, terminal can search for the hovering element, and will search in Background scheduling search engine
The relevant information for the hovering element that rope is arrived is shown in subwindow, user is obtained relevant information and is more facilitated, and webpage
Display effect is more flexibly lively, gives user and preferably experiences.
S307, webpage does not show mouse-over effect.
In S307, webpage will not show mouse-over effect, even if user's finger is hovered in some option-tag,
Mouse-over event will not be triggered;Now user's finger is touched after option-tag, and webpage is just directly entered the option-tag institute
The new webpage of link, user can obtain content information in the new webpage.
It should be noted that:S301, S304 and S305 are optional step.
In the present embodiment, terminal can trigger mouse-over event by detecting the operation of user on touch screen, solve
The problem of mouse-over effect can not being shown when webpage is browsed in the terminal with touch screen;Web displaying is set flexibly to give birth to
It is dynamic, the experience of user is enhanced, while can also obtain touch overlay area, the touch screen region beyond the region shows event
Content, it is to avoid user's finger blocks the event content of display, at the same give vibrations feedback response, display effect it is more intelligent and
Hommization.
Fig. 4 has the schematic flow sheet of the embodiment of the method four of the terminal of touch screen for present invention control.In the present embodiment
Preset mode is hanging recognition mode, as shown in figure 4, this method includes:
S401, starts browser, opens webpage.
S402, obtains the resource file of the shown webpage on touch screen.
S101 in the specific such as embodiment of the present invention one, will not be repeated here.
S403, determines the mouse-over information for whether including being used to identify mouse-over event in resource file;If including,
S404 is performed, if not including, S408 is performed.
Terminal inquiry resource file, specific such as S102, by taking html format as an example, includes on when inquiring resource file
Mouse over, the on Mouse over are the mouse-over information for identifying mouse-over event, then it represents that devised in webpage
Mouse-over effect, then continue executing with S404.
S404, displays whether to start the prompt message of preset mode.
For example, when inquiring resource file and including on Mouse over, the terminal with touch screen can be in touch-control
Screen display prompt message, described prompt message is, for example, that the page includes mouse-over effect, if start intelligent mould
Formula", the prompt message is used to ask the user whether to start the preset mode, it is herein assumed that preset mode is referred to as intelligent mode.
Also, the operation information of triggering mouse-over event can also be shown simultaneously, and the operation information is to be used to inform use
How family, which carries out operation, could trigger the mouse-over event;Such as, the operation information is " to start after the pattern, finger exists
Vacantly can analog mouse hovering event above touch screen ";Terminal can on touch screen simultaneously show above-mentioned prompt message and
Operation information, is specially that " page includes mouse-over effect, if start intelligent modeStart after the intelligent mode, finger
Above touch screen vacantly can analog mouse hovering event ".
User's selection starts intelligent mode, and is operated to trigger the mouse-over thing according to the operation information of display
The finger of part, such as user can be selected vacantly, it is necessary to illustrate above touch screen, and the hanging position of finger is projected to touch-control
Region on screen must coincide with the region where the option-tag on current web page, and finger apart from touch screen distance in terminal
Within detectable threshold value, mouse-over event is just can trigger, mouse-over effect is shown;If the mouse-over event is bullet
Go out the drop-down menu illustrated to the option-tag, then the drop-down menu for explanation is ejected on webpage;Or can also press
The specific mouse-over effect of display is indicated according to event handling flow, for example, shows " Welcome ".
Above-mentioned prompt message stays for some time on touch screen, and the specific residence time can pre-set threshold value, not
More than in the time of the threshold value, user's selection starts or not started intelligent mode;After time threshold, user is without any behaviour
Make, the inquiry message then disappears;The webpage is shown according to S407 simultaneously;After inquiry message disappears, user needs to start intelligence
During pattern, it can select to start intelligent mode in some option, for example, the setting choosing for the browser software installed in terminal
Xiang Zhong, selection starts intelligent mode.
S405, judges whether user starts preset mode.
When prompt message in S404 occurs, user's selection startupoptions, terminal detects startup preset mode really
Recognize operation, that is, mean that user have selected startup preset mode, i.e. intelligent mode, terminal will also continue executing with subsequent step, root
Mouse-over event is triggered according to user's operation information and performs corresponding event;If user selects not startupoptions, webpage is pressed
Shown according to the mode described in S407.
Wherein, such as have in described prompt message for options such as the "Yes" or "No" of user's selection, if then user makes
The "Yes" option in prompt message is touched with finger, represents that user have selected intelligent mode;The selection operation of the user, by with
The terminal of touch screen is detected, and is detected equivalent to terminal for representing that the user confirms to start above-mentioned preset mode really
Recognize message;If user have selected "No" option, represent that user's selection does not start above-mentioned preset mode on current web page, the user
Selection operation detected by the terminal with touch screen, terminal shows net on touch screen in the way of described in S407
Page.
S406, detect the corresponding hovering element of some mouse-over event it is selected by non-contacting mode when, triggering
Some mouse-over event;
Specifically, non-contacting mode is selected, it can be realized by means of one or several sensors and corresponding support circuit,
Involved sensor includes but is not limited to:Proximity transducer, optical sensor or temperature sensor etc., terminal detects touch screen
Upper user finger is hanging, and obtains overhead positions information of the user's finger above touch screen.
Terminal obtains the overhead positions information that user's finger is located above touch screen, and the overhead positions are mapped on touch screen
Region and option-tag area coincidence, trigger mouse-over event, and indicate according to event associate with the option-tag to show
Show mouse-over event effect, for example, eject drop-down menu or " Welcome " occur.In addition, terminal shows some mouse-over
After the corresponding content of event, if terminal detects any operation, the touch screen of terminal stops showing some mouse-over event pair
The content answered, that is to say, that after the appearance of mouse-over effect, terminal detects user's finger away from touch screen, to terminal inspection
Measure user's finger to be suspended on again before touch screen top, the effect will not disappear.For example, terminal detects finger in touch-control
The hanging position in screen top is mapped in after the region on touch screen and the area coincidence where option-tag, triggers mouse-over thing
Part, has ejected the drop-down menu of the option-tag, now, and terminal detects user's finger away from touch screen again, then drop-down menu
It will not disappear.When terminal is detected again, user's finger is hanging above touch screen again, then foregoing drop-down menu disappears and performed
The corresponding mouse-over event of option-tag that current overhead positions are mapped to;Or user's finger directly touches the choosing on webpage
Item label, foregoing drop-down menu disappears and entered the webpage of the option-tag link of current touch.
After occurring due to mouse-over effect, terminal detects user's finger and leaves touch screen, and the effect will not disappear, just
Checked in user;For example, the content that the drop-down menu of some option-tag ejection is included is more, user browses the drop-down menu
Content needs certain time, and now the finger of user is not required to the hanging state for keeping performing user's operation, is convenient to user and checks
Information and Consumer's Experience is preferable.
When terminal detects user's operation information and triggers mouse-over event, i.e., in some described mouse-over of triggering
While event, the terminal vibrations are triggered, i.e. the vibration modules of terminal where touch screen are called, are shaken, given
User's feedback is given to respond;For example, to detect user's finger hanging above touch screen for terminal, mouse-over event is triggered, this
When, the vibration modules set in the terminal where touch screen are called, and produce vibration, are responded by shaking feedback, user
Mouse-over event can be obtained to be successfully executed, if shockproof feedback, user understands that current overhead positions are inaccurate, not with option
Region where label is coincide, and overhead positions can be adjusted immediately.
More excellent, terminal can obtain the corresponding hovering element of user's operation and the time letter that hovered on the hovering element
Breath;The hovering element can for some word, letter or picture,;When temporal information of hovering exceedes default time threshold, obtain
The corresponding display content of hovering element, and the display content is shown in display window.For example, user performs user behaviour
Make, finger keeps hanging action above the touch screen in the region where some information element shown on webpage, that is, keep outstanding
Stop state, now terminal obtains the hovering element that user's finger keeps floating state, and the hovering element can be some option mark
Label, or one with hyperlinked information section of word, when user's finger is kept for the time of floating state exceed in browser in advance
If during time threshold, terminal is just shown in the form of subwindow the info web content for the element link that hovers in current page
Out, user can without click on hovering element enter new webpage in just can quickly browse hovering element include it is specific in
Hold;Above-mentioned hovering element can also be only the vocabulary or sentence word without webpage link information, when user's finger is at this
When the time is hovered on vocabulary or sentence more than threshold value, terminal can search for the hovering element, and will search in Background scheduling search engine
The relevant information for the hovering element that rope is arrived is shown in subwindow, user is obtained relevant information and is more facilitated, and webpage
Display effect is more flexibly lively, gives user and preferably experiences.
S407, webpage does not show mouse-over effect.
In S407, webpage will not show mouse-over effect, even if user's finger is hovered in some option-tag,
Mouse-over effect will not be triggered;Now user's finger is touched after option-tag, and webpage is just directly entered the option-tag institute
The new webpage of link, user can obtain content information in the new webpage.
It should be noted that:S401, S404 and S405 are optional step.
In the present embodiment, terminal can obtain the hanging operation information of user's finger, and mouse-over is triggered on touch screen
Event, solves the problem of can not showing mouse-over effect when webpage is browsed in the terminal with touch screen;Show webpage
Show flexibly lively, enhance the experience of user, while can also obtain touch overlay area, the touch screen region beyond the region
Show event content, it is to avoid user's finger blocks the event content of display, while giving vibrations feedback response, display effect is more
Intelligent and hommization.
It should also be noted that, in above-mentioned each method embodiment, terminal individually can be implemented Method Of Accomplishment as executive agent
Each step in example;Or, terminal and the mounted common Method Of Accomplishment of browser program on the terminal can also be passed through
Each step in embodiment.
Fig. 5 is the structural representation of terminal embodiment one of the present invention.As shown in figure 5, the terminal has touch screen, including:
Acquisition module 501, in touch-control screen display webpage, obtaining the resource file of the webpage;
Starting module 502, for when it is determined that resource file includes being used to identify the information of mouse-over event, starting
Preset mode;
Detection module 503, for detecting the operation that touch screen is perceived;
Trigger module 504, the operation for being detected in detection module 503 meets touching for some mouse-over event
During clockwork spring part, some mouse-over event is triggered.
Terminal as described above also includes display module 505, for displaying whether to open before above-mentioned preset mode is started
Move the prompt message of the preset mode and start the operation information (optional) of the preset mode;Correspondingly, the detection mould
Block 503, is additionally operable to the confirmation operation that detection starts the preset mode.The operation information is used to cause user according to the operation
Information is operated to trigger the mouse-over event.
It should be noted that display module 505 can realize that wherein hardware can be using hardware and/or software mode
Touch screen in terminal, software can be the display control program of terminal memory storage..
Above-mentioned trigger module 504, specifically in detection module 503 to detect some mouse-over event corresponding outstanding
Stop element be touched when, and touch-control screen display virtual push button be touched when, trigger some mouse-over event.
Optionally, trigger module 504 is detecting some mouse-over event correspondence also particularly useful in detection module 503
Hovering element when being touched, and some default button is when being pressed, and triggers some mouse-over event.
Optionally, trigger module 504 is corresponding outstanding specifically for detecting some mouse-over event in detection module 503
Stop element by non-contacting mode it is selected when, trigger some mouse-over event.
Optionally, display module 505 is additionally operable to after some described corresponding content of mouse-over event of display, in detection mould
When block 503 detects any operation, the touch screen is driven to stop showing some corresponding content of mouse-over event.
Trigger module 504 is additionally operable to while some mouse-over event is triggered, triggering terminal vibrations.
In terminal embodiment of the present invention, the above-mentioned each method embodiment of modules correspondence will not be repeated here.
The terminal provided in the present embodiment, which is solved, can not show mouse when webpage is browsed in the terminal with touch screen
The problem of mark hovering effect;Make web displaying flexibly lively, enhance the experience of user, while can also obtain the touch area of coverage
Domain, the touch screen region beyond the region shows event content, it is to avoid user's finger blocks the event content of display, gives simultaneously
Vibrations feedback response is given, display effect is more intelligent and hommization.
Fig. 6 is the structural representation of terminal embodiment two of the present invention.As shown in fig. 6, the terminal includes:
Touch screen 601;
At least one processor 602, at least one described processor 602 is coupled with the touch screen 601, and described at least one
When individual processor 602 is configured as showing webpage on the touch screen 601, the resource file of the webpage is obtained;It is determined that
When the resource file includes being used to identify the information of mouse-over event, start preset mode;Detect the touch screen 601
The operation of perception;When the operation detected meets the trigger condition of some mouse-over event, some described mouse of triggering
Mark hovering event.
Optionally, at least one described processor 602 is additionally configured to display whether that startup is described in the touch screen 601
During the prompt message of preset mode, detection starts the confirmation operation of the preset mode.
Optionally, it is described when the operation detected meets the trigger condition of some mouse-over event, trigger institute
Some mouse-over event is stated, including:
It is touched detecting the corresponding hovering element of some described mouse-over event, and the touch-control screen display
When virtual push button is touched, some described mouse-over event of triggering;Or,
When detecting the corresponding hovering element of some described mouse-over event and being touched, and some default button quilt
Press, some described mouse-over event of triggering;Or,
Detect the corresponding hovering element of some described mouse-over event it is selected by non-contacting mode when, trigger institute
State some mouse-over event.
Some mouse-over event described in the triggering, including:
After some described corresponding content of mouse-over event of display, if detecting any operation, stop certain described in display
The corresponding content of individual mouse-over event.
Optionally, at least one described processor 602 is additionally configured in some mouse-over event described in the triggering
While, trigger the terminal vibrations.
In terminal embodiment of the present invention, the above-mentioned each method corresponding with least one processor 602 of touch screen 601 is implemented
Example, will not be repeated here.
The terminal provided in the present embodiment, which is solved, can not show mouse when webpage is browsed in the terminal with touch screen
The problem of mark hovering effect;Make web displaying flexibly lively, enhance the experience of user, while can also obtain the touch area of coverage
Domain, the touch screen region beyond the region shows event content, it is to avoid user's finger blocks the event content of display, gives simultaneously
Vibrations feedback response is given, display effect is more intelligent and hommization.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to
The related hardware of flow instruction is crossed to complete.Foregoing flow can be stored in a computer read/write memory medium.The stream
Journey upon execution, performs the step of including above-mentioned each method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or
Person's CD etc. is various can be with the medium of Stored Procedure code.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent
The present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to
The technical scheme described in foregoing embodiments can so be modified, or which part or all technical characteristic are entered
Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology
The scope of scheme.