CN104090944B - Method and device for switching browser window content - Google Patents
Method and device for switching browser window content Download PDFInfo
- Publication number
- CN104090944B CN104090944B CN201410309660.8A CN201410309660A CN104090944B CN 104090944 B CN104090944 B CN 104090944B CN 201410309660 A CN201410309660 A CN 201410309660A CN 104090944 B CN104090944 B CN 104090944B
- Authority
- CN
- China
- Prior art keywords
- webpage
- browser window
- user
- browser
- network address
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/954—Navigation, e.g. using categorised browsing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0483—Interaction with page-structured environments, e.g. book metaphor
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Data Mining & Analysis (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a method and a device for switching browser window content, wherein the method for switching the browser window content comprises the steps of showing a first webpage accessed by a user in a browser window; detecting the operation of a user on the browser window, and switching the content of the browser window when the user is detected to shake the browser window, wherein the switching the content of the browser window comprises: and switching the displayed first webpage into a second webpage, and carrying out skin switching processing on the browser window or changing the layout of the browser window. The method can realize the rapid switching of the contents of different browser windows, is convenient for users to use and improves the user experience.
Description
Technical field
The present invention relates to browser technology field more particularly to a kind of switching method and apparatus of browser window content.
Background technology
On the internet, different websites provides different contents, and user passes through uniform resource locator (Uniform
Resource Locator, URL) access web site contents.User in Query Information, can same type different web sites it
Between switch, made a policy by comparative information, for example, user by search for some information of site search when, it is often necessary in difference
Search website between switch over, it is relatively accurate or complete to be obtained by comparing the search result for either collecting different web sites
The search result in face.
In the prior art, when user needs to switch between the website of same type, such as from a dragnet
When station is switched to another search website, the network address for inputting different web sites in address field is needed to switch over, or browsing
Different search engines is selected in navigation page in device to switch search website.Specifically such as, user can be respectively in address field
Then the network address of middle input Baidu inputs the network address of search dog to open search dog again to open Baidu, alternatively, dividing in navigation page
Not Xuan Ze Baidu and search dog search engine, to realize the switching of different search engines.
But whether user oneself inputs network address, either needs user to input network address or selection using navigation page
Network address can not achieve being switched fast for webpage, operate cumbersome, poor user experience.
Invention content
The present invention is directed to solve at least some of the technical problems in related technologies.
For this purpose, an object of the present invention is to provide a kind of method switching over processing to webpage, this method can
A kind of new method switched over to browser window content is provided, quickly cutting for different browsers windows content may be implemented
It changes, it is user-friendly, promote user experience.
It is another object of the present invention to propose a kind of device switching over processing to webpage.
In order to achieve the above objectives, the switching method for the browser window content that first aspect present invention embodiment proposes, is answered
Browser for being installed on first terminal, including:Show the first webpage of user's access in browser window;Detect user
For the operation of the browser window, when detecting that user shakes the browser window, in the browser window
Appearance switches over processing, wherein switching over processing to the browser window content includes:By first webpage showed
It is switched to the second webpage, the browser window is carried out changing skin processing or changes the layout of the browser window.
The switching method for the browser window content that first aspect present invention embodiment proposes is browsed by being shaken in user
When device window, processing is switched over to the browser window content, since user need to only carry out shake operation, you can realize clear
Look at the switching of device windows content, therefore, being switched fast for different browsers windows content may be implemented in this method, and user is facilitated to make
With promotion user experience.
In order to achieve the above objectives, the switching method for the browser window content that second aspect of the present invention embodiment proposes, is answered
For server corresponding with the browser for being installed on first terminal, including:Receive the browser that the browser is sent, described
The page of the first webpage showed in the browser window obtained when detecting that user shakes the browser window is believed
Breath;Found in the database pre-established with associated second webpage of the page info, to the browser return institute
The network address of the second webpage is stated, so that network address of the browser according to the reception, institute is presented as by first webpage switching
State corresponding second webpage of network address.
The switching method for the browser window content that second aspect of the present invention embodiment proposes is being examined by receiving browser
When measuring user's shake browser window, the page info of the first webpage showed in browser window, according to the first webpage
Page info searches the second webpage, and the network address of the second webpage is issued browser, so that browser is according to the network address received,
The switching of first webpage is presented as corresponding second webpage of the network address, it, can due to the only shake operation that user carries out
It is user-friendly to realize being switched fast for different web pages, promote user experience.
In order to achieve the above objectives, the device that processing is switched over to webpage that third aspect present invention embodiment proposes, is answered
Browser for being installed on first terminal, including:Display module, first for showing user's access in browser window
Webpage;Processing module is directed to the operation of the browser window for detecting user, is detecting user's shake browser
When window, processing is switched over to the browser window content, wherein processing is switched over to the browser window content
Including:First webpage showed is switched to the second webpage, the browser window is carried out changing skin processing or be changed
The layout of the browser window.
The device that processing is switched over to webpage that third aspect present invention embodiment proposes is browsed by being shaken in user
When device window, processing is switched over to the browser window content, the only shake operation carried out due to user, you can realize
Being switched fast for different browsers windows content may be implemented in the switching of browser window content, therefore, this method, facilitates user
It uses, promotes user experience.
In order to achieve the above objectives, the device that processing is switched over to webpage that fourth aspect present invention embodiment proposes, is answered
For server corresponding with the browser for being installed on first terminal, including:Receiving module is sent for receiving the browser
, first showed in the browser window that the browser is obtained when detecting that user shakes the browser window
The page info of webpage;Processing module, for being found in the database pre-established and the page info associated
Two webpages return to the network address of second webpage to the browser, so that network address of the browser according to the reception, it will
The first webpage switching is presented as corresponding second webpage of the network address.
The device that processing is switched over to webpage that fourth aspect present invention embodiment proposes is being examined by receiving browser
When measuring user's shake browser window, the page info of the first webpage showed in browser window, according to the first webpage
Page info searches the second webpage, and the network address of the second webpage is issued browser, and browser can be made according to the net received
The switching of first webpage is presented as corresponding second webpage of the network address by location, the only shake operation carried out due to user, you can
Realize the switching of browser window content, therefore, being switched fast for different web pages may be implemented in this method, user-friendly,
Promote user experience.
In order to achieve the above objectives, the client device that fifth aspect present invention embodiment proposes, including:Shell, processor,
Memory, circuit board and power circuit, wherein circuit board is placed in the space interior that shell surrounds, and processor and memory are set
It sets on circuit boards;Power circuit, for being each circuit or the device power supply of client device;Memory is for storing and can hold
Line program code;Processor is run and executable program code pair by reading the executable program code stored in memory
The program answered, for executing following steps:Show the first webpage of user's access in browser window;Detection user is directed to
The operation of the browser window, detect user shake the browser window when, to the browser window content into
Row hand-off process, wherein switching over processing to the browser window content includes:By the first webpage switching showed
For the second webpage, the browser window is carried out changing skin processing or changes the layout of the browser window.
Fifth aspect present invention embodiment propose client device, by user shake browser window when, to institute
It states browser window content and switches over processing, the only shake operation carried out due to user, you can realize in browser window
Being switched fast for different browsers windows content may be implemented in the switching of appearance, therefore, this method, user-friendly, is promoted and is used
It experiences at family.
In order to achieve the above objectives, the server that sixth aspect present invention embodiment proposes, including:Shell, processor, storage
Device, circuit board and power circuit, wherein circuit board is placed in the space interior that shell surrounds, and processor and memory setting exist
On circuit board;Power circuit, for being each circuit or the device power supply of server;Memory is for storing executable program generation
Code;Processor runs journey corresponding with executable program code by reading the executable program code stored in memory
Sequence, for executing following steps:It receives the browser that the browser is sent, described and is detecting user's shake browsing
The page info of the first webpage showed in the browser window obtained when device window;It is looked into the database pre-established
Find with associated second webpage of the page info, the network address of second webpage is returned to the browser, so that described
First webpage switching is presented as corresponding second webpage of the network address by browser according to the network address of the reception.
The server that sixth aspect present invention embodiment proposes is detecting user's shake browser by receiving browser
When window, the page info of the first webpage showed in browser window searches the second net according to the page info of the first webpage
Page, and the network address of the second webpage is issued into browser, browser can be made according to the network address received, the first webpage is switched into exhibition
It is now corresponding second webpage of the network address, can be when user shake browser window, browser carries out the webpage of displaying
Switching, the only shake operation carried out due to user, you can realize the switching of browser window content, therefore, this method can be with
Realize being switched fast for different web pages, it is user-friendly, promote user experience.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description
Obviously, or practice through the invention is recognized.
Description of the drawings
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, wherein:
Fig. 1 a are the flow diagrams of the switching method for the browser window content that one embodiment of the invention proposes;
Fig. 1 b are the flow diagrams of the switching method for the browser window content that one embodiment of the invention proposes;
Fig. 2 is the flow diagram of the switching method for the browser window content that another embodiment of the present invention proposes;
Fig. 3 is to judge whether user shakes a kind of concrete mode flow of the method for browser window in the embodiment of the present invention
Schematic diagram;
Fig. 4 is acquisition mouse track schematic diagram in the embodiment of the present invention;
Fig. 5 is the acute angle schematic diagram that inflection point is formed in the embodiment of the present invention;
Fig. 6 is the structural schematic diagram of the switching device for the browser window content that another embodiment of the present invention proposes;
Fig. 7 is the structural schematic diagram of the switching device for the browser window content that another embodiment of the present invention proposes;
Fig. 8 is the structural schematic diagram of the switching device for the browser window content that another embodiment of the present invention proposes.
Specific implementation mode
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and is only used for explaining the present invention, and is not considered as limiting the invention.On the contrary, this
The embodiment of invention includes all changes fallen within the scope of the spiritual and intension of attached claims, modification and is equal
Object.
Fig. 1 a are the flow diagram of the switching method for the browser window content that one embodiment of the invention proposes, this method
The browser for being installed on first terminal is can be applied to, this method includes:
S101:Show the first webpage of user's access in browser window;
Firstly the need of explanation, in embodiments of the present invention, the browser window refers to user in first terminal
The client window that browser rear line shows is opened, which includes that the control of browser shows region and page exhibition
Existing region, wherein control show region for show browser toolbar, address field, search column, label page head show column with
And the contents such as various control icons, webpage representation zone user show the contents such as the page of webpage of user's opening.
Wherein, for user when being surfed the Internet using browser, client can show net by browser window to user
Page.
First webpage can refer to the webpage that user clicks the browser acquiescence shown after browser icon, alternatively, first
Webpage may also mean that user inputs the webpage of the user's selection shown after network address in browser address bar, and the first webpage may be used also
To be that user clicks another webpage entered after some link in a webpage.
S102:The operation that user is directed to the browser window is detected, is detecting user's shake browser window
When, processing is switched over to the browser window content, wherein processing packet is switched over to the browser window content
It includes:
First webpage showed is switched to the second webpage, the browser window is carried out changing skin processing or be changed
Become the layout of the browser window.
After browser shows the first webpage, user may need to switch over processing to browser window content, switching
Processing may include by first webpage showed be switched to the second webpage, the browser window change skin processing,
Change any one of the layout of the browser window.
Specifically carrying out which kind of switching can pre-set, for example, can pre-set in a browser when shake browsing
It carries out changing skin processing when device window, then when detecting that user shakes browser window, the first webpage is carried out to change skin processing.
Alternatively, when it is switching webpage to pre-set, then when detecting that user shakes browser window, the first webpage is switched to
Another webpage.Alternatively, when it is to change the layout of browser window to pre-set, then when detecting user's shake browser window
When mouth, change the layout of browser window, the change of the layout of browser window can specifically include:Change the control of browser
Pattern and/or position.
The present embodiment by user shake browser window when, processing is switched over to the browser window content,
The only shake operation carried out due to user, you can realize the switching of browser window content, therefore, this method may be implemented not
It is user-friendly with being switched fast for browser window content, promote user experience.
The above-mentioned description for giving end side, correspondingly, referring to Fig. 1 b, another embodiment of the present invention proposes a kind of browser
The switching method of windows content, this method can be applied to server corresponding with the browser for being installed on first terminal, the party
Method includes:
S111:The browser that the browser is sent, described is received when detecting that user shakes the browser window
The page info of the first webpage showed in the browser window obtained;
Wherein, the page info of server reception may include:Network address and/or web page title.
The page info is the page info of the first webpage, and the first webpage is the webpage that the user of browser-presented accesses,
First webpage can be specifically the webpage that user opens browser acquiescence displaying after browser, alternatively, user is in browser address
The webpage that browser is opened after input network address in column, after the first webpage can also be that user clicks some link in a webpage
Another webpage entered.
Page info is that browser is sent to server after detecting that user shakes browser window.
S112:Found in the database pre-established with associated second webpage of the page info, to described clear
Device of looking at returns to the network address of second webpage, so that network address of the browser according to the reception, first webpage is cut
It changes and is presented as corresponding second webpage of the network address.
Wherein, can refer to identical with the type of the first webpage with associated second webpage of the page info, for example, the
One webpage and the second webpage are all searching class webpages, and specific such as the first webpage is the webpage of Baidu, and the second webpage can refer to searching
The webpage etc. of dog.It is understood that associated webpage can also be according to the webpage of the first webpage recommending, such as the first webpage
When the webpage of Shi Baidu, the webpage that can pre-set recommendation is the webpage of youku.com.Specifically, the webpage of same type and/or
The webpage of recommendation can pre-save in the database.In addition, specific second webpage is the website with the first webpage same type
And/or the webpage recommended, it can also pre-set, to search the second webpage according to the page info of the first webpage.
When it is multiple to be found in the database with the webpage of the first Webpage correlation, can be selected from multiple webpage
One the second webpage of conduct, wherein the selected webpage is:
Randomly selected, user's frequency of use is highest described in other described webpages, alternatively, highest priority.
Specifically, the case where for randomly choosing, can be arranged random algorithm, with from multiple with the first Webpage correlation net
One webpage of random selection is as the second webpage in page;Alternatively,
The case where for frequency of use highest, can also record making for each user of correspondence of each webpage in the database
With frequency, the highest webpage of active user's frequency of use can be found in multiple webpages later as the second webpage;Alternatively,
The case where for highest priority, can pre-set the priority of each webpage, and record is every in the database
The priority of a webpage can find the webpage of highest priority as the second webpage in multiple webpages later.
After whois lookup is to the second webpage, the network address of the second webpage can be sent to browser, for example, by second
Browser is issued in the addresses URL of webpage, and browser can open the second webpage according to the network address, realizes the webpage that browser shows
It is switched to the second webpage from the first webpage.
What the present embodiment was showed when detecting that user shakes browser window in browser window by receiving browser
The page info of first webpage searches the second webpage according to the page info of the first webpage, and the network address of the second webpage is issued
Browser, so that browser is presented as corresponding second webpage of the network address according to the network address received, by the switching of the first webpage,
Due to the only shake operation that user carries out, being switched fast for different web pages may be implemented, it is user-friendly, promote user's body
It tests.
Fig. 2 is the flow diagram of the switching method for the browser window content that another embodiment of the present invention proposes, the party
Method includes:
S21:Browser shows the first webpage of user's access in browser window.
Wherein, for user when being surfed the Internet using browser, client can show net by browser window to user
Page.
First webpage can refer to the webpage that user clicks the browser acquiescence shown after browser icon, alternatively, first
Webpage may also mean that user inputs the webpage of the user's selection shown after network address in browser address bar, and the first webpage may be used also
To be that user clicks another webpage entered after some link in a webpage.
S22:Browser judges whether user shakes browser window, if so, execute S23, otherwise repeat S21 and its
Subsequent step.
Wherein, different according to the carrier where browser, judge user whether shake browser window mode it is also different.
Specifically, the detection user is directed to the operation of the browser window, including:
According to user's mouse track that mobile mouse generates in browser window, detect that user shakes browser window
Mouthful;Alternatively,
Shake according to user to the first terminal detects that user shakes browser window.
Specifically, when user uses browser on PC (Personal Computer, PC), it can basis
User's mouse track that mobile mouse generates in browser window, detects that user shakes browser window, wherein Yong Hu
Mobile mouse can specifically refer to user and drag browser window in browser window, namely pin left mouse button movement mouse,
So that cursor of mouse moves in browser window, specifically which region movement in browser window, the present invention, which is not done, to be had
Body limits, and can also be the page presentation in browser for example, cursor of mouse can be moved in the control exposure region of browser
Move cursor of mouse in region.
When carrier is mobile device, namely when user uses browser on the mobile apparatus, according to user to movement
The shake of equipment detects that user shakes browser window.Wherein, gyroscope can be set in mobile device, when gyroscope
When rotation angle is more than that the number of predetermined threshold value is more than preset times, it can detect that user shakes browser window.
Referring to Fig. 3, judge whether user shakes browser window and may include:
S31:The tracing point of mouse track when recording user's continuous moving mouse;
In embodiments of the present invention, by taking user drags browser window as an example, browsing can be clicked detecting mouse
The predeterminable area of device window and when pressing left mouse button, the tracing point of start recording mouse is until user unclamps left mouse button
Only.
The predeterminable area of browser window includes but not limited to:Title bar.
The tracing point of mouse can use coordinate representation, the coordinate of tracing point that can form following array:
Array [1]={ x1, y1 }
Array [2]={ x2, y2 }
Array [...]={ x..., y... }
Array [n]={ xn, yn }
Wherein, array [1] is mouse position coordinate when starting to drag browser window, that is, detects mouse point
Mouse position coordinate when hitting the predeterminable area of browser window and pressing left mouse button, array [n] are to detect a mouse left side
Mouse position coordinate when key is released, the numerical value array [...] among array be start to drag browser window it is left to mouse
The mouse position coordinate that key records during being released.Specific record time interval can be pre-set.
S32:The inflection point of the mouse track is obtained according to the tracing point;
Mouse track can be obtained by the tracing point of record, as shown in figure 4, by being attached to adjacent track point,
It can obtain mouse track.
After obtaining mouse track, so that it may to obtain inflection point, as shown in figure 4, inflection point is indicated with 1,2,3,4,5,6 respectively.
S33:When being more than predetermined threshold value as the acute angle number in the angle on vertex using the inflection point in the mouse track,
Detect that user shakes browser window.
After obtaining inflection point, it can obtain using the inflection point as the angle on vertex, the acute angle in the angle may further be obtained,
It can be as shown in figure 5, referring to Fig. 5, to give the acute angle of inflection point a, b, c composition by the acute angle in the angle on vertex of inflection point.
Predetermined threshold value is, for example, 3, then when the number of the acute angle of the inflection point of mouse track composition is more than 3, detects
User shakes browser window.
S23:Browser obtains the page info of the first webpage, and the page info of first webpage is sent to service
Device.
Page info may include:Network address and/or web page title.
Network address is, for example, the address uniform resource locator (Uniform Resource Locator, URL).
S24:Server is found and associated second webpage of the page info in the database pre-established.
Specifically, after server receives the page info of the first webpage, it can search in the database and the page is believed
The network address of other associated webpages is ceased, and selects a network address as the second webpage from the network address of other associated webpages
Network address.
By taking page info is network address as an example, server can pre-establish network address group, and each network address group includes mutually similar
Other network address, for example, the network address of the network address of Baidu, the network address searched and search dog forms a network address group, when server receives
When the network address of Baidu, so that it may to obtain the network address of other webpages from the network address group of Baidu, as obtained the network address searched and search dog
Network address.
Optionally, server can also pre-establish network address and recommend the correspondence of network address with it, such as establish Baidu
The correspondence of network address and the network address of youku.com can find the network address of youku.com when server receives the network address of Baidu.
Specific server is to look for generic network address or recommends network address that can pre-set.In addition, specific similar
Other network address recommends network address that can pre-set, and is not limited to above-mentioned network address.
After the network address for obtaining other associated webpages, a network address can be selected according to preset algorithm, including but unlimited
In:Randomly choose a network address;The highest network address of user's frequency of use is selected, it can be with pre-recorded each network address in the case of this
User's frequency of use;The network address for selecting highest priority, can pre-set the priority of each network address in the case of this.
Further, server can carry out the network address in each URL library the operation such as to add, modify or delete.Example
Such as, when generic website increases, new network address can be increased in time, more selected to user.
In addition, server can also in time modify after network address Parameters variation, for example, the network address when Baidu changes
Afterwards, user may be unaware that, cannot open Baidu's webpage by mode input by user at this time, still, if server into
Row network address time update can still ensure to be presented to user Baidu webpage.
In addition, server can also increase new classification, for example, increasing with Websites quantity, it is possible that new class
Other website can be applicable in the variation of website by the increase of server.
S25:Browser receives the network address for second webpage that the server is sent.
For selecting generic network address, it is assumed that current web page is Baidu, then the network address that server is sent can be
The network address searched, the i.e. network address of the second webpage refer to the network address searched.
S26:Browser is presented as the network address corresponding the according to the network address of the reception, by first webpage switching
Two webpages.
For example, showing the webpage searched, realization is switched to from Baidu's webpage searches webpage.
It should be noted that the present embodiment for being switched to another webpage, optionally, is browsed detecting that user shakes
The first webpage can also be carried out when device window to change skin processing, at this point, after detecting that user shakes browser window, Ke Yixiang
Server sends the message for being used for asking to change skin, and browser carries out changing skin processing according to the new skin that server returns later.
Alternatively, the layout of browser window can also be changed when detecting that user shakes browser window, such as change in browser
The pattern of control and/or position.
The present embodiment is by when user shakes browser window, carrying out the switching of browser window content, due to user
The only shake operation carried out, can realize being switched fast for browser window content, can be user-friendly, promote user
Experience.The present embodiment is inputted or is selected without user, can more be held by the way that the operation of network address will be selected to be completed by server
The situation of change for easily adapting to website, provides more and newer selection to the user.
Fig. 6 is the structural schematic diagram of the switching device for the browser window content that another embodiment of the present invention proposes, can be with
Applied to the browser for being installed on first terminal, which includes display module 61 and processing module 62.
Display module 61 is used to show in browser window the first webpage of user's access.
Wherein, for user when being surfed the Internet using browser, client can show net by browser window to user
Page.
Processing module 62 is used to detect the operation that user is directed to the browser window, is detecting that it is described clear that user shakes
Look at device window when, processing is switched over to the browser window content, wherein switch over to the browser window content
Processing includes:
First webpage showed is switched to the second webpage, the browser window is carried out changing skin processing or be changed
Become the layout of the browser window.
After browser shows the first webpage, user may need to switch over processing to browser window content, switching
Processing may include any one of the above.
Specifically carrying out which kind of switching can pre-set, for example, can pre-set in a browser when shake browsing
It carries out changing skin processing when device window, then when detecting that user shakes browser window, the first webpage is carried out to change skin processing.
Alternatively, when it is switching webpage to pre-set, then when detecting that user shakes browser window, the first webpage is switched to
Another webpage.Alternatively, when it is to change the layout of browser window to pre-set, then when detecting user's shake browser window
When mouth, change the layout of browser window, the change of the layout of browser window can specifically include:Change the control of browser
Pattern and/or position.
In one embodiment, referring to Fig. 7, the processing module 62 includes being directed to the browser window for detecting user
Operation first unit 621, the first unit 621 is specifically used for:
According to user's mouse track that mobile mouse generates in browser window, detect that user shakes browser window
Mouthful;Alternatively, the shake according to user to the first terminal, detects that user shakes browser window.
In one embodiment, when the first unit 621 is used for the mobile mouse generation in browser window according to user
Mouse track, detect user shake browser window when, the first unit 621 includes:
First subelement 6211, the tracing point of mouse track when for recording user's continuous moving mouse;
Specifically, by taking user drags browser window as an example, the pre- of browser window can be clicked detecting mouse
If region and when pressing left mouse button, the tracing point of start recording mouse.
The predeterminable area of browser window includes but not limited to:Title bar.
The tracing point of mouse can use coordinate representation, the coordinate of tracing point that can form following array:
Array [1]={ x1, y1 }
Array [2]={ x2, y2 }
Array [...]={ x..., y... }
Array [n]={ xn, yn }
Wherein, array [1] is mouse position coordinate when starting to drag browser window, that is, detects mouse point
Mouse position coordinate when hitting the predeterminable area of browser window and pressing left mouse button, array [n] are to detect a mouse left side
Mouse position coordinate when key is released, the numerical value array [...] among array be start to drag browser window it is left to mouse
The mouse position coordinate that key records during being released.Specific record time interval can be pre-set.
Second subelement 6212, the inflection point for obtaining the mouse track according to the tracing point;
Mouse track can be obtained by the tracing point of record, as shown in figure 4, by being attached to adjacent track point,
It can obtain mouse track.
After obtaining mouse track, so that it may to obtain inflection point, as shown in figure 4, inflection point is indicated with 1,2,3,4,5,6 respectively.
Third subelement 6213 is used in the mouse track using the inflection point as the acute angle number in the angle on vertex
When more than predetermined threshold value, detect that user shakes browser window.
After obtaining inflection point, it can obtain using the inflection point as the angle on vertex, the acute angle in the angle may further be obtained,
It can be as shown in figure 5, referring to Fig. 5, to give the acute angle of inflection point a, b, c composition by the acute angle in the angle on vertex of inflection point.
Predetermined threshold value is, for example, 3, then when the number of the acute angle of the inflection point of mouse track composition is more than 3, detects
User shakes browser window.
In one embodiment, referring to Fig. 7, the processing module 62 includes for first webpage showed to be switched to
The second unit 622 of second webpage, the second unit 622 are specifically used for:
Obtain the page info of first webpage;
The page info of first webpage is sent to server, so that the server is in the database pre-established
In find with associated second webpage of the page info, and return to the network address of second webpage;
Receive the network address for second webpage that the server returns;
According to the network address of the reception, first webpage switching is presented as corresponding second webpage of the network address.
In one embodiment, second webpage is identical as the type of the first webpage;The page info includes:Net
Location and/or web page title, so that the server finds the page with first webpage in the database pre-established
Information belongs to the second webpage of same type group.
It should be noted that the present embodiment for being switched to another webpage, optionally, is browsed detecting that user shakes
The first webpage can also be carried out when device window to change skin processing, at this point, after detecting that user shakes browser window, Ke Yixiang
Server sends the message for being used for asking to change skin, and browser carries out changing skin processing according to the new skin that server returns later.
Alternatively, the layout of browser window can also be changed when detecting that user shakes browser window, such as change in browser
The pattern of control and/or position.
The present embodiment is by when user shakes browser window, carrying out the switching of browser window content, due to user
The only shake operation carried out, can be user-friendly, promotes user experience.The present embodiment will be by that will select the operation of network address
It is completed by server, inputs or select without user, the situation of change of website can be more easily adapted to conform to, provided to the user more
Mostly with newer selection.
Fig. 8 is the structural schematic diagram of the switching device for the browser window content that another embodiment of the present invention proposes, the dress
It sets and can be applied to server corresponding with the browser for being installed on first terminal, which includes receiving module 81 and processing
Module 82.
Receiving module 81 is used to receive the browser that the browser is sent, described and is detecting user's shake browsing
The page info of the first webpage showed in the browser window obtained when device window;
Processing module 82 for found in the database pre-established with associated second webpage of the page info,
The network address of second webpage is returned to the browser, so that network address of the browser according to the reception, by described
The switching of one webpage is presented as corresponding second webpage of the network address.
In one embodiment, the processing module is specifically used for:
Find other associated webpages of the page info in the database pre-established, and from it is described it is associated its
He selects a webpage as the second webpage in webpage;Wherein, the selected webpage is:
Randomly selected, user's frequency of use is highest described in other described webpages, alternatively, highest priority.
In one embodiment, second webpage is identical as the type of the first webpage;The page info includes:Net
Location and/or web page title;
The processing module 82 is specifically used for:In the page of the database lookup pre-established in first webpage
Information belongs to the second webpage of same type group.
Specifically, after server receives the page info of the first webpage, it can search in the database and the page is believed
The network address of other associated webpages is ceased, and selects a network address as the second webpage from the network address of other associated webpages
Network address.
The present embodiment receives browser by receiving module and detects that is sent when user shakes browser window shows
The second webpage is searched in the page info of the first webpage of browser window, and according to the page info of the first webpage, and by the
The network address of two webpages issues browser, so that browser is presented as the net according to the network address received, by the switching of the first webpage
Due to the only shake operation that user carries out being switched fast for different web pages may be implemented, side in corresponding second webpage in location
Just user uses, and promotes user experience.
The embodiment of the present invention additionally provides a kind of client device, which includes shell, processor, storage
Device, circuit board and power circuit, wherein circuit board is placed in the space interior that shell surrounds, and processor and memory setting exist
On circuit board;Power circuit, for being each circuit or the device power supply of client device;Memory is for storing executable journey
Sequence code;Processor is corresponding with executable program code to run by reading the executable program code stored in memory
Program, for executing following steps:
S101’:Show the first webpage of user's access in browser window;
S102’:The operation that user is directed to the browser window is detected, is detecting user's shake browser window
When, processing is switched over to the browser window content, wherein processing packet is switched over to the browser window content
It includes:
First webpage showed is switched to the second webpage, the browser window is carried out changing skin processing or be changed
Become the layout of the browser window.
The present embodiment by user shake browser window when, processing is switched over to the browser window content,
Due to the only shake operation that user carries out, being switched fast for different browsers windows content may be implemented, it is user-friendly,
Promote user experience.
The embodiment of the present invention additionally provides a kind of server, which includes shell, processor, memory, circuit board
And power circuit, wherein circuit board is placed in the space interior that shell surrounds, and processor and memory setting are on circuit boards;
Power circuit, for being each circuit or the device power supply of server;Memory is for storing executable program code;Processor
Program corresponding with executable program code is run by reading the executable program code stored in memory, for holding
Row following steps:
S111’:The browser that the browser is sent, described is received when detecting that user shakes the browser window
The page info of the first webpage showed in the browser window obtained;
S112’:Found in the database pre-established with associated second webpage of the page info, to described clear
Device of looking at returns to the network address of second webpage, so that network address of the browser according to the reception, first webpage is cut
It changes and is presented as corresponding second webpage of the network address.
The present embodiment passes through, and receiving module receives browser and detects that is sent when user shakes browser window shows
The second webpage is searched in the page info of the first webpage of browser window, and according to the page info of the first webpage, and by the
The network address of two webpages issues browser, so that browser is presented as the net according to the network address received, by the switching of the first webpage
Due to the only shake operation that user carries out being switched fast for different web pages may be implemented, side in corresponding second webpage in location
Just user uses, and promotes user experience.
It should be noted that in the description of the present invention, term " first ", " second " etc. are used for description purposes only, without
It can be interpreted as indicating or implying relative importance.In addition, in the description of the present invention, unless otherwise indicated, the meaning of " multiple "
It is two or more.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable
Sequence, include according to involved function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
It should be appreciated that each section of the present invention can be realized with hardware, software, firmware or combination thereof.Above-mentioned
In embodiment, software that multiple steps or method can in memory and by suitable instruction execution system be executed with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit application-specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that realize all or part of step that above-described embodiment method carries
Suddenly it is that relevant hardware can be instructed to complete by program, the program can be stored in a kind of computer-readable storage medium
In matter, which includes the steps that one or a combination set of embodiment of the method when being executed.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, it can also
That each unit physically exists alone, can also two or more units be integrated in a module.Above-mentioned integrated mould
The form that hardware had both may be used in block is realized, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized in the form of software function module and when sold or used as an independent product, can also be stored in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any
One or more embodiments or example in can be combined in any suitable manner.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example
Property, it is not considered as limiting the invention, those skilled in the art within the scope of the invention can be to above-mentioned
Embodiment is changed, changes, replacing and modification.
Claims (12)
1. a kind of switching method of browser window content, which is characterized in that applied to the browser for being installed on first terminal, packet
It includes:
Show the first webpage of user's access in browser window;
The operation that user is directed to the browser window is detected, when detecting that user shakes the browser window, to described
Browser window content switches over processing, wherein switching over processing to the browser window content includes:By the exhibition
The first existing webpage is switched to the second webpage;
It is described that first webpage showed is switched to the second webpage, including:Obtain the page info of first webpage;It will
The page info of first webpage is sent to server so that the server found in the database pre-established with
Associated second webpage of page info, and return to the network address of second webpage;Receive the described of the server return
The network address of second webpage;According to the network address of the reception, first webpage switching is presented as the network address corresponding second
Webpage, second webpage is identical as the type of the first webpage, by described second with the first webpage same type
Webpage pre-saves in the database;Wherein, when finding the net with first Webpage correlation in the database
Page be it is multiple when, the server selected from multiple webpages one as second webpage, wherein the webpage of selection be with
Highest priority in the webpage or the highest webpage of multiple netpage user's frequency of use or multiple webpages of machine selection
Webpage.
2. according to the method described in claim 1, it is characterized in that, the detection user is directed to the behaviour of the browser window
Make, including:
According to user's mouse track that mobile mouse generates in browser window, detect that user shakes browser window;Or
Person,
Shake according to user to the first terminal detects that user shakes browser window.
3. according to the method described in claim 2, it is characterized in that, the mobile mouse production in browser window according to user
Raw mouse track detects that user shakes browser window, including:
The tracing point of mouse track when recording user's continuous moving mouse;
The inflection point of the mouse track is obtained according to the tracing point;
When being more than predetermined threshold value as the acute angle number in the angle on vertex using the inflection point in the mouse track, use is detected
Browser window is shaken at family.
4. according to the method described in claim 1, it is characterized in that,
The page info includes:Network address and/or web page title, so that the server is searched in the database pre-established
The second webpage of same type group is belonged to the page info with first webpage.
5. a kind of switching method of browser window content, which is characterized in that applied to the browser that is installed on first terminal
Corresponding server, including:
It receives described in the browser that the browser is sent, described obtains when detecting that user shakes the browser window
The page info of the first webpage showed in browser window;
Found in the database pre-established with associated second webpage of the page info, to the browser return institute
The network address of the second webpage is stated, so that network address of the browser according to the reception, institute is presented as by first webpage switching
State corresponding second webpage of network address, wherein second webpage is identical as the type of the first webpage, will be with first net
Second webpage of page same type pre-saves in the database;When finding in the database and described
The webpage of one Webpage correlation be it is multiple when, selected from multiple webpages one as second webpage, wherein the webpage of selection
It is that priority is most in randomly selected webpage or the highest webpage of multiple netpage user's frequency of use or multiple webpages
High webpage.
6. according to the method described in claim 5, it is characterized in that,
The page info includes:Network address and/or web page title;
Described found in the database pre-established include with associated second webpage of the page info:
The second of same type group is belonged in page info of the database lookup pre-established in first webpage
Webpage.
7. a kind of switching device of browser window content, which is characterized in that applied to the browser for being installed on first terminal, packet
It includes:
Display module, the first webpage for showing user's access in browser window;
Processing module is directed to the operation of the browser window for detecting user, is detecting user's shake browser
When window, processing is switched over to the browser window content, wherein processing is switched over to the browser window content
Including:First webpage showed is switched to the second webpage;
The processing module includes the second unit for first webpage showed to be switched to the second webpage, and described second
Unit is specifically used for:Obtain the page info of first webpage;The page info of first webpage is sent to server,
So that the server found in the database pre-established with associated second webpage of the page info, and return to institute
State the network address of the second webpage;Receive the network address for second webpage that the server returns;It, will according to the network address of the reception
The first webpage switching is presented as corresponding second webpage of the network address, the type of second webpage and first webpage
It is identical, second webpage with the first webpage same type is pre-saved in the database;Wherein, when in institute
State found in database with the webpage of first Webpage correlation be it is multiple when, selected from multiple webpages one as described in
Second webpage, wherein the webpage of selection is randomly selected webpage or multiple highest nets of netpage user's frequency of use
The webpage of highest priority in page or multiple webpages.
8. device according to claim 7, which is characterized in that the processing module includes for detecting user for described
The first unit of the operation of browser window, the first unit are specifically used for:
According to user's mouse track that mobile mouse generates in browser window, detect that user shakes browser window;Or
Person,
Shake according to user to the first terminal detects that user shakes browser window.
9. device according to claim 8, which is characterized in that when the first unit is used for according to user in browser window
The mouse track that mobile mouse generates in mouthful, when detecting that user shakes browser window, the first unit includes:
First subelement, the tracing point of mouse track when for recording user's continuous moving mouse;
Second subelement, the inflection point for obtaining the mouse track according to the tracing point;
Third subelement is used in the mouse track using the inflection point be the acute angle number in the angle on vertex to be more than to preset
When threshold value, detect that user shakes browser window.
10. device according to claim 7, which is characterized in that
The page info includes:Network address and/or web page title, so that the server is searched in the database pre-established
The second webpage of same type group is belonged to the page info with first webpage.
11. a kind of switching device of browser window content, which is characterized in that applied to the browser that is installed on first terminal
Corresponding server, including:
Receiving module is detecting user's shake browser window for receiving the browser that the browser is sent, described
The page info of the first webpage showed in the browser window obtained when mouth;
Processing module, for found in the database pre-established with associated second webpage of the page info, to institute
The network address that browser returns to second webpage is stated, so that network address of the browser according to the reception, by first net
Page switching is presented as corresponding second webpage of the network address, wherein and second webpage is identical as the type of the first webpage,
Second webpage with the first webpage same type is pre-saved in the database;
When it is multiple to be found in the database with the webpage of first Webpage correlation, the processing module is from multiple
Selected in webpage one as second webpage, wherein the webpage of selection is in randomly selected webpage or multiple webpages
The webpage of highest priority in the highest webpage of user's frequency of use or multiple webpages.
12. according to the devices described in claim 11, which is characterized in that
The page info includes:Network address and/or web page title;
The processing module is specifically used for:It is same with the page info of first webpage in the database lookup pre-established
Belong to the second webpage of same type group.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410309660.8A CN104090944B (en) | 2014-06-30 | 2014-06-30 | Method and device for switching browser window content |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410309660.8A CN104090944B (en) | 2014-06-30 | 2014-06-30 | Method and device for switching browser window content |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104090944A CN104090944A (en) | 2014-10-08 |
CN104090944B true CN104090944B (en) | 2018-09-11 |
Family
ID=51638660
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410309660.8A Active CN104090944B (en) | 2014-06-30 | 2014-06-30 | Method and device for switching browser window content |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104090944B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104468718B (en) * | 2014-11-07 | 2018-11-20 | 华为技术有限公司 | A kind of interconnected method of information, apparatus and system |
CN106372076B (en) * | 2015-07-22 | 2021-10-15 | 腾讯科技(深圳)有限公司 | Method and device for switching web pages in browser |
CN107229405A (en) | 2016-03-25 | 2017-10-03 | 广州市动景计算机科技有限公司 | Method, equipment, browser and electronic equipment for providing web page contents |
CN105930341A (en) * | 2016-04-01 | 2016-09-07 | 乐视控股(北京)有限公司 | Method and apparatus for switching web pages |
CN106991110B (en) * | 2016-10-12 | 2020-06-26 | 阿里巴巴集团控股有限公司 | Webpage switching method and device |
CN110955544A (en) * | 2019-12-18 | 2020-04-03 | 杭州安恒信息技术股份有限公司 | Method, device and system for detecting usability of web system |
CN116311209B (en) * | 2023-03-28 | 2024-01-19 | 北京匠数科技有限公司 | Window detection method, system and electronic equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2000924A1 (en) * | 2007-06-04 | 2008-12-10 | Koninklijke KPN N.V. | Electronic device with web browser |
CN102332024A (en) * | 2011-09-30 | 2012-01-25 | 奇智软件(北京)有限公司 | Touch control type browser for portable mobile terminal |
CN102662596A (en) * | 2012-04-19 | 2012-09-12 | 腾讯科技(深圳)有限公司 | Interacting method, device and system for mobile terminal browser |
CN103389867A (en) * | 2013-07-03 | 2013-11-13 | 珠海金山办公软件有限公司 | Method and system for switching selected targets of mobile device |
CN103500047A (en) * | 2013-09-23 | 2014-01-08 | 百度在线网络技术(北京)有限公司 | Method, device and mobile terminal for controlling interactive element in mobile terminal |
CN103838498A (en) * | 2014-03-05 | 2014-06-04 | 深圳市深信服电子科技有限公司 | Method and device for realizing window switching |
CN103885685A (en) * | 2012-12-24 | 2014-06-25 | 腾讯科技(深圳)有限公司 | Method and device for processing pages |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101471990A (en) * | 2007-12-24 | 2009-07-01 | 英华达(南京)科技有限公司 | Mobile communication equipment and method for switching web page browsing display |
-
2014
- 2014-06-30 CN CN201410309660.8A patent/CN104090944B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2000924A1 (en) * | 2007-06-04 | 2008-12-10 | Koninklijke KPN N.V. | Electronic device with web browser |
CN102332024A (en) * | 2011-09-30 | 2012-01-25 | 奇智软件(北京)有限公司 | Touch control type browser for portable mobile terminal |
CN102662596A (en) * | 2012-04-19 | 2012-09-12 | 腾讯科技(深圳)有限公司 | Interacting method, device and system for mobile terminal browser |
CN103885685A (en) * | 2012-12-24 | 2014-06-25 | 腾讯科技(深圳)有限公司 | Method and device for processing pages |
CN103389867A (en) * | 2013-07-03 | 2013-11-13 | 珠海金山办公软件有限公司 | Method and system for switching selected targets of mobile device |
CN103500047A (en) * | 2013-09-23 | 2014-01-08 | 百度在线网络技术(北京)有限公司 | Method, device and mobile terminal for controlling interactive element in mobile terminal |
CN103838498A (en) * | 2014-03-05 | 2014-06-04 | 深圳市深信服电子科技有限公司 | Method and device for realizing window switching |
Also Published As
Publication number | Publication date |
---|---|
CN104090944A (en) | 2014-10-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104090944B (en) | Method and device for switching browser window content | |
CN106951141B (en) | A kind of processing method and mobile terminal of icon | |
CN106131650B (en) | Video processing method and mobile terminal | |
US20160299899A1 (en) | Generating a user-specific ranking model on a user electronic device | |
CN103677549B (en) | A kind of data processing method and device | |
JP2013508807A (en) | Method and apparatus for generating an internet navigation page | |
US20140122638A1 (en) | Webpage Browsing Method And Device | |
CN106610988B (en) | Webpage recommendation method and recommendation device | |
CN102752450A (en) | Terminal and information display method | |
CN106293705A (en) | A kind of collecting method and mobile terminal | |
CN104951491A (en) | Information searching method and device | |
CN102073675A (en) | Information processing apparatus, information processing method, program, and information processing system | |
CN106446108B (en) | A kind of sharing method of picture, mobile terminal and server | |
CN106599246B (en) | Display content interception method, mobile terminal and control server | |
US9075852B2 (en) | Search system, information processing device, method for controlling information processing device, program, and information recording medium | |
CN102955859B (en) | Web page content revealing method and device | |
CN109446415A (en) | A kind of application recommendation, acquisition methods and equipment | |
JP6047124B2 (en) | Information display device, distribution device, information display method, and information display program | |
CN104503995A (en) | Realization method and device for input method | |
CN106570061B (en) | Webpage label management method and mobile terminal | |
CN106055552A (en) | Method and device for displaying user page | |
CN105930341A (en) | Method and apparatus for switching web pages | |
CN107480218A (en) | Webpage display process and device, electronic equipment, storage medium | |
CN107102797A (en) | A kind of method and terminal that search operation is performed to selected contents of object | |
US20140164138A1 (en) | Managing advertising associated with dynamically-expanding content |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into 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: 20181210 Address after: 519030 Room 105-53811, No. 6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province Patentee after: Zhuhai Leopard Technology Co.,Ltd. Address before: 100085 East District, Second Floor, 33 Xiaoying West Road, Haidian District, Beijing Patentee before: BEIJING KINGSOFT INTERNET SECURITY SOFTWARE Co.,Ltd. |
|
TR01 | Transfer of patent right |