CN104090944A - Method and device for switching browser window content - Google Patents

Method and device for switching browser window content Download PDF

Info

Publication number
CN104090944A
CN104090944A CN201410309660.8A CN201410309660A CN104090944A CN 104090944 A CN104090944 A CN 104090944A CN 201410309660 A CN201410309660 A CN 201410309660A CN 104090944 A CN104090944 A CN 104090944A
Authority
CN
China
Prior art keywords
webpage
browser window
browser
user
switching
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.)
Granted
Application number
CN201410309660.8A
Other languages
Chinese (zh)
Other versions
CN104090944B (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.)
Zhuhai Baoqu Technology Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201410309660.8A priority Critical patent/CN104090944B/en
Publication of CN104090944A publication Critical patent/CN104090944A/en
Application granted granted Critical
Publication of CN104090944B publication Critical patent/CN104090944B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/954Navigation, e.g. using categorised browsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction 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/0483Interaction with page-structured environments, e.g. book metaphor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Data Mining & Analysis (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

Method and device for switching browser window content
Technical Field
The present invention relates to the field of browser technologies, and in particular, to a method and an apparatus for switching browser window content.
Background
On the internet, different websites provide different contents, and a user accesses the website contents through a Uniform Resource Locator (URL). When a user inquires information, the user can switch between different websites of the same type, and a decision is made by comparing the information, for example, when the user searches some information through a search website, the user often needs to switch between different search websites, and a more accurate or comprehensive search result is obtained by comparing or searching the search results of different websites.
In the prior art, when a user needs to switch between websites of the same type, for example, when switching from one search website to another search website, the user needs to input the addresses of different websites in an address bar for switching, or select different search engines on a navigation page in a browser to switch the search websites. Specifically, the user may input a hundredth website in the address bar to open the hundredth, and then input a website of the dog search to open the dog search, or select search engines of the hundredth and the dog search in the navigation page, respectively, to implement switching between different search engines.
However, no matter the user inputs the website by himself or the navigation page is used, the user needs to input the website or select the website, the fast switching of the web pages cannot be realized, the operation is troublesome, and the user experience is poor.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, an object of the present invention is to provide a method for switching web pages, which can provide a new method for switching browser window contents, can implement fast switching of different browser window contents, is convenient for a user to use, and improves user experience.
Another object of the present invention is to provide an apparatus for switching web pages.
To achieve the above object, a method for switching contents of a browser window according to an embodiment of a first aspect of the present invention is applied to a browser installed in a first terminal, and includes: displaying 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.
According to the method for switching the contents of the browser window, provided by the embodiment of the first aspect of the invention, the contents of the browser window are switched when a user shakes the browser window, and the contents of the browser window can be switched only by shaking, so that the method can realize the quick switching of the contents of different browser windows, is convenient for the user to use, and improves the user experience.
In order to achieve the above object, a method for switching contents of a browser window according to an embodiment of a second aspect of the present invention is applied to a server corresponding to a browser installed in a first terminal, and includes: receiving page information of a first webpage displayed in the browser window, which is sent by the browser and acquired by the browser when the browser detects that a user shakes the browser window; and searching a second webpage associated with the page information in a pre-established database, and returning the website of the second webpage to the browser, so that the browser switches and displays the first webpage to the second webpage corresponding to the website according to the received website.
According to the method for switching the contents of the browser window, provided by the embodiment of the second aspect of the invention, when the browser detects that the user shakes the browser window, the page information of the first webpage displayed in the browser window is received, the second webpage is searched according to the page information of the first webpage, and the website of the second webpage is sent to the browser, so that the browser switches and displays the first webpage to the second webpage corresponding to the website according to the received website.
In order to achieve the above object, an apparatus for switching a web page according to a third embodiment of the present invention is applied to a browser installed in a first terminal, and includes: the display module is used for displaying a first webpage accessed by a user in a browser window; a processing module, configured to detect an operation of a user on the browser window, and when it is detected that the user shakes the browser window, perform switching processing on the content of the browser window, where the performing switching processing on the content of the browser window includes: 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.
According to the device for switching the web page provided by the embodiment of the third aspect of the invention, the content of the browser window is switched when the user shakes the browser window, and the content of the browser window can be switched only by shaking operation, so that the method can realize quick switching of different contents of the browser window, is convenient for the user to use, and improves the user experience.
In order to achieve the above object, an apparatus for switching a web page according to a fourth aspect of the present invention is applied to a server corresponding to a browser installed in a first terminal, and includes: the receiving module is used for receiving page information of a first webpage displayed in the browser window, which is sent by the browser and acquired by the browser when the browser detects that a user shakes the browser window; and the processing module is used for searching a second webpage related to the page information in a pre-established database and returning the website of the second webpage to the browser so that the browser switches and displays the first webpage to be the second webpage corresponding to the website according to the received website.
According to the device for switching the web pages, provided by the embodiment of the fourth aspect of the invention, when the browser detects that the user shakes the browser window, the page information of the first web page displayed in the browser window is received, the second web page is searched according to the page information of the first web page, and the website of the second web page is sent to the browser, so that the browser can switch and display the first web page to the second web page corresponding to the website according to the received website.
In order to achieve the above object, an embodiment of a fifth aspect of the present invention provides a client device, including: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power circuit for supplying power to each circuit or device of the client device; the memory is used for storing executable program codes; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the steps of: displaying 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.
According to the client device provided by the embodiment of the fifth aspect of the present invention, when a user shakes a browser window, the content of the browser window is switched, and the content of the browser window can be switched only by shaking the browser window, so that the method can realize fast switching of different contents of the browser window, facilitate the use of the user, and improve the user experience.
In order to achieve the above object, a server according to a sixth embodiment of the present invention includes: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the server; the memory is used for storing executable program codes; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the steps of: receiving page information of a first webpage displayed in the browser window, which is sent by the browser and acquired by the browser when the browser detects that a user shakes the browser window; and searching a second webpage associated with the page information in a pre-established database, and returning the website of the second webpage to the browser, so that the browser switches and displays the first webpage to the second webpage corresponding to the website according to the received website.
According to the server provided by the embodiment of the sixth aspect of the invention, when the browser detects that the user shakes the browser window, the page information of the first webpage displayed in the browser window is received, the second webpage is searched according to the page information of the first webpage, and the website of the second webpage is sent to the browser, so that the browser can switch and display the first webpage as the second webpage corresponding to the website according to the received website, the displayed webpage can be switched by the browser when the user shakes the browser window, and the content of the browser window can be switched due to only shaking operation performed by the user.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1a is a schematic flowchart illustrating a method for switching contents of a browser window according to an embodiment of the present invention;
fig. 1b is a flowchart illustrating a method for switching contents of a browser window according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for switching contents of a browser window according to another embodiment of the present invention;
FIG. 3 is a flowchart illustrating a specific manner of determining whether a user shakes a browser window according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a mouse track obtained according to an embodiment of the present invention;
FIG. 5 is a schematic view of an acute angle formed by inflection points in an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a device for switching contents of a browser window according to another embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a device for switching contents of a browser window according to another embodiment of the present invention;
fig. 8 is a schematic structural diagram of a device for switching contents of a browser window according to another embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention. On the contrary, the embodiments of the invention include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
Fig. 1a is a schematic flowchart of a method for switching contents of a browser window according to an embodiment of the present invention, where the method is applicable to a browser installed in a first terminal, and the method includes:
s101: displaying a first webpage accessed by a user in a browser window;
it should be noted that, in the embodiment of the present invention, the browser window refers to a client window that is displayed to a user after the user opens a browser in a first terminal, where the window includes a control display area and a page display area of the browser, where the control display area is used to display contents such as a browser toolbar, an address bar, a search bar, a tab title display bar, and various control icons, and the page display area is used for the user to display contents such as a page of a webpage opened by the user.
When a user surfs the internet by using a browser, the client can display a webpage to the user through a browser window.
The first web page may be a default web page of the browser displayed after the user clicks the browser icon, or the first web page may also be a web page selected by the user and displayed after the user inputs a website in the browser address bar, or the first web page may also be another web page entered after the user clicks a certain link in one web page.
S102: 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.
After the browser displays the first webpage, the user may need to perform switching processing on the content of the browser window, where the switching processing may include any one of switching the displayed first webpage to a second webpage, performing skin-changing processing on the browser window, and changing the layout of the browser window.
What kind of switching is specifically performed may be preset, for example, it may be preset in the browser that skin changing processing is performed when the browser window is shaken, and then skin changing processing is performed on the first web page when it is detected that the user shakes the browser window. Or, when the preset is to switch the web page, the first web page is switched to another web page when it is detected that the user shakes the browser window. Or, when the preset is to change the layout of the browser window, then when it is detected that the user shakes the browser window, the layout of the browser window is changed, and the change of the layout of the browser window may specifically include: the style and/or position of the controls of the browser are changed.
In the embodiment, when the user shakes the browser window, the content of the browser window is switched, and the content of the browser window can be switched only by shaking the browser window, so that the method can realize the quick switching of the content of different browser windows, is convenient for the user to use, and improves the user experience.
Given the description of the terminal side above, accordingly, referring to fig. 1b, another embodiment of the present invention provides a method for switching browser window content, which may be applied to a server corresponding to a browser installed in a first terminal, and the method includes:
s111: receiving page information of a first webpage displayed in the browser window, which is sent by the browser and acquired by the browser when the browser detects that a user shakes the browser window;
the page information received by the server may include: web address and/or web page title.
The page information is page information of a first web page, the first web page is a web page displayed by a browser and visited by a user, the first web page may specifically be a web page displayed by the browser by default after the user opens the browser, or a web page opened by the browser after the user inputs a website in an address bar of the browser, and the first web page may also be another web page entered by the user after clicking a certain link in one web page.
The page information is sent to the server by the browser after detecting that the user shakes the browser window.
S112: and searching a second webpage associated with the page information in a pre-established database, and returning the website of the second webpage to the browser, so that the browser switches and displays the first webpage to the second webpage corresponding to the website according to the received website.
The second web page associated with the page information may refer to a type same as that of the first web page, for example, the first web page and the second web page are both search-class web pages, specifically, the first web page is a hundred-degree web page, and the second web page may refer to a web page of a dog search, etc. It is understood that the associated web page may also be a web page recommended according to the first web page, for example, when the first web page is a hundred degree web page, it may be preset that the recommended web page is a cool web page. Specifically, the same type of web page and/or recommended web page may be previously stored in the database. In addition, the specific second webpage is a website and/or a recommended webpage of the same type as the first webpage, and can also be preset so as to search the second webpage according to the page information of the first webpage.
When a plurality of web pages associated with the first web page are found in the database, one of the plurality of web pages can be selected as the second web page, wherein the selected web page is:
and randomly selecting the other web pages with the highest user frequency or the highest priority.
Specifically, for the case of random selection, a random algorithm may be set to randomly select one web page from a plurality of web pages associated with the first web page as the second web page; or,
for the condition of the highest use frequency, the use frequency of each webpage corresponding to each user can be further recorded in the database, and then the webpage with the highest use frequency of the current user can be found in the plurality of webpages to serve as a second webpage; or,
for the case of the highest priority, the priority of each web page may be preset, and the priority of each web page may be recorded in the database, and then the web page with the highest priority may be found from the plurality of web pages as the second web page.
After the server finds the second webpage, the server may send the website of the second webpage to the browser, for example, send the URL address of the second webpage to the browser, and the browser may open the second webpage according to the website, so that the webpage displayed by the browser is switched from the first webpage to the second webpage.
According to the embodiment, the page information of the first webpage displayed in the browser window when the browser detects that the user shakes the browser window is received, the second webpage is searched according to the page information of the first webpage, and the website of the second webpage is sent to the browser, so that the browser switches and displays the first webpage to the second webpage corresponding to the website according to the received website.
Fig. 2 is a schematic flowchart of a method for switching contents of a browser window according to another embodiment of the present invention, where the method includes:
s21: the browser displays a first webpage accessed by a user in a browser window.
When a user surfs the internet by using a browser, the client can display a webpage to the user through a browser window.
The first web page may be a default web page of the browser displayed after the user clicks the browser icon, or the first web page may also be a web page selected by the user and displayed after the user inputs a website in the browser address bar, or the first web page may also be another web page entered after the user clicks a certain link in one web page.
S22: the browser judges whether the user shakes the browser window, if so, S23 is executed, and if not, S21 and the subsequent steps are repeatedly executed.
And judging whether the mode of shaking the browser window by the user is different according to different carriers where the browser is positioned.
Specifically, the detecting the operation of the user on the browser window includes:
detecting that a user shakes a browser window according to a mouse track generated by the user moving a mouse in the browser window; or,
and detecting that the user shakes the browser window according to the shaking of the first terminal by the user.
Specifically, when a user uses a browser on a Personal Computer (PC), shaking of the browser window by the user may be detected according to a mouse track generated by the user moving a mouse in the browser window, where moving the mouse in the browser window by the user may specifically mean that the user drags the browser window, that is, presses a left button of the mouse to move the mouse, so that the mouse cursor moves in the browser window, specifically which region in the browser window moves.
When the carrier is a mobile device, i.e. when the user uses a browser on the mobile device, shaking of the browser window by the user is detected in dependence of the shaking of the mobile device by the user. The mobile device can be provided with a gyroscope, and when the number of times that the rotation angle of the gyroscope exceeds a preset threshold value exceeds a preset number of times, shaking of the browser window by a user can be detected.
Referring to fig. 3, determining whether the user has shaken the browser window may include:
s31: recording track points of a mouse track when a user continuously moves the mouse;
in the embodiment of the invention, taking the dragging of the browser window by the user as an example, when it is detected that the mouse clicks the preset area of the browser window and presses the left mouse button, the track point of the mouse is recorded until the left mouse button is released by the user.
The preset area of the browser window includes but is not limited to: a title bar.
The track points of the mouse can be represented by coordinates, and the coordinates of the track points can be formed into the following arrays:
array[1]={x1,y1}
array[2]={x2,y2}
array[...]={x...,y...}
array[n]={xn,yn}
the method comprises the following steps that array [1] is a mouse position coordinate when a browser window starts to be dragged, namely the mouse position coordinate when a mouse is detected to be clicked to a preset area of the browser window and a left mouse button is pressed down, array [ n ] is the mouse position coordinate when the left mouse button is detected to be released, and a numerical value array [ once ] in the middle of an array is the mouse position coordinate recorded in the process of starting to drag the browser window to release the left mouse button. The specific recording time interval may be preset.
S32: acquiring inflection points of the mouse track according to the track points;
the mouse track can be obtained through the recorded track points, and as shown in fig. 4, the mouse track can be obtained by connecting the adjacent track points.
After obtaining the mouse trajectory, inflection points can be obtained, as shown in fig. 4, the inflection points are respectively represented by 1, 2, 3, 4, 5, and 6.
S33: and when the number of acute angles in an included angle taking the inflection point as a vertex in the mouse track exceeds a preset threshold value, detecting that the user shakes the browser window.
After obtaining the inflection point, an included angle with the inflection point as a vertex may be obtained, and further an acute angle in the included angle may be obtained, and the acute angle in the included angle with the inflection point as a vertex may be as shown in fig. 5, see fig. 5, which shows an acute angle formed by inflection points a, b, and c.
If the preset threshold is 3, for example, it is detected that the user shakes the browser window when the number of acute angles formed by the inflection points of the mouse trajectory exceeds 3.
S23: the browser acquires page information of a first webpage and sends the page information of the first webpage to a server.
The page information may include: web address and/or web page title.
The website address is, for example, a Uniform Resource Locator (URL) address.
S24: and the server searches a second webpage related to the page information in a pre-established database.
Specifically, after receiving the page information of the first web page, the server may search the database for the websites of the other web pages associated with the page information, and select one website from the websites of the associated other web pages as the website of the second web page.
Taking the page information as the website as an example, the server may pre-establish website groups, each website group including the same category of websites, for example, a Baidu website, a search website, and a dog website, and when the server receives the Baidu website, the server may obtain the websites of other webpages from the Baidu website group, such as the search website and the dog website.
Optionally, the server may also pre-establish a correspondence between the website and the recommended website thereof, for example, establish a correspondence between a Baidu website and a Youke website, and when the server receives the Baidu website, the Youke website may be searched.
The specific server can be preset for searching the same type of websites or recommending the websites. In addition, specific websites of the same category or recommended websites may be preset, and are not limited to the above websites.
After acquiring the websites of the other associated webpages, one website may be selected according to a preset algorithm, including but not limited to: randomly selecting a website; selecting the website with the highest user use frequency, wherein the user use frequency of each website can be recorded in advance; the web address with the highest priority is selected, in which case the priority of each web address may be set in advance.
Further, the server may perform operations such as adding, modifying, or deleting the websites in each website library. For example, when the number of websites of the same category increases, new websites can be added in time to give more choices to the user.
In addition, the server can also modify the website parameters in time, for example, after the hundred-degree website changes, the user may not know that the hundred-degree webpage cannot be opened by means of user input, but if the server modifies the website in time, the hundred-degree webpage still can be ensured to be displayed to the user.
In addition, the server can add new classifications, for example, as the number of websites increases, new categories of websites may appear, and the change of websites can be adapted by the addition of the server.
S25: and the browser receives the website of the second webpage sent by the server.
Taking the selection of the same category of websites as an example, assuming that the current webpage is hundred degrees, the website sent by the server may be a searched website, that is, the website of the second webpage is a searched website.
S26: and the browser switches and displays the first webpage into a second webpage corresponding to the website according to the received website.
For example, the searched web page is presented, and switching from the hundredth web page to the searched web page is realized.
It should be noted that, in this embodiment, switching to another web page is taken as an example, optionally, when it is detected that the user shakes the browser window, the skin changing process may be performed on the first web page, at this time, after it is detected that the user shakes the browser window, a message for requesting skin changing may be sent to the server, and then the browser performs the skin changing process according to a new skin returned by the server. Alternatively, the layout of the browser window may also be changed when it is detected that the user has shaken the browser window, for example changing the style and/or position of a control in the browser.
This embodiment is through when the user waves the browser window, carries out the switching of browser window content, because what the user carried out is only to wave the operation, can realize the fast switch-over of browser window content, can convenience of customers use, promotes user experience. The embodiment completes the operation of selecting the website by the server without the input or selection of the user, can be more easily adapted to the change situation of the website, and provides more and updated selections for the user.
Fig. 6 is a schematic structural diagram of a device for switching contents of a browser window according to another embodiment of the present invention, which can be applied to a browser installed in a first terminal, where the device 60 includes a presentation module 61 and a processing module 62.
The presentation module 61 is configured to present a first webpage accessed by a user in a browser window.
When a user surfs the internet by using a browser, the client can display a webpage to the user through a browser window.
The processing module 62 is configured to detect an operation of a user on the browser window, and when it is detected that the user shakes the browser window, perform switching processing on the content of the browser window, where the switching processing on the content of the browser window includes:
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.
After the browser displays the first webpage, the user may need to perform a switching process on the contents of the browser window, where the switching process may include any one of the above contents.
What kind of switching is specifically performed may be preset, for example, it may be preset in the browser that skin changing processing is performed when the browser window is shaken, and then skin changing processing is performed on the first web page when it is detected that the user shakes the browser window. Or, when the preset is to switch the web page, the first web page is switched to another web page when it is detected that the user shakes the browser window. Or, when the preset is to change the layout of the browser window, then when it is detected that the user shakes the browser window, the layout of the browser window is changed, and the change of the layout of the browser window may specifically include: the style and/or position of the controls of the browser are changed.
In an embodiment, referring to fig. 7, the processing module 62 includes a first unit 621 configured to detect an operation of a user on the browser window, where the first unit 621 is specifically configured to:
detecting that a user shakes a browser window according to a mouse track generated by the user moving a mouse in the browser window; or detecting that the user shakes the browser window according to shaking of the first terminal by the user.
In one embodiment, when the first unit 621 is configured to detect that the user shakes the browser window according to a mouse track generated by the user moving a mouse in the browser window, the first unit 621 includes:
a first subunit 6211, configured to record track points of a mouse track when a user continuously moves the mouse;
specifically, for example, when a user drags a browser window, the track point of the mouse can be recorded when the mouse is detected to click on a preset area of the browser window and a left mouse button is pressed.
The preset area of the browser window includes but is not limited to: a title bar.
The track points of the mouse can be represented by coordinates, and the coordinates of the track points can be formed into the following arrays:
array[1]={x1,y1}
array[2]={x2,y2}
array[...]={x...,y...}
array[n]={xn,yn}
the method comprises the following steps that array [1] is a mouse position coordinate when a browser window starts to be dragged, namely the mouse position coordinate when a mouse is detected to be clicked to a preset area of the browser window and a left mouse button is pressed down, array [ n ] is the mouse position coordinate when the left mouse button is detected to be released, and a numerical value array [ once ] in the middle of an array is the mouse position coordinate recorded in the process of starting to drag the browser window to release the left mouse button. The specific recording time interval may be preset.
The second subunit 6212 is configured to obtain an inflection point of the mouse track according to the track point;
the mouse track can be obtained through the recorded track points, and as shown in fig. 4, the mouse track can be obtained by connecting the adjacent track points.
After obtaining the mouse trajectory, inflection points can be obtained, as shown in fig. 4, the inflection points are respectively represented by 1, 2, 3, 4, 5, and 6.
A third subunit 6213, configured to detect that the user shakes the browser window when the number of acute angles in an included angle with the inflection point as a vertex in the mouse trajectory exceeds a preset threshold.
After obtaining the inflection point, an included angle with the inflection point as a vertex may be obtained, and further an acute angle in the included angle may be obtained, and the acute angle in the included angle with the inflection point as a vertex may be as shown in fig. 5, see fig. 5, which shows an acute angle formed by inflection points a, b, and c.
If the preset threshold is 3, for example, it is detected that the user shakes the browser window when the number of acute angles formed by the inflection points of the mouse trajectory exceeds 3.
In an embodiment, referring to fig. 7, the processing module 62 includes a second unit 622 for switching the first web page displayed into a second web page, where the second unit 622 is specifically configured to:
acquiring page information of the first webpage;
sending the page information of the first webpage to a server, so that the server searches a second webpage related to the page information in a pre-established database, and returns the website of the second webpage;
receiving a website of the second webpage returned by the server;
and switching and displaying the first webpage as a second webpage corresponding to the website according to the received website.
In one embodiment, the second web page is of the same type as the first web page; the page information includes: and the server searches a second webpage which has the same type group as the first webpage in page information of the first webpage in a pre-established database.
It should be noted that, in this embodiment, switching to another web page is taken as an example, optionally, when it is detected that the user shakes the browser window, the skin changing process may be performed on the first web page, at this time, after it is detected that the user shakes the browser window, a message for requesting skin changing may be sent to the server, and then the browser performs the skin changing process according to a new skin returned by the server. Alternatively, the layout of the browser window may also be changed when it is detected that the user has shaken the browser window, for example changing the style and/or position of a control in the browser.
This embodiment is through when the user waves the browser window, carries out the switching of browser window content, because what the user carried out is only to wave the operation, can make things convenient for the user to use, promotes user experience. The embodiment completes the operation of selecting the website by the server without the input or selection of the user, can be more easily adapted to the change situation of the website, and provides more and updated selections for the user.
Fig. 8 is a schematic structural diagram of a switching apparatus for browser window content according to another embodiment of the present invention, which may be applied to a server corresponding to a browser installed in a first terminal, where the apparatus 80 includes a receiving module 81 and a processing module 82.
The receiving module 81 is configured to receive page information of a first webpage, which is sent by the browser and acquired by the browser when the browser detects that a user shakes the browser window;
the processing module 82 is configured to search a second webpage associated with the page information in a pre-established database, and return a website of the second webpage to the browser, so that the browser switches and displays the first webpage to the second webpage corresponding to the website according to the received website.
In one embodiment, the processing module is specifically configured to:
searching other web pages related to the page information in a pre-established database, and selecting one web page from the related other web pages as a second web page; wherein the selected web page is:
and randomly selecting the other web pages with the highest user frequency or the highest priority.
In one embodiment, the second web page is of the same type as the first web page; the page information includes: web address and/or web page title;
the processing module 82 is specifically configured to: and searching a second webpage which has the same type group with the page information of the first webpage in a pre-established database.
Specifically, after receiving the page information of the first web page, the server may search the database for the websites of the other web pages associated with the page information, and select one website from the websites of the associated other web pages as the website of the second web page.
In the embodiment, the receiving module is used for receiving the page information of the first webpage displayed on the browser window, which is sent by the browser when the user shakes the browser window, searching the second webpage according to the page information of the first webpage, and sending the website of the second webpage to the browser, so that the browser switches and displays the first webpage into the second webpage corresponding to the website according to the received website.
The embodiment of the invention also provides client equipment which comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power circuit for supplying power to each circuit or device of the client device; the memory is used for storing executable program codes; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the steps of:
s101': displaying a first webpage accessed by a user in a browser window;
s102': 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.
This embodiment is through when the user waves the browser window, right the browser window content switches the processing, because what the user carried out is only to wave the operation, can realize the fast switch of different browser window contents, and convenience of customers uses, promotes user experience.
The embodiment of the invention also provides a server, which comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in the space enclosed by the shell, and the processor and the memory are arranged on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the server; the memory is used for storing executable program codes; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the steps of:
s111': receiving page information of a first webpage displayed in the browser window, which is sent by the browser and acquired by the browser when the browser detects that a user shakes the browser window;
s112': and searching a second webpage associated with the page information in a pre-established database, and returning the website of the second webpage to the browser, so that the browser switches and displays the first webpage to the second webpage corresponding to the website according to the received website.
In this embodiment, the receiving module receives page information of a first webpage displayed on a browser window, which is sent by the browser when a user shakes the browser window, searches for a second webpage according to the page information of the first webpage, and sends a website of the second webpage to the browser, so that the browser switches and displays the first webpage into the second webpage corresponding to the website according to the received website.
It should be noted that the terms "first," "second," and the like in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (16)

1. A method for switching browser window content is applied to a browser installed on a first terminal, and comprises the following steps:
displaying 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.
2. The method of claim 1, wherein detecting the operation of the user on the browser window comprises:
detecting that a user shakes a browser window according to a mouse track generated by the user moving a mouse in the browser window; or,
and detecting that the user shakes the browser window according to the shaking of the first terminal by the user.
3. The method of claim 2, wherein detecting that the user shakes the browser window based on a mouse track generated by the user moving a mouse in the browser window comprises:
recording track points of a mouse track when a user continuously moves the mouse;
acquiring inflection points of the mouse track according to the track points;
and when the number of acute angles in an included angle taking the inflection point as a vertex in the mouse track exceeds a preset threshold value, detecting that the user shakes the browser window.
4. The method of any of claims 1 to 3, wherein switching the rendered first webpage to a second webpage comprises:
acquiring page information of the first webpage;
sending the page information of the first webpage to a server, so that the server searches a second webpage related to the page information in a pre-established database, and returns the website of the second webpage;
receiving a website of the second webpage returned by the server;
and switching and displaying the first webpage as a second webpage corresponding to the website according to the received website.
5. The method of claim 4,
the second webpage is the same as the first webpage in type;
the page information includes: and the server searches a second webpage which has the same type group as the first webpage in page information of the first webpage in a pre-established database.
6. A method for switching browser window content is applied to a server corresponding to a browser installed on a first terminal, and comprises the following steps:
receiving page information of a first webpage displayed in the browser window, which is sent by the browser and acquired by the browser when the browser detects that a user shakes the browser window;
and searching a second webpage associated with the page information in a pre-established database, and returning the website of the second webpage to the browser, so that the browser switches and displays the first webpage to the second webpage corresponding to the website according to the received website.
7. The method of claim 6, wherein the finding the second webpage associated with the page information in the pre-established database comprises:
searching other web pages related to the page information in a pre-established database, and selecting one web page from the related other web pages as a second web page; wherein the selected web page is:
and randomly selecting the other web pages with the highest user frequency or the highest priority.
8. The method according to claim 6 or 7,
the second webpage is the same as the first webpage in type;
the page information includes: web address and/or web page title;
the finding of the second webpage associated with the page information in the pre-established database includes:
and searching a second webpage which has the same type group with the page information of the first webpage in a pre-established database.
9. A switching device of browser window content is characterized in that the switching device is applied to a browser installed on a first terminal, and comprises:
the display module is used for displaying a first webpage accessed by a user in a browser window;
a processing module, configured to detect an operation of a user on the browser window, and when it is detected that the user shakes the browser window, perform switching processing on the content of the browser window, where the performing switching processing on the content of the browser window includes:
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.
10. The apparatus according to claim 9, wherein the processing module includes a first unit configured to detect an operation of the browser window by a user, and the first unit is specifically configured to:
detecting that a user shakes a browser window according to a mouse track generated by the user moving a mouse in the browser window; or,
and detecting that the user shakes the browser window according to the shaking of the first terminal by the user.
11. The apparatus of claim 10, wherein when the first unit is configured to detect that the user shakes the browser window according to a mouse track generated by the user moving a mouse in the browser window, the first unit comprises:
the first subunit is used for recording track points of a mouse track when a user continuously moves the mouse;
the second subunit is used for acquiring an inflection point of the mouse track according to the track point;
and the third subunit is used for detecting that the user shakes the browser window when the number of acute angles in an included angle taking the inflection point as a vertex in the mouse track exceeds a preset threshold value.
12. The apparatus according to any one of claims 9 to 11, wherein the processing module comprises a second unit configured to switch the rendered first web page to a second web page, the second unit being specifically configured to:
acquiring page information of the first webpage;
sending the page information of the first webpage to a server, so that the server searches a second webpage related to the page information in a pre-established database, and returns the website of the second webpage;
receiving a website of the second webpage returned by the server;
and switching and displaying the first webpage as a second webpage corresponding to the website according to the received website.
13. The apparatus of claim 12,
the second webpage is the same as the first webpage in type;
the page information includes: and the server searches a second webpage which has the same type group as the first webpage in page information of the first webpage in a pre-established database.
14. A browser window content switching device, applied to a server corresponding to a browser installed in a first terminal, includes:
the receiving module is used for receiving page information of a first webpage displayed in the browser window, which is sent by the browser and acquired by the browser when the browser detects that a user shakes the browser window;
and the processing module is used for searching a second webpage related to the page information in a pre-established database and returning the website of the second webpage to the browser so that the browser switches and displays the first webpage to be the second webpage corresponding to the website according to the received website.
15. The apparatus of claim 14, wherein the processing module is specifically configured to:
searching other web pages related to the page information in a pre-established database, and selecting one web page from the related other web pages as a second web page; wherein the selected web page is:
and randomly selecting the other web pages with the highest user frequency or the highest priority.
16. The apparatus of claim 14 or 15,
the second webpage is the same as the first webpage in type;
the page information includes: web address and/or web page title;
the processing module is specifically configured to: and searching a second webpage which has the same type group with the page information of the first webpage in a pre-established database.
CN201410309660.8A 2014-06-30 2014-06-30 Method and device for switching browser window content Active CN104090944B (en)

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 true CN104090944A (en) 2014-10-08
CN104090944B 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)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468718A (en) * 2014-11-07 2015-03-25 华为技术有限公司 Information interconnection method, device and system
CN105930341A (en) * 2016-04-01 2016-09-07 乐视控股(北京)有限公司 Method and apparatus for switching web pages
CN106372076A (en) * 2015-07-22 2017-02-01 腾讯科技(深圳)有限公司 Method and device for switching webpages in browsers
CN106991110A (en) * 2016-10-12 2017-07-28 阿里巴巴集团控股有限公司 The switching method and device of Webpage
CN107229405A (en) * 2016-03-25 2017-10-03 广州市动景计算机科技有限公司 Method, equipment, browser and electronic equipment for providing web page contents
CN110955544A (en) * 2019-12-18 2020-04-03 杭州安恒信息技术股份有限公司 Method, device and system for detecting usability of web system
CN116311209A (en) * 2023-03-28 2023-06-23 北京匠数科技有限公司 Window detection system method and system and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
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
CN101471990A (en) * 2007-12-24 2009-07-01 英华达(南京)科技有限公司 Mobile communication equipment and method for switching web page browsing display
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

Patent Citations (8)

* Cited by examiner, † Cited by third party
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
CN101471990A (en) * 2007-12-24 2009-07-01 英华达(南京)科技有限公司 Mobile communication equipment and method for switching web page browsing display
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

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468718A (en) * 2014-11-07 2015-03-25 华为技术有限公司 Information interconnection method, device and system
CN104468718B (en) * 2014-11-07 2018-11-20 华为技术有限公司 A kind of interconnected method of information, apparatus and system
CN106372076A (en) * 2015-07-22 2017-02-01 腾讯科技(深圳)有限公司 Method and device for switching webpages in browsers
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
US10996845B2 (en) 2016-03-25 2021-05-04 Alibaba Group Holding Limited Method, application, browser, and electronic device for providing webpage content
CN105930341A (en) * 2016-04-01 2016-09-07 乐视控股(北京)有限公司 Method and apparatus for switching web pages
CN106991110A (en) * 2016-10-12 2017-07-28 阿里巴巴集团控股有限公司 The switching method and device of Webpage
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
CN116311209A (en) * 2023-03-28 2023-06-23 北京匠数科技有限公司 Window detection system method and system and electronic equipment
CN116311209B (en) * 2023-03-28 2024-01-19 北京匠数科技有限公司 Window detection method, system and electronic equipment

Also Published As

Publication number Publication date
CN104090944B (en) 2018-09-11

Similar Documents

Publication Publication Date Title
CN104090944B (en) Method and device for switching browser window content
US10771567B2 (en) Systems and methods for automatically saving a state of a communication session
US9912778B2 (en) Method for dynamically displaying a personalized home screen on a user device
US9141702B2 (en) Method for dynamically displaying a personalized home screen on a device
US11455348B2 (en) Systems and methods for saving and presenting a state of a communication session
US9600258B2 (en) Suggestions to install and/or open a native application
US10552291B2 (en) Method and system for measuring user engagement with content items
US9065827B1 (en) Browser-based provisioning of quality metadata
CN106610988B (en) Webpage recommendation method and recommendation device
US20160098416A1 (en) Auto complete search box based on the user's context to reduce user's input
US8898297B1 (en) Device attribute-customized metadata for browser users
CN106789348B (en) Network acceleration method, server and client
JP6095614B2 (en) Information display program, distribution device, information display method, and information display device
WO2013180751A1 (en) Method for dynamically displaying a personalized home screen on a device
WO2013177769A1 (en) Browser-driven retrieval of content for webpages
US20160275046A1 (en) Method and system for personalized presentation of content
US9417773B2 (en) Mobile application pre-fetching using a state framework
US20140164138A1 (en) Managing advertising associated with dynamically-expanding content
JP2017027527A (en) Device, method, and program for processing information, and delivery device
JP6576290B2 (en) Information processing apparatus, information processing method, information processing program, and distribution apparatus

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
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.