Method and system for establishing split-screen PC (personal computer) webpage browser
Technical Field
The invention relates to a method and a system for establishing a split-screen PC (personal computer) webpage browser.
Background
In the field of e-commerce, a merchant may sign up for multiple platforms, such as a restaurant signing up for a platform of beauty groups, hundred degrees of takeouts, hungry, and the like. However, the current web browser basically adopts a focus refreshing mechanism, namely, the real-time refreshing can be realized only when the web page is in a focus window, and for the window without obtaining the focus, the reminding display is realized at most in a browser title bar through programming, so that the effect is not striking. Therefore, in order to view the purchase information of the user in time, the merchant needs to: 1) respectively logging in corresponding platforms and checking up the latest ordering information by using a plurality of computers; 2) or a plurality of windows are opened on one computer, and different windows correspond to different platforms. At the same time, merchants are required to continually switch windows to gain focus to view the latest orders. Obviously, both of these two methods are expensive and laborious, and the experience is not good.
In view of this, various enterprises have studied various solutions to solve the above-described situation. For example, chinese patent 201410472475.0 discloses a "method for browsing web pages simultaneously on multiple screens at a website" based on a web page programming format, which uses HTML controls such as IFrame to realize screen splitting. However, the method only does not change the browser kernel, and is mainly used for content comparison, and does not consider the functions of webpage real-time refreshing, content reminding and the like. The 'multi-window display method and device of a browser' disclosed in chinese patent 201310545456.1 introduces various split screen styles, but the application does not consider the functions of split screen refreshing, content reminding, etc. and only aims at an embedded device browser, i.e. a mobile phone browser, and the implementation method is to implement the encapsulation of the multi-window display mode by modifying webkit source codes or by javascript. The method and system for splitting the screen of the browser of the Windows system disclosed in chinese patent 201610207474.2 are directed to a method and system for splitting the screen of a browser wearing VR (virtual reality), which is fixed as 2 split screens, one is an operation side allowing mouse operation, the other is a display side for displaying contents, and the 2 split screens have different statuses and functions.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a method and a system for establishing a split-screen PC (personal computer) webpage browser, which are used for expanding the kernel level of the browser so as to overcome the defects of the focus refreshing mechanism of the conventional webpage browser, realize a webpage browsing method for opening different platforms by multiple split screens, and enable all windows to be in a time-sharing focus refreshing state so that a user can view the latest messages at the same time.
In order to achieve the purpose, the technical scheme of the invention is as follows: a method for establishing a split-screen PC web browser comprises the following steps,
s1, setting the screen splitting number and the screen splitting style of the current web browser;
s2, respectively inputting URL address information into the webpage address areas of the split screens and determining loading;
s3, keeping the focus state of each split screen in a time-sharing state, and refreshing in real time;
and S4, collecting popup information of each split screen, and displaying the popup information on the main screen page in a unified popup mode.
Furthermore, a partition control is adopted to design the number and the style of split screens, a browser control is adopted to bear a webpage in a corresponding split screen container, meanwhile, a corresponding webpage input frame is generated by an input control, and after a user inputs URL address information and the webpage address is checked to be correct, webpage data are respectively loaded into corresponding browser controllers and displayed.
Furthermore, a timer is used for time-sharing timing, the time interval of the timer is set, each split screen is set as the current focus screen by acquiring focus round robin, and the information is guaranteed to be refreshed only in the corresponding screen through a browser control.
Furthermore, each split screen supports double-click amplification in a single-screen mode, and the single-screen data and the corresponding split-screen data are consistent.
Furthermore, the unified popup is displayed on the main screen page in a list form, and after a line of data is clicked and viewed, the line is automatically hidden and the data is stored in historical data.
Further, the web browser includes a web browser running on a desktop computer, a notebook computer, a mobile phone, a PDA, or a tablet computer.
The invention also discloses a system for establishing the split-screen PC web browser, which comprises a split-screen number and style setting module, an address input and data loading module, a time-sharing refreshing module and a popup window collection and unified popup window display processing module, wherein,
the split screen number and style setting module is used for setting the split screen number and the split screen display style displayed by the current browser;
the address input and data loading module is used for inputting the webpage addresses of the split screens, and loading and displaying the webpage information to the split screens after confirmation;
the time-sharing refreshing module is used for realizing a time-sharing mode, ensuring that each split screen keeps a focus state and realizes real-time refreshing of data in a time-sharing state;
and the popup collecting and unified popup display processing module uses 3 popup data of each sub-screen and unifies popup to a total screen page in a list form.
The invention has the beneficial effects that: the method is used for expanding the browser kernel level, so as to solve the defects of the existing webpage browser focus refreshing mechanism, realize the webpage browsing method of opening different platforms by multiple split screens, and enable all windows to be in a time-sharing focus refreshing state, so that a user can view the latest information at the same time.
Drawings
FIG. 1 is a flow chart of the setup of the present invention;
FIG. 2 is a two-screen form of the split PC web browser of the present invention;
FIG. 3 is another aspect of the split-screen PC web browser of the present invention;
FIG. 4 is a graphical representation of a triple split screen of the split screen PC web browser of the present invention;
FIG. 5 is another aspect of the triple split screen of the split screen PC web browser of the present invention;
FIG. 6 is a third aspect of the split-screen PC web browser of the present invention;
FIG. 7 is a fourth aspect of the present invention showing three split screens for a split-screen PC web browser;
FIG. 8 is a fifth form of a triple split screen PC web browser of the present invention;
FIG. 9 is a sixth aspect of the split-screen PC web browser of the present invention;
FIG. 10 is a form diagram of a quad split screen of the split PC web browser of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the following embodiments and the accompanying drawings.
A method of building a split-screen PC web browser as shown in fig. 1-10, comprising the steps of,
s1, setting the screen splitting number and the screen splitting style of the current web browser;
s2, respectively inputting URL address information into the webpage address areas of the split screens and determining loading;
s3, keeping the focus state of each split screen in a time-sharing state, and refreshing in real time;
and S4, collecting popup information of each split screen, and displaying the popup information on the main screen page in a unified popup mode.
Specifically, if the split screen number and the split screen style are designed by adopting the splitcontainer control, split screen styles such as 1 split screen, 2 split screens, 3 split screens, 4 split screens, 5 split screens and 6 split screens are designed for the user to select, and the split screens are named by numerical names to show the differences, such as the 2 split screen, 3 split screens and 4 split screen forms shown in fig. 2-10, of course, the more the split screen number, the more the split screen style forms, and the one-to-one exhaustion is not performed here. And adopting a WebBrowser control to bear the webpage in the corresponding split-screen container, filling the WebBrowser control into the corresponding container of the control SplitContainer in a full mode, and bearing the webpage by the WebBrowser. And automatically generating TEXTBOX control input boxes with the same number according to the preset split screen number, wherein the TEXTBOX control input boxes correspond to different split screens respectively. After the URL address information is input by the user and the webpage address input by the user is checked to be correct, the webpage data are respectively loaded into the corresponding WebBrowser control and displayed. Meanwhile, a TIMER TIMER is used for time-sharing timing, the time interval of the TIMER is set, for example, the default time is 5 seconds, each split screen is set as the current focus screen through the GotFocus round robin of the window, the screen page is refreshed, and meanwhile, the information is guaranteed to be refreshed only in the corresponding screen through WebBrower _ NewWindow.
And each split screen supports double-click amplification to be in a single-screen mode, and the single-screen data and the corresponding split-screen data are kept consistent. And all the unified popup windows are displayed on the page of the main screen in a list form, when a line of data is clicked and viewed, the line is automatically hidden, the data is stored in historical data, and the data is marked as read in background data. When the split screen is amplified by double-clicking the split screen, the original split screen and the amplified split screen need to be refreshed at the same time interval respectively so as to ensure the data synchronization of the two screens.
The web browser in the invention comprises a web browser running in a desktop computer, a notebook computer, a mobile phone, a PDA and a tablet computer.
The invention also discloses a split-screen PC web browser system, which comprises a split-screen number and style setting module, an address input and data loading module, a time-sharing refreshing module and a popup window collection and unified popup window display processing module, wherein,
the split screen number and style setting module is used for setting the split screen number and the split screen display style displayed by the current browser;
the address input and data loading module is used for inputting URL addresses of the split screens, and loading and displaying webpage information to the split screens after confirmation;
the time-sharing refreshing module is used for realizing a time-sharing mode, ensuring that each split screen keeps a focus state and realizes real-time refreshing of data in a time-sharing state;
and the popup collecting and unified popup display processing module is used for collecting popup data of each sub-screen and uniformly popping up the popup to a total screen page in a list form.
The technical solutions provided by the embodiments of the present invention are described in detail above, and the principles and embodiments of the present invention are explained herein by using specific examples, and the descriptions of the embodiments are only used to help understanding the principles of the embodiments of the present invention; meanwhile, for a person skilled in the art, according to the embodiments of the present invention, there may be variations in the specific implementation manners and application ranges, and in summary, the content of the present description should not be construed as a limitation to the present invention.