CN106547340B - The method, apparatus and intelligent terminal of web page element are quickly hidden based on gravity sensing - Google Patents

The method, apparatus and intelligent terminal of web page element are quickly hidden based on gravity sensing Download PDF

Info

Publication number
CN106547340B
CN106547340B CN201510613542.0A CN201510613542A CN106547340B CN 106547340 B CN106547340 B CN 106547340B CN 201510613542 A CN201510613542 A CN 201510613542A CN 106547340 B CN106547340 B CN 106547340B
Authority
CN
China
Prior art keywords
mobile terminal
web page
axis
weight component
component value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201510613542.0A
Other languages
Chinese (zh)
Other versions
CN106547340A (en
Inventor
吴伟勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
Guangzhou Dongjing Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Dongjing Computer Technology Co Ltd filed Critical Guangzhou Dongjing Computer Technology Co Ltd
Priority to CN201510613542.0A priority Critical patent/CN106547340B/en
Publication of CN106547340A publication Critical patent/CN106547340A/en
Application granted granted Critical
Publication of CN106547340B publication Critical patent/CN106547340B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The present invention provides method, apparatus and intelligent terminal that web page element is quickly hidden based on gravity sensing.This method comprises: whether detection mobile browser is in front stage operation state;The motion state of mobile terminal is detected in the case where mobile browser is in front stage operation state;The web page element on current browsing webpage is hidden when confirmation detects mobile terminal turn.The beneficial effect of the technical scheme provided by the present invention is that: the overturning of mobile terminal can be quickly detected based on gravity sensing technology, it is realized by the quick overturning of mobile terminal and the quick of web page element is hidden, it does not need to close the webpage browsed, preferably the user experience is improved.

Description

The method, apparatus and intelligent terminal of web page element are quickly hidden based on gravity sensing
Technical field
The present invention relates to web browsing technology fields, quickly hide webpage based on gravity sensing in particular to one kind The method, apparatus and intelligent terminal of element.
Background technique
With the rapid proliferation of the smart terminal product of such as smart phone and tablet computer, user uses mobile browser Accessing internet becomes daily behavior.Mobile browser userbase is also constantly increasing.With content browsable on webpage Explosive increase, the illegal operators of number of site can enter indecency or violence in web-page upload to attract concern and amount of access Deng audio-visual resources, such as picture resource, video resource or audio resource etc..It is clear unintentionally for the user of mobile browser Look at such website, especially under some special scenes, such as crowded narrow such as subway, elevator, bus In space, there is the scene etc. of children at one's side for another example, the broadcasting of the audio-visual resources of indecency or violence etc. will lead to misunderstanding and embarrassment, The sound development of children can also be adversely affected.
In addition, being required in quiet scene some, such as library, hospital, bank, waiting room etc., video and sound The outer sound reproduction sound of frequency resource influences whether the people on periphery, does not also meet the requirement in locating place.
Although user can turn off browser to prevent the broadcasting of audio-visual resources, needed by manually selecting closing browser Certain time is wanted, adverse effect has occurred and that during this period of time;Further more, user wants to see the text on webpage such as in library Word content, and it is not desired to playback of audio-visual resource, it then cannot achieve viewing word content by the way of browser is turned off manually at this time Purpose, and the time for individually closing audio-visual resources will be longer.
These above-mentioned situations have resulted in some adverse effects using the experience of mobile browser access internet to user.
Summary of the invention
The purpose of the present invention is to provide a kind of method, apparatus and intelligence that web page element is quickly hidden based on gravity sensing Terminal, to improve above-mentioned problem.
A kind of method that mobile terminal turn is quickly detected based on gravity sensing is provided in an embodiment of the present invention, It is characterized in that, comprising:
Use the gravity point of gravity sensor per predetermined time acquisition X-axis, Y-axis and Z-direction in one section of preset time Magnitude;
When the Z-direction acquired within a preset time weight component value and meanwhile meet the following conditions:
A) the weight component value of the Z axis acquired gradually becomes smaller according to acquisition sequencing;
B) the weight component value of the Z axis of last time acquisition is negative;And
C) the sum of the weight component value of the Z axis of one acquisition and the weight component value of Z axis of last time acquisition exist at first Between [- 1,1], then confirmation detects mobile terminal turn.
Preferably, the preset time is 0.3-0.5 seconds, and the predetermined time is 0.1 second.
A kind of method that web page element is quickly hidden based on gravity sensing is additionally provided in an embodiment of the present invention, it is special Sign is, comprising:
Whether detection mobile browser is in front stage operation state;
Mobile terminal is quickly detected based on gravity sensing using above-mentioned in the case where mobile browser is in front stage operation state The method of overturning detects the motion state of mobile terminal;
When confirmation detects mobile terminal turn, the web page element on current browsing webpage is hidden.
Preferably, the web page element is picture, the video and/or audio on webpage.
Preferably, when hiding the web page element on current browsing webpage is picture, video and/or audio, default is used Picture covers region shared by picture, video and/or audio, is simultaneously stopped the broadcasting of video and/or audio and recording played progress.
Preferably, after hiding the web page element on current browsing webpage, the motion state of mobile terminal is continued to test, When confirmation detects mobile terminal turn, the web page element being hidden is shown.
Preferably, when the web page element that display is hidden is view piece, video and/or audio, covering picture, view are removed The default picture in region shared by frequency and/or audio, continues to play the video and/or audio according to the playback progress of record.
Preferably, the motion state of mobile terminal is detected using the shell of mobile browser.
Additionally provide a kind of mobile terminal turn detection device in an embodiment of the present invention comprising gravity sensor and Detection module, in which:
Gravity point of the gravity sensor for predetermined time acquisition X-axis per in one section of preset time, Y-axis and Z-direction Magnitude;With
Whether the weight component value that detection module is used to analyze the Z-direction that gravity sensor acquires within a preset time is same When meet the following conditions: a) acquire Z axis weight component value according to acquisition sequencing gradually become smaller, b) last time acquire Z axis weight component value be negative and c) at first the weight component value of the Z axis of one acquisition and last time acquisition Z axis The sum of weight component value between [- 1,1], the detection knot that mobile terminal is flipped is obtained when meeting the condition at the same time Fruit.
Preferably, the preset time is 0.3-0.5 seconds, and the predetermined time is 0.1 second.
A kind of device that web page element is quickly hidden based on gravity sensing is additionally provided in an embodiment of the present invention, it is special Sign is, comprising:
The module for whether being in front stage operation state for detecting mobile browser;
Above-mentioned mobile terminal turn detection device;
For hiding the module of the web page element on current browsing webpage.
Preferably, the web page element is picture, the video and/or audio on webpage.
Preferably, for stopping the module for playing simultaneously recording played progress of video and/or audio.
Preferably, for showing the module for the web page element being hidden.
Preferably, continue to play the module of the video and/or audio for the playback progress according to record.
A kind of intelligent terminal is additionally provided in an embodiment of the present invention, which is characterized in that including above-mentioned mobile terminal Overturn detection device.
A kind of intelligent terminal is additionally provided in an embodiment of the present invention, which is characterized in that including above-mentioned based on gravity The device of web page element is quickly hidden in induction.
The beneficial effect of technical solution provided in an embodiment of the present invention is: can be quickly detected based on gravity sensing technology The overturning of mobile terminal is realized by the quick overturning of mobile terminal and is hidden to the quick of web page element.Technology of the invention Scheme can allow user to pass through efficiently gesture operation quickly hide/to show audio-visual resources to realize, while not need to close clear The webpage look at avoids in unnecessary misunderstanding and embarrassment, is requiring the crowd that will not influence periphery in quiet scene, Preferably the user experience is improved.
Detailed description of the invention
Fig. 1 is the flow chart of the method for the invention that mobile terminal turn is quickly detected based on gravity sensing;
Fig. 2 is the flow chart of the method for the invention that web page element is quickly hidden based on gravity sensing;
Fig. 3 is the process of a preferred embodiment of the method for the invention that web page element is quickly hidden based on gravity sensing Figure;
Fig. 4 is the structural schematic diagram of mobile terminal turn detection device of the invention;
Fig. 5 is the structural schematic diagram of the device of the invention that web page element is quickly hidden based on gravity sensing;
Fig. 6 is the structure of a preferred embodiment of the device of the invention that web page element is quickly hidden based on gravity sensing Schematic diagram.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
In order to improve the technical issues of proposed, the present inventor is based on gravity sensing technology, by quickly detecting The method that mobile terminal is flipped out, in conjunction with the hidden method of web page element, to realize without by manually selecting Operation can quickly hide the purpose of web page element, and preferably the user experience is improved.
Below in conjunction with the drawings and specific embodiments of the invention, various technical solutions of the invention are carried out clear, complete Site preparation description.
Fig. 1 is the flow chart of the method for the invention that mobile terminal turn is quickly detected based on gravity sensing.
As shown in Figure 1, the first embodiment of the present invention provides and a kind of quickly detect mobile terminal based on gravity sensing and turn over The method turned comprising:
Step S101: using gravity sensor, per predetermined time acquires X-axis, Y-axis and Z-direction in one section of preset time Weight component value.
Using gravity sensor in one section of preset time per predetermined time obtain the current gravity of mobile terminal (x, y, Z) component value in reference axis, wherein X-direction is mobile terminal screen transverse direction, and Y direction is perpendicular for mobile terminal screen To direction, Z-direction be with mobile terminal screen vertical direction, wherein the preset time is preferably 0.3-0.5 seconds, more preferably , the preset time is preferably 0.4 second, and the predetermined time is preferably 0.1 second.Certainly, listed preset time and predetermined The occurrence of time is merely illustrative of, and can also use other times value.
It is usually 0.3-0.5 that inventor counts people to carry out the time-consuming of wrist overturning under normal circumstances by test of many times Second, so default at such as 0 to 0.3,0.4 or 0.5 second using gravity sensor in the preferred embodiments of the technical program With the weight component value of for example every acquisition of 0.1 second predetermined time 1 group of X, Y and Z-direction in period, 3,4 or 5 are acquired altogether The weight component value of group X, Y and Z-direction, for the analysis of next step.
Step S102: when the Z-direction acquired within a preset time weight component value and meanwhile meet the following conditions: a) adopt The weight component value of the Z axis of collection gradually becomes smaller according to acquisition sequencing, b) the weight component value of the Z axis of last time acquisition is Negative and c) at first the weight component value of the Z axis of one acquisition and the sum of weight component value of Z axis of last time acquisition [- 1,1] between, then confirmation detects mobile terminal turn.
It is main after the weight component value for acquiring such as 3,4 or 5 groups of X, Y and Z-direction in above-mentioned preferred embodiments If the weight component value to Z-direction is analyzed.When the weight component value for the Z-direction that discovery acquires in chronological order is full Sufficient the following conditions: a) Z that the weight component value of the Z axis acquired gradually becomes smaller according to acquisition sequencing, b) acquires for the last time The weight for the Z axis that the weight component value of axis is negative and c) the weight component value of the Z axis of one acquisition and last time acquire at first The sum of force component value then may determine that mobile terminal is overturn between [- 1,1].
Example 1:
One section of preset time is 0.3 second, and the predetermined time is 0.1 second, then acquires 3 groups of X, Y and Z axis sides respectively within every 0.1 second To weight component value:
S1 (10,0,0), S2 (5,0, -5), S3 (0,0, -10).
The weight component value of 3 groups of Z-directions of acquisition order are as follows: 0, -5, -10.
It follows that it meets: a) the weight component value of the Z axis acquired gradually becomes smaller and b) according to acquisition sequencing The weight component value of the Z axis of last time acquisition is negative, but is unsatisfactory for the weight component value of the c) Z axis of one acquisition at first The sum of weight component value of Z axis acquired with last time is not considered as the fortune of mobile terminal at this time between [- 1,1] Dynamic state is overturning.
Example 2:
One section of preset time is 0.4 second, and the predetermined time is 0.1 second, then acquires 4 groups of X, Y and Z axis sides respectively within every 0.1 second To weight component value:
S1 (5,0,5), S2 (10,0,0), S3 (5,0, -5), S4 (0,0, -10).
The weight component value of 4 groups of Z-directions of acquisition order are as follows: 5,0, -5, -10.
It follows that it meets: a) the weight component value of the Z axis acquired gradually becomes smaller and b) according to acquisition sequencing The weight component value of the Z axis of last time acquisition is negative, but is unsatisfactory for the weight component value of the c) Z axis of one acquisition at first The sum of weight component value of Z axis acquired with last time is not considered as the fortune of mobile terminal at this time between [- 1,1] Dynamic state is overturning.
Example 3:
One section of preset time is 0.5 second, and the predetermined time is 0.1 second, then acquires 5 groups of X, Y and Z axis sides respectively within every 0.1 second To weight component value:
S1 (0,0,10), S2 (5,0,5), S3 (10,0,0), S4 (5,0, -5), S5 (0,0, -10).
The weight component value of 5 groups of Z-directions of acquisition order are as follows: 10,5,0, -5, -10.
It follows that it meets: a) the weight component value of the Z axis acquired gradually becomes smaller, b) most according to acquisition sequencing Afterwards the weight component value of the Z axis of one acquisition be negative and c) at first the weight component value of the Z axis of one acquisition and last time The sum of weight component value of the Z axis of acquisition is between [- 1,1], therefore, it is considered that the motion state of mobile terminal at this time is overturning.
The method provided in an embodiment of the present invention that mobile terminal turn is quickly detected based on gravity sensing, its advantages It is: the overturning of mobile terminal can be quickly detected based on gravity sensing technology, and detection method according to the present invention is examined The overturning for surveying mobile terminal, without considering the placement angle of mobile terminal, with simple, speed is fast, high accuracy for examination.
Fig. 2 is the flow chart of the method for the invention that web page element is quickly hidden based on gravity sensing.
As shown in Fig. 2, the second embodiment of the present invention provides and a kind of quickly hides web page element based on gravity sensing Method comprising:
Step S201: whether detection mobile browser is in front stage operation state.
It can adopt and detect whether mobile browser is in front stage operation state with method known in this field.For example, logical Cross the mode that detection browser interface is shown on foreground;Pass through Activity () function etc..
Step S202: it is quickly detected using above-mentioned based on gravity sensing in the case where mobile browser is in front stage operation state The method of mobile terminal turn detects the motion state of mobile terminal.
Specifically, in the case where mobile browser is in front stage operation state, using gravity sensor in one section of preset time Interior per predetermined time acquires X-axis, the weight component value of Y-axis and Z-direction.The preset time is preferably 0.3-0.5 seconds, more excellent Choosing, the preset time is preferably 0.4 second, and the predetermined time is preferably 0.1 second.Certainly, listed preset time and solid The occurrence fixed time is merely illustrative of, and can also use other times value.It is examined by the multiple groups weight component value of acquisition Survey the motion state of mobile terminal.When the Z-direction acquired within a preset period of time weight component value and meanwhile meet following item Part: the gravity for the Z axis that a) the weight component value of the Z axis acquired gradually becomes smaller according to acquisition sequencing, b) last time acquires The weight component value for the Z axis that component value is negative and c) the weight component value of the Z axis of one acquisition and last time acquire at first The sum of between [- 1,1], then detect the motion state of mobile terminal for overturning.
Step S203: the web page element on current browsing webpage is hidden when confirmation detects mobile terminal turn.
Specifically, when detecting the motion state of mobile terminal in step S202 to overturn, outside mobile browser Shell mold block monitors this overturning result simultaneously and the kernel to mobile browser is notified to need to be implemented on hiding webpage at once Web page element operation, kernel executes hiding operation to web page element.Preferably, on the webpage that kernel detection currently browses The classification of web page element whether be picture, video and/or audio.If the web page element on the webpage currently browsed includes Picture, video and/or audio then set picture, video and/or audio to hide attribute, such as display attribute are arranged Are as follows: " none " hides web page element to realize, while using shared by default picture covering picture, video and/or audio Region is simultaneously stopped the broadcasting of video and/or audio and recording played progress.Using default picture covering picture, video and/or The specific method in region shared by audio, and stop the specific method for playing simultaneously recording played progress of video and/or audio, Technological means well known in the art can be used, which is not described herein again.If the broadcasting of video and/or audio is broadcast using outside Device is put to play, then exits exterior broadcaster while suspending and playing.If video and/or audio not yet plays, do not have to Recording played progress.
In a preferred embodiment, the shell of mobile browser can pass through the API for the system installed in mobile terminal The data of gravity sensor timing sampling are directly monitored and recorded, shifting is quickly detected based on gravity sensing according to described above The data of the method analytical sampling of dynamic terminal overturning, to detect whether mobile terminal is flipped.Occur in mobile terminal The kernel to mobile browser is notified to need to be implemented the operation of the web page element on hiding webpage when overturning at once.
Fig. 3 is the process of a preferred embodiment of the method for the invention that web page element is quickly hidden based on gravity sensing Figure.
In a preferred embodiment as shown in connection with fig. 3, the method for web page element is quickly hidden also based on gravity sensing Include:
Step S204: after hiding the web page element on current browsing webpage, the movement shape of mobile terminal is continued to test State shows the web page element being hidden when confirmation detects mobile terminal turn.
Specifically, detection mobile terminal motion state be overturn method it is same as mentioned above, mobile browser Shell module notifies the kernel to mobile browser to need to be implemented the net on display webpage at once when mobile terminal is flipped The operation of page element, with the presence or absence of the web page element being hidden on the webpage that interior Nuclear monitoring currently browses, if it does, by webpage Attribute of an element is set as display properties.If show that the web page element being hidden is picture, video and/or audio, remove The default picture for covering picture, region shared by video and/or audio, according to the playback progress of record continue to play the video and/ Or audio.When on webpage without embedded included player, exterior broadcaster is called to play.
The method provided in an embodiment of the present invention that web page element is quickly hidden based on gravity sensing, the beneficial effect is that: base In gravity sensing technology it can be quickly detected the overturning of mobile terminal, and detection method according to the present invention detects movement The overturning of terminal is realized by the quick overturning of mobile terminal and is hidden to the quick of web page element, does not have to consider mobile terminal Placement angle, have that simple, speed is fast, high accuracy for examination.It is quick that technical solution of the present invention can allow user to pass through Gesture operation quickly hide/show audio-visual resources to realize, do not need close browsing webpage, avoid in unnecessary mistake Solution and embarrassment, are requiring the crowd that periphery will not be influenced in quiet scene, preferably the user experience is improved.
Fig. 4 is a kind of structural schematic diagram of mobile terminal turn detection device of the invention.
As shown in figure 4, the mobile terminal turn detection device includes: gravity sensor and detection module, wherein gravity Inductor is used for per predetermined time acquisition X-axis, the weight component value and the detection of Y-axis and Z-direction in one section of preset time Module be used for analyze the Z-direction that gravity sensor acquires within a preset period of time weight component value whether simultaneously meet below Condition: the weight for the Z axis that a) the weight component value of the Z axis acquired gradually becomes smaller according to acquisition sequencing, b) last time acquires The weight component for the Z axis that force component value is negative and c) the weight component value of the Z axis of one acquisition and last time acquire at first The sum of value obtains the testing result that mobile terminal is flipped between [- 1,1] when meeting the condition at the same time.
Wherein the preset time is preferably 0.3-0.5 seconds, it is furthermore preferred that the preset time is preferably 0.4 second, it is described Predetermined time is preferably 0.1 second.
The beneficial effect of mobile terminal turn detection device provided in an embodiment of the present invention is: being based on gravity sensing technology energy It is enough quickly detected the overturning of mobile terminal, detection device according to the present invention detects the overturning of mobile terminal, does not have to consider The placement angle of mobile terminal, with simple, speed is fast, high accuracy for examination.
Fig. 5 is the structural schematic diagram of the device of the invention that web page element is quickly hidden based on gravity sensing.Such as Fig. 5 institute Show, the device that web page element is quickly hidden based on gravity sensing includes:
The module for whether being in front stage operation state for detecting mobile browser;
According to above-mentioned mobile terminal turn detection device;With
For hiding the module of the web page element on current browsing webpage.
Preferably, further includes: for stopping the module for playing simultaneously recording played progress of video and/or audio.
Fig. 6 is the structure of a preferred embodiment of the device of the invention that web page element is quickly hidden based on gravity sensing Schematic diagram.
In a preferred embodiment as shown in connection with fig. 6, further includes: for showing the mould for the web page element being hidden Block.
Preferably, further includes: continue to play the module of video and/or audio for the playback progress according to record.
The beneficial effect of the device provided in an embodiment of the present invention that web page element is quickly hidden based on gravity sensing is: being based on Gravity sensing technology can be quickly detected the overturning of mobile terminal, be realized by the quick overturning of mobile terminal to webpage member The quick of element is hidden, without considering the placement angle of mobile terminal, with simple, speed is fast, high accuracy for examination.The present invention Technical solution user can be allowed to pass through efficiently gesture operation quickly hide/show audio-visual resources to realize, do not need simultaneously The webpage for closing browsing, avoids in unnecessary misunderstanding and embarrassment, is requiring that periphery will not be influenced in quiet scene Crowd, preferably the user experience is improved.
A kind of intelligent terminal is additionally provided in an embodiment of the present invention comprising mobile terminal as described above turns over Turn detection device.
A kind of intelligent terminal is additionally provided in an embodiment of the present invention comprising is based on gravity-feed tank as described above The device of web page element should quickly be hidden.
The method of mobile terminal turn is quickly detected provided by the embodiment of the present invention based on gravity sensing and based on gravity The computer program product of the method for web page element, the computer-readable storage including storing program code are quickly hidden in induction Medium, the instruction that said program code includes can be used for executing previous methods method as described in the examples, and specific implementation can be joined See embodiment of the method, details are not described herein.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description Specific work process, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (8)

1. a kind of method for quickly hiding web page element based on gravity sensing characterized by comprising
Whether detection mobile browser is in front stage operation state;
In the case where mobile browser is in front stage operation state using the method for quickly detecting mobile terminal turn based on gravity sensing To detect the motion state of mobile terminal;
When confirmation detects mobile terminal turn, the web page element on current browsing webpage is hidden;
Wherein, the method that mobile terminal turn is quickly detected based on gravity sensing includes:
Using gravity sensor, per predetermined time acquires X-axis, the weight component value of Y-axis and Z-direction in one section of preset time;
When the Z-direction acquired within a preset time weight component value and meanwhile meet the following conditions:
A) the weight component value of the Z axis acquired gradually becomes smaller according to acquisition sequencing;
B) the weight component value of the Z axis of last time acquisition is negative;And
C) at first the weight component value of the Z axis of one acquisition and the sum of weight component value of Z axis of last time acquisition [- 1, 1] between, then confirmation detects mobile terminal turn;
Wherein, it when hiding the web page element on current browsing webpage is picture, video and/or audio, is covered using default picture Region shared by lid picture, video and/or audio is simultaneously stopped the broadcasting of video and/or audio and recording played progress.
2. the method according to claim 1, wherein further include: hiding the webpage member on current browsing webpage After element, the motion state of mobile terminal is continued to test, when confirmation detects mobile terminal turn, shows the webpage being hidden Element.
3. according to the method described in claim 2, it is characterized by further comprising: when the web page element that display is hidden is view When piece, video and/or audio, the default picture in region shared by covering picture, video and/or audio is removed, according to broadcasting for record Degree of putting into continues to play the video and/or audio.
4. method described in one of -3 according to claim 1, which is characterized in that further include: come using the shell of mobile browser Detect the motion state of mobile terminal.
5. a kind of device for quickly hiding web page element based on gravity sensing characterized by comprising
The module for whether being in front stage operation state for detecting mobile browser;
The mobile terminal turn detection device whether being flipped for detecting mobile terminal;With
For hiding the module of the web page element on current browsing webpage, wherein the webpage member on hiding current browsing webpage When element is picture, video and/or audio, region shared by default picture covering picture, video and/or audio is used;
Wherein, the mobile terminal turn detection device includes:
Gravity sensor acquires X-axis, the weight component of Y-axis and Z-direction for the predetermined time per in one section of preset time Value;With
Detection module, for whether simultaneously to analyze the weight component value for the Z-direction that gravity sensor acquires within a preset time Meet the following conditions: a) the weight component value of the Z axis acquired gradually becomes smaller according to acquisition sequencing, b) last time acquires The weight component value of Z axis is negative and the Z axis that c) the weight component value of the Z axis of one acquisition and last time acquire at first The sum of weight component value obtains the detection knot that mobile terminal is flipped between [- 1,1] when meeting the condition at the same time Fruit;
The device that web page element is quickly hidden based on gravity sensing, further includes the broadcasting for stopping video and/or audio And the module of recording played progress.
6. device according to claim 5, which is characterized in that further include: for showing the mould for the web page element being hidden Block.
7. device according to claim 6, which is characterized in that further include: for the playback progress according to record after continued broadcasting Put the module of the video and/or audio.
8. a kind of intelligent terminal, which is characterized in that including the device according to one of claim 5-7.
CN201510613542.0A 2015-09-23 2015-09-23 The method, apparatus and intelligent terminal of web page element are quickly hidden based on gravity sensing Expired - Fee Related CN106547340B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510613542.0A CN106547340B (en) 2015-09-23 2015-09-23 The method, apparatus and intelligent terminal of web page element are quickly hidden based on gravity sensing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510613542.0A CN106547340B (en) 2015-09-23 2015-09-23 The method, apparatus and intelligent terminal of web page element are quickly hidden based on gravity sensing

Publications (2)

Publication Number Publication Date
CN106547340A CN106547340A (en) 2017-03-29
CN106547340B true CN106547340B (en) 2019-11-15

Family

ID=58365714

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510613542.0A Expired - Fee Related CN106547340B (en) 2015-09-23 2015-09-23 The method, apparatus and intelligent terminal of web page element are quickly hidden based on gravity sensing

Country Status (1)

Country Link
CN (1) CN106547340B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111143007A (en) * 2019-12-26 2020-05-12 珠海格力电器股份有限公司 Page control method, device, equipment and medium
CN113448659A (en) * 2020-03-25 2021-09-28 北京京东振世信息技术有限公司 Push message processing method and device
CN112188274B (en) * 2020-09-30 2022-07-12 北京字节跳动网络技术有限公司 Method and device for adjusting video playing progress and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102487416A (en) * 2009-11-30 2012-06-06 美新半导体(无锡)有限公司 System for combining geomagnetic sensor and handheld equipment or mobile equipment
CN103647881A (en) * 2013-12-24 2014-03-19 江苏优控新能源科技有限公司 Method for muting Android mobile phone in static and overturned state
CN103685690A (en) * 2012-09-11 2014-03-26 上海斐讯数据通信技术有限公司 Method for realizing standby mode and mobile terminal
CN104571859A (en) * 2014-12-22 2015-04-29 惠州Tcl移动通信有限公司 Method and terminal for controlling player

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100554484B1 (en) * 2005-05-12 2006-03-03 삼성전자주식회사 Portable terminal with motion detecting function and method of motion detecting thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102487416A (en) * 2009-11-30 2012-06-06 美新半导体(无锡)有限公司 System for combining geomagnetic sensor and handheld equipment or mobile equipment
CN103685690A (en) * 2012-09-11 2014-03-26 上海斐讯数据通信技术有限公司 Method for realizing standby mode and mobile terminal
CN103647881A (en) * 2013-12-24 2014-03-19 江苏优控新能源科技有限公司 Method for muting Android mobile phone in static and overturned state
CN104571859A (en) * 2014-12-22 2015-04-29 惠州Tcl移动通信有限公司 Method and terminal for controlling player

Also Published As

Publication number Publication date
CN106547340A (en) 2017-03-29

Similar Documents

Publication Publication Date Title
CN104965659B (en) A kind of preloading method and device of page info
CN103930885B (en) Measure webpage render time
CN109302619A (en) A kind of information processing method and device
WO2017084308A1 (en) Video playing method and device
CN105635519B (en) Method for processing video frequency, apparatus and system
CN106547340B (en) The method, apparatus and intelligent terminal of web page element are quickly hidden based on gravity sensing
CN104679581B (en) The method and device of running background program
US10440435B1 (en) Performing searches while viewing video content
CN110851710A (en) Novel recommendation method and device
CN105959457B (en) The way of recording and terminal based on dual microphone
JP7331146B2 (en) Subtitle cross-border processing method, device and electronic device
CN106603787B (en) A kind of terminal test method, device and terminal
CN105354288A (en) Image searching method and apparatus based on video contents
CN108196760A (en) A kind of method, apparatus and storage medium that collection processing is carried out using suspension list
CN104822078B (en) The occlusion method and device of a kind of video caption
CN103970427B (en) The method for refreshing and device of Webpage
CN107423058A (en) A kind of interface display method and device
CN103955330B (en) A kind of method for information display and device
WO2018133712A1 (en) Method and device for displaying target object
CN108337571A (en) A kind of barrage information processing method and equipment
CN105867899A (en) Method and device for identifying device
CN109389440A (en) The method, apparatus and electronic equipment of data object information are provided
US20160154545A1 (en) Electronic device and method for managing and displaying application icons
CN102187340B (en) Breakpoint information management method and breakpoint information manager
CN104252353A (en) Control method and device for page voice in browser

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200527

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Alibaba (China) Co.,Ltd.

Address before: 510627 Guangdong city of Guangzhou province Whampoa Tianhe District Road No. 163 Xiping Yun Lu Yun Ping B radio 14 floor tower square

Patentee before: GUANGZHOU UCWEB COMPUTER TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20191115

Termination date: 20200923

CF01 Termination of patent right due to non-payment of annual fee