CN103258038A - Method and device for synchronizing display modes between browser and webpage - Google Patents

Method and device for synchronizing display modes between browser and webpage Download PDF

Info

Publication number
CN103258038A
CN103258038A CN2013101837606A CN201310183760A CN103258038A CN 103258038 A CN103258038 A CN 103258038A CN 2013101837606 A CN2013101837606 A CN 2013101837606A CN 201310183760 A CN201310183760 A CN 201310183760A CN 103258038 A CN103258038 A CN 103258038A
Authority
CN
China
Prior art keywords
browser
display mode
webpage
switching
synchronous
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
CN2013101837606A
Other languages
Chinese (zh)
Other versions
CN103258038B (en
Inventor
梁捷
何小鹏
俞永福
朱顺炎
郑昊旻
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
Guangzhou Dongjing Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Dongjing Computer Technology Co Ltd filed Critical Guangzhou Dongjing Computer Technology Co Ltd
Priority to CN201310183760.6A priority Critical patent/CN103258038B/en
Publication of CN103258038A publication Critical patent/CN103258038A/en
Application granted granted Critical
Publication of CN103258038B publication Critical patent/CN103258038B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and device for synchronizing display modes between a browser and a webpage. The method for synchronizing the display modes between the browser and the webpage comprises the following steps that whether the browser or the webpage needs to switch the display mode is judged according to a display mode switch instruction, and the display mode of the browser and the display mode of the webpage are synchronized when the browser or the webpage needs to switch the display mode. According to the method and device for synchronizing the display modes between the browser and the webpage, the display modes like a night mode or a daytime mode of the browser and the webpage are unified, the change of the display mode of one part will bring about the synchronous change of the display mode of the other part, a newly loaded webpage will adapt to the display mode like the night mode of the browser, the display mode of the browser and the display mode of the webpage are well synchronized, a better webpage reading environment is provided for a user, and reading experience of the user is improved.

Description

Display mode method for synchronous and device thereof between a kind of browser and the webpage
Technical field
The present invention relates to the web browsing technology field, relate in particular to display mode method for synchronous and device thereof between a kind of browser and the webpage.
Background technology
Fast development along with information society, the electronic equipment that increasing user uses portable terminal or handheld terminal etc. to have browser function carries out information browse and web page browsing, yet the display mode of client such as browser, various application is most important, and comfortable display effect can be brought better experience and better visual effect to the user.
In the prior art, the Night that the user can often use during browsing information Night that webpage provides or browser to provide under the situation of insufficient light at night, can reduce lights such as webpage like this to the stimulation of eyes, yet for existing scheme, the Night of browser and the Night of webpage are two functions that have no to concern.
The implementation procedure of the Night of browser is: the Night of click browser popup menu, the scheme of colour of all shell interfaces elements can be changed into the scheme that adapts under the low-light (level) situation, user interface (User Interface for example, UI) Background deepening, display text color inverse etc., simultaneously, also can make web page contents adaptive.According to the difference and the technical difficulty that realize principle, be divided into and force to rewrite the text color background picture and increase the shade dual mode, content of pages is revised as the low-light (level) scheme, but this processing mode can cause webpage losing of pattern originally, perhaps cause literal to be difficult to read and picture is difficult to see clearly, user's visual effect and experience is impacted.
And the implementation procedure of the Night of webpage is: the Night button that webpage clicking provides (support of part website), can carry out corresponding JavaScript script, with (the Cascading Style Sheet of the cascade style sheet in the webpage, CSS) be substituted into the scheme of colour at night that the Web page maker provides in advance, for example background picture dims, the text color inverse, the assurance title is well arranged, reaches the Night of content of pages and literal.Though text color and reading experience can promote as far as possible, the housing parts of browser (as the function menu hurdle etc.) have no to change, still very dazzling.
In existing, the Night of browser and the Night of webpage remain two diverse functions and concept, can cause the user not good to the experience of Night, as: to obscuring of Night in the Night on the page and the browser menu; The Night of browser causes the Webpage text color to be lost, even influence is read; Under the Night of the page, the interface element of browser is still dazzling etc.
There is a kind of technical scheme in existing, effect as shown in Figure 1a, represent the night that the Web page maker directly designs webpage, the Night of webpage can accomplish webpage night reading experience maximization, but can't influence the UI element of browser, still dazzling when the user uses night; The effect of another kind of scheme is shown in Fig. 1 b, and the Night of browser is in order to realize the Night of the page, and many browsers have adopted the way of shade to reduce brightness.But, can make the contrast of literal and background diminish, make word read become difficult.
In order to solve the problem that top two kinds of schemes exist, there is another program to adopt the mode of Alternate text and background color, solved the problem of word read, but owing to unconditionally covered text color and background, cause title color and background picture to be lost, effect is shown in Fig. 1 c.
Summary of the invention
The objective of the invention is to overcome the deficiencies in the prior art, the invention provides display mode method for synchronous and device thereof between a kind of browser and the webpage, can be well the display mode between browser and the webpage synchronously, for the user provides better web page browing environment, promoted user's reading experience.
In order to address the above problem, the present invention proposes the display mode method for synchronous between a kind of browser and the webpage, described method comprises:
Whether needs carry out the switching of display mode to judge described browser or described webpage according to the display mode switching command;
When described browser or described webpage need carry out the switching of described display mode, the display mode of described browser and the display mode of described webpage are handled synchronously.
Preferably, described display mode and the step handled synchronously of the display mode of described webpage to described browser comprises:
If when described browser need carry out the display mode switching, then described webpage carried out the switching of the display mode identical with described browser simultaneously;
If when described webpage need carry out the display mode switching, then described browser carried out the switching of the display mode identical with described webpage simultaneously.
Preferably, the described webpage step of carrying out the switching of the display mode identical with described browser simultaneously comprises:
Described browser calls the corresponding JavaScript interface of described webpage;
Described browser sends switching command to described webpage;
Described webpage carries out display mode according to described switching command and switches.
Preferably, the described browser step of carrying out the switching of the display mode identical with described webpage simultaneously comprises:
In the JavaScript of described webpage, insert and trigger code;
Described triggering code is sent to described browser;
Described browser carries out display mode according to described triggering code and switches.
Preferably, described browser comprises according to the step that described triggering code carries out the display mode switching:
Described browser is resolved described triggering code;
The mode switch function that described browser calls self carries out the display mode switching.
Preferably, the described webpage step of carrying out the switching of the display mode identical with described browser simultaneously comprises:
When described webpage loaded, described webpage sent the described browser of inquiry request query and is in which kind of display mode;
After described browser receives described inquiry request, current self residing display mode state is sent to described webpage;
Described webpage carries out the display mode switching according to the display mode state of described browser.
Preferably, described display mode is Night or day inter mode.
Preferably, in the corresponding attached JavaScript file of described webpage, add a no return type, described no return type has the function of parameter, and the prototype of described no return type is: function UCWEB_switchNightMode (var isNightMode).
Preferably, obtain current self the residing display mode of described browser by the rreturn value of described browser function, the rreturn value prototype of described browser function is: function UCWEB_getNightMode (); Wherein, the rreturn value non-zero represents the current Night that is in of browser, and rreturn value is the zero current day inter mode that is in of browser that represents.
Preferably, the optional position is provided for the user and carries out the button that day display mode switches in described webpage.
Preferably, in the response events of described button, carry out following steps successively: the UCWEB_switchNightMode function that calls described webpage self; Call function UCWEB_didSwitchNightMode (var isNightMode) function of described browser and notify described browser to carry out the display mode switching, whether parameter is in Night after switching; Change the state of described button.
Preferably, the browser kernel if carry out UCWEB_getNightMode () function, then obtains the current Night that whether is in of shell of browser, and replaces UCWEB_getNightMode () function with the result when carrying out the JavaScript code.
Preferably, the browser kernel if carry out UCWEB_didSwitchNightMode () function, is then adjusted back the interface that shell switches display mode accordingly when carrying out the JavaScript code.
Correspondingly, the embodiment of the invention also provides the synchronous device of the display mode between a kind of browser and the webpage, and described device comprises:
Judge module, whether needs carry out the switching of display mode to be used for judging described browser or described webpage according to the display mode switching command;
Synchronization module is used for when described browser or described webpage need carry out the switching of described display mode the display mode of described browser and the display mode of described webpage being handled synchronously.
Preferably, described synchronization module comprises:
The webpage synchronization module is used for if described browser need carry out display mode when switching, and then described Web page module carries out the switching of the display mode identical with described browser simultaneously;
The browser synchronization module is used for if described webpage need carry out display mode when switching, and then described browser module is carried out the switching of the display mode identical with described webpage simultaneously.
In embodiments of the present invention, display modes such as the Night between browser and the webpage or day inter mode are unified, the change of either party display mode all can cause the opposing party to change synchronously, and the new webpage that loads also can the self-adaptation browser display modes such as Night, can be well the display mode between browser and the webpage synchronously, for the user provides better web page browing environment, promoted user's reading experience.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 a, 1b, 1c are the effect synoptic diagram of prior art scheme;
Fig. 2 is the schematic flow sheet of first embodiment of the display mode method for synchronous between browser of the present invention and the webpage;
Fig. 3 is the schematic flow sheet of second embodiment of the display mode method for synchronous between browser of the present invention and the webpage;
Fig. 4 is the schematic flow sheet of the 3rd embodiment of the display mode method for synchronous between browser of the present invention and the webpage;
Fig. 5 is the schematic flow sheet of the 4th embodiment of the display mode method for synchronous between browser of the present invention and the webpage;
Fig. 6 is that the structure of the browser of the embodiment of the invention and the display mode synchronous device between the webpage is formed synoptic diagram.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
In embodiments of the present invention, display mode refers to the scheme of colour of browser or webpage, comprises Night and day inter mode.
The Night of the browser of the embodiment of the invention refers to: change the scheme of colour of all shell interfaces elements of browser into the scheme that adapts under the low-light (level) situation, for example UI Background deepening, display text color inverse etc.; And the Night of webpage refers to: css in the page or leaf is replaced to the scheme of colour at night that the Web page maker provides in advance, and for example background picture dims, the text color inverse, guarantee that title is well arranged, reaches the Night of content of pages and literal.
Fig. 2 is the schematic flow sheet of first embodiment of the display mode method for synchronous between browser of the present invention and the webpage, and as shown in Figure 2, this method comprises:
S201, whether needs carry out the switching of display mode to judge browser or webpage according to the display mode switching command;
Wherein, browser refers to mobile phone, personal digital assistant (Personal Digital Assistant, PDA) etc. carry on portable terminal, computing machine, the TV, be used for loading the also application of display web page, the user can be by information such as the literal on browser view Internet or the LAN (Local Area Network), webpages.
Webpage refers to constitute the fundamental element of website, is used for the various websites of carrying and uses, and load by browser, presents various information to the user.
The switching of display mode refer to from day inter mode switch to Night or refer to and switch to a day inter mode from Night.
In an example of the present invention, S201 specifically comprises: the display mode switching command according to the user's input that receives carries out the switching of Night or day inter mode to browser, as browser display pattern switching command or web displaying pattern switching command; In like manner, also can carry out the switching of Night or day inter mode to webpage.Need to prove, this display mode switching command can be that the user imports, and also can be that other computer program sends, and specifically how to produce, do not influence enforcement of the present invention, carry out the display mode switching as long as this instruction is indication browser or webpage.
Perhaps, can preestablish the time that browser switches display mode, during with the arrival setting-up time, browser carries out display mode automatically and switches, and webpage also carries out identical display mode switching simultaneously, similarly, also can preestablish the time that webpage switches display mode.As, the time that the setting browser automatically switches to Night is 22:00, then when the time arrived 22:00, browser automatically switched to Night, and webpage also switches to Night simultaneously; Other performance roughly the same repeats no more here.
S202 when browser or webpage need carry out the switching of display mode, handles synchronously to the display mode of browser and the display mode of webpage.
Wherein, the display mode of the display mode of browser and webpage is handled synchronously specifically referred to the display mode of browser and the display mode of webpage are arranged to unified pattern.
In an example of the present invention, S202 further comprises:
If when browser need carry out the display mode switching, then webpage carried out the switching of the display mode identical with browser simultaneously;
If when webpage need carry out the display mode switching, then browser carried out the switching of the display mode identical with webpage simultaneously.
Wherein, when browser need carry out the switching of display mode, the step that webpage carries out the switching of the display mode identical with browser simultaneously comprised:
The corresponding JavaScript interface of browser invoking web page;
Browser sends switching command to webpage;
Webpage carries out display mode according to switching command and switches.
In concrete the enforcement, Fig. 3 shows the flow process of second embodiment of the display mode method for synchronous between browser of the present invention and the webpage, and as shown in Figure 3, this process comprises:
S301, whether needs carry out the switching of display mode to judge browser or webpage according to the display mode switching command;
S302, in the time of need carrying out the display mode switching as if browser, the corresponding JavaScript interface of browser invoking web page;
S303, browser sends switching command to webpage;
The S304 webpage carries out display mode according to switching command and switches.
In concrete the enforcement, when browser switches Night or day inter mode, the JavaScript interface that invoking web page provides, webpage is when receiving the JS readjustment, the Night or day inter mode that carry out in the page switch, and reach the synchronous switching of web displaying pattern.Here can in browser, add switching push button, to receive the display mode switching command of user's input.
Further, when webpage need carry out the switching of display mode, the step that browser carries out the switching of the display mode identical with webpage simultaneously comprised:
In the JavaScript of webpage, insert and trigger code;
To trigger code and send to browser;
Browser carries out the display mode switching according to triggering code.
And browser further comprises according to the step that the triggering code carries out the pattern switching:
Browser is resolved triggering code;
The mode switch function that browser calls self carries out the display mode switching.
The detailed process of the 3rd embodiment of the display mode method for synchronous between browser of the present invention and the webpage comprises as shown in Figure 4:
S401, whether needs carry out the switching of display mode to judge browser or webpage according to the display mode switching command;
S402 in the time of need carrying out the display mode switching as if webpage, inserts in the JavaScript of webpage and triggers code;
S403 will trigger code and send to browser;
S404, browser is resolved triggering code;
The mode switch function that S405, browser call self carries out the display mode switching.
During concrete enforcement, when the switching Night button on user's webpage clicking, in the middle of JavaScript, insert special code, when browser (browser) is resolved to this special marking, call the function of switching Night or day inter mode of browser itself, reach the browser display pattern synchronization and switch.
In another implementation process, when webpage loaded, webpage sent inquiry request query browser and is in which kind of display mode; After browser receives the inquiry request, current self residing display mode state is sent to webpage; Webpage carries out the display mode switching according to the display mode state of browser.
Detailed process comprises as shown in Figure 5:
S501, when webpage loaded, webpage sent inquiry request query browser and is in which kind of display mode;
After S502, browser receive the inquiry request, current self residing display mode state is sent to webpage;
S503, webpage carries out the display mode switching according to the display mode state of browser.
In concrete the enforcement, when webpage begins to load, can call special function at JavaScript, inquire whether current browser is in Night, when browser resolves arrives this section JavaScript code, the Night state variable of browser can be replaced this function.The drafting of the page afterwards will determine whether using the pattern at night according to this variable.
In embodiments of the present invention, need carry out following processing for webpage (corresponding website):
1, all need be read Night and carry out adaptive webpage, all need define a no return type in attached JavaScript file, have the function of parameter, and prototype is:
function?UCWEB_switchNightMode(var?isNightMode);
The realization of this function realizes voluntarily by the website, and the result of expectation is, when the isNightMode non-zero, the page can switch to the color matching at night, and when isNightMode was zero, the page can switch to normal color matching.
2, the scheme of colour that adopts at the beginning of webpage can be selected according to the current pattern of browser, and present mode is obtained by the rreturn value of following browser function, and prototype is:
function?UCWEB_getNightMode();
This function is called by the JS of webpage, realizes that by browser the rreturn value non-zero represents the current Night that is in of browser, and rreturn value is the zero current day inter mode that is in of browser that represents.
3, webpage can be placed a button that carries out switching day night for the user in the optional position in webpage.Owing to provide this function in the menu of browser, the website can determine the whether such button of needs of webpage according to self needs.If desired, please in the response events of button, carry out following operation successively:
(1) calls oneself function U CWEB_switchNightMode, as described in article one, carry out webpage and change skin;
(2) call browser function f unction UCWEB_didSwitchNightMode (var isNightMode) notice browser and carry out the Night switching, whether parameter is in Night after switching;
(3) change other necessary operations such as button state.
Need carry out following processing for browser:
1, the browser kernel is when carrying out the JavaScript code, as runs into UCWEB_getNightMode (), need get access to the current Night that whether is in of browser shell, and replace this function with the result;
2, the browser kernel is when carrying out the JavaScript code, as runs into UCWEB_didSwitchNightMode (), and readjustment shell that can be correct switches the interface of day Night accordingly;
3, after shell changes skin, can correctly find all just at the webpage of display window, and the function by kernel calls UCWEB_switchNightMode () wherein respectively.
In embodiments of the present invention, display modes such as the Night between browser and the webpage or day inter mode are unified, the change of either party display mode all can cause the opposing party to change synchronously, and the new webpage that loads also can the self-adaptation browser display modes such as Night, can be well the display mode between browser and the webpage synchronously, for the user provides better web page browing environment, promoted user's reading experience.
Correspondingly, the embodiment of the invention also provides the synchronous device of the display mode between a kind of browser and the webpage, and as shown in Figure 6, this device comprises:
Judge module 60, whether needs carry out the switching of display mode to be used for judging browser or webpage according to the display mode switching command;
Synchronization module 61 is used for when browser or webpage need carry out the switching of display mode the display mode of browser and the display mode of webpage being handled synchronously.
Wherein, browser refers to carry on portable terminal, computing machine, the TVs such as mobile phone, PDA, is used for loading and the application of display web page, and the user can be by information such as the literal on browser view Internet or the LAN (Local Area Network), webpages.
Webpage refers to constitute the fundamental element of website, is used for the various websites of carrying and uses, and load by browser, presents various information to the user.
The switching of display mode refer to from day inter mode switch to Night or refer to and switch to a day inter mode from Night.
In implementation process, judge module 60 can receive the display mode switching command of user's input and judge, as browser display pattern switching command or web displaying pattern switching command, can carry out the switching of Night or day inter mode according to the display mode switching command to browser, in like manner, also can carry out the switching of Night or day inter mode to webpage.
Perhaps, can preestablish the time that browser switches display mode, during with the arrival setting-up time, browser carries out display mode automatically and switches, and webpage also carries out identical display mode switching simultaneously, similarly, also can preestablish the time that webpage switches display mode.As, the time that the setting browser automatically switches to Night is 22:00, then when the time arrived 22:00, browser automatically switched to Night, and webpage also switches to Night simultaneously; Other performance roughly the same repeats no more here.
Further, synchronization module 61 comprises:
Webpage synchronization module 610 is used for if browser need carry out display mode when switching, and then webpage synchronization module 610 carries out the switching of the display mode identical with browser simultaneously;
Browser synchronization module 611 is used for if webpage need carry out pattern when switching, and then browser synchronization module 611 carries out the switching of the display mode identical with webpage simultaneously.
In concrete the enforcement, browser synchronization module 611 also is used for the corresponding JavaScript interface of invoking web page, and sends switching command to webpage synchronization module 610; Webpage synchronization module 610 also is used for carrying out display mode according to switching command and switches.Webpage synchronization module 610 also is used for inserting at the JavaScript of webpage and triggers code, and will trigger code and send to browser synchronization module 611; Browser synchronization module 611 also is used for carrying out the display mode switching according to triggering code.
Another situation, when webpage synchronization module 610 Web page loadings, webpage synchronization module 610 sends inquiry request query browser and is in which kind of pattern; After browser synchronization module 611 receives the inquiry request, current self residing display mode state is sent to webpage synchronization module 610; Webpage synchronization module 610 carries out the display mode switching of webpage according to the mode state of browser.
The implementation procedure of each functions of modules of the browser in the embodiment of the invention and the display mode synchronous device between the webpage and principle can referring among the embodiment of the display mode method for synchronous between browser of the present invention and the webpage about the description of Principle of Process, repeat no more here.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of above-described embodiment is to instruct relevant hardware to finish by program, this program can be stored in the computer-readable recording medium, storage medium can comprise: ROM (read-only memory) (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc.
In addition, more than browser that the embodiment of the invention is provided and display mode method for synchronous and the device thereof between the webpage be described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (15)

1. the display mode method for synchronous between a browser and the webpage is characterized in that described method comprises:
Whether needs carry out the switching of display mode to judge described browser or described webpage according to the display mode switching command;
When described browser or described webpage need carry out the switching of described display mode, the display mode of described browser and the display mode of described webpage are handled synchronously.
2. the display mode method for synchronous between browser as claimed in claim 1 and the webpage is characterized in that, described display mode and the step handled synchronously of the display mode of described webpage to described browser comprises:
If when described browser need carry out the display mode switching, then described webpage carried out the switching of the display mode identical with described browser simultaneously;
If when described webpage need carry out the display mode switching, then described browser carried out the switching of the display mode identical with described webpage simultaneously.
3. the display mode method for synchronous between browser as claimed in claim 2 and the webpage is characterized in that, the step that described webpage carries out the switching of the display mode identical with described browser simultaneously comprises:
Described browser calls the corresponding JavaScript interface of described webpage;
Described browser sends switching command to described webpage;
Described webpage carries out display mode according to described switching command and switches.
4. the display mode method for synchronous between browser as claimed in claim 2 and the webpage is characterized in that, the step that described browser carries out the switching of the display mode identical with described webpage simultaneously comprises:
In the JavaScript of described webpage, insert and trigger code;
Described triggering code is sent to described browser;
Described browser carries out display mode according to described triggering code and switches.
5. the display mode method for synchronous between browser as claimed in claim 4 and the webpage is characterized in that, described browser comprises according to the step that described triggering code carries out the display mode switching:
Described browser is resolved described triggering code;
The mode switch function that described browser calls self carries out the display mode switching.
6. the display mode method for synchronous between browser as claimed in claim 2 and the webpage is characterized in that, the step that described webpage carries out the switching of the display mode identical with described browser simultaneously comprises:
When described webpage loaded, described webpage sent the described browser of inquiry request query and is in which kind of display mode;
After described browser receives described inquiry request, current self residing display mode state is sent to described webpage;
Described webpage carries out the display mode switching according to the display mode state of described browser.
7. as the display mode method for synchronous between any described browser of claim 1 to 6 and the webpage, it is characterized in that described display mode is Night or day inter mode.
8. as the display mode method for synchronous between any described browser of claim 1 to 6 and the webpage, it is characterized in that, in the corresponding attached JavaScript file of described webpage, add a no return type, described no return type has the function of parameter, and the prototype of described no return type is: function UCWEB_switchNightMode (var isNightMode).
9. the display mode method for synchronous between browser as claimed in claim 6 and the webpage, it is characterized in that, obtain current self the residing display mode of described browser by the rreturn value of described browser function, the rreturn value prototype of described browser function is: function UCWEB_getNightMode (); Wherein, the rreturn value non-zero represents the current Night that is in of browser, and rreturn value is the zero current day inter mode that is in of browser that represents.
10. as the display mode method for synchronous between claim 2 or 3 described browsers and the webpage, it is characterized in that the optional position is provided for the user and carries out the button that day display mode switches in described webpage.
11. the display mode method for synchronous between browser as claimed in claim 10 and the webpage is characterized in that, carries out following steps in the response events of described button successively: the UCWEB_switchNightMode function that calls described webpage self; Call function UCWEB_didSwitchNightMode (var isNightMode) function of described browser and notify described browser to carry out the display mode switching, whether parameter is in Night after switching; Change the state of described button.
12. the display mode method for synchronous between browser as claimed in claim 9 and the webpage, it is characterized in that, the browser kernel is when carrying out the JavaScript code, if carry out UCWEB_getNightMode () function, then obtain the current Night that whether is in of shell of browser, and replace UCWEB_getNightMode () function with the result.
13. the display mode method for synchronous between browser as claimed in claim 11 and the webpage, it is characterized in that, the browser kernel if carry out UCWEB_didSwitchNightMode () function, is then adjusted back the interface that shell switches display mode accordingly when carrying out the JavaScript code.
14. the display mode synchronous device between a browser and the webpage is characterized in that described device comprises:
Judge module, whether needs carry out the switching of display mode to be used for judging described browser or described webpage according to the display mode switching command;
Synchronization module is used for when described browser or described webpage need carry out the switching of described display mode the display mode of described browser and the display mode of described webpage being handled synchronously.
15. the display mode synchronous device as between browser as described in the claim 14 and the webpage is characterized in that described synchronization module comprises:
The webpage synchronization module is used for if described browser need carry out display mode when switching, and then described Web page module carries out the switching of the display mode identical with described browser simultaneously;
The browser synchronization module is used for if described webpage need carry out display mode when switching, and then described browser module is carried out the switching of the display mode identical with described webpage simultaneously.
CN201310183760.6A 2013-05-17 2013-05-17 Method and device for synchronizing display modes between browser and webpage Active CN103258038B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310183760.6A CN103258038B (en) 2013-05-17 2013-05-17 Method and device for synchronizing display modes between browser and webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310183760.6A CN103258038B (en) 2013-05-17 2013-05-17 Method and device for synchronizing display modes between browser and webpage

Publications (2)

Publication Number Publication Date
CN103258038A true CN103258038A (en) 2013-08-21
CN103258038B CN103258038B (en) 2017-02-22

Family

ID=48961955

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310183760.6A Active CN103258038B (en) 2013-05-17 2013-05-17 Method and device for synchronizing display modes between browser and webpage

Country Status (1)

Country Link
CN (1) CN103258038B (en)

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103761090A (en) * 2014-01-14 2014-04-30 北京京东尚科信息技术有限公司 Application display mode adjustment method and device for mobile terminal
CN104050292A (en) * 2014-06-30 2014-09-17 北京奇虎科技有限公司 Traffic-saving mode search service method, server, client and system
CN104252362A (en) * 2014-09-26 2014-12-31 可牛网络技术(北京)有限公司 Web page showing method and web page showing device
CN104462312A (en) * 2014-11-28 2015-03-25 北京奇虎科技有限公司 Web page displaying method and browser client side
WO2015165216A1 (en) * 2014-04-29 2015-11-05 广州市动景计算机科技有限公司 Browsing mode switching method and device
CN105049623A (en) * 2015-07-08 2015-11-11 广东欧珀移动通信有限公司 Method and device enabling browser of a mobile terminal to automatically quit night mode
CN105072258A (en) * 2015-07-16 2015-11-18 广东欧珀移动通信有限公司 Mobile terminal profile switching method, apparatus, and mobile terminal
CN105094323A (en) * 2015-07-09 2015-11-25 努比亚技术有限公司 Method and apparatus for setting night mode of terminal
CN105162975A (en) * 2015-08-19 2015-12-16 北京金山安全软件有限公司 Night mode closing method and device
CN105320516A (en) * 2014-08-04 2016-02-10 中国移动通信集团浙江有限公司 Webpage display method and device
CN105446786A (en) * 2015-12-30 2016-03-30 广东欧珀移动通信有限公司 Interactive interface mode switching method and apparatus
CN105511717A (en) * 2015-11-30 2016-04-20 北京京东尚科信息技术有限公司 Page display method and page display device
CN105528389A (en) * 2015-11-09 2016-04-27 上海二三四五网络科技有限公司 A logic control method and device based on mobile phone browser core
CN105701165A (en) * 2015-12-30 2016-06-22 广东欧珀移动通信有限公司 Browser mode switching method and switching device
US20160188552A1 (en) * 2014-12-25 2016-06-30 Guangzhou Ucweb Computer Technology Co., Ltd. Method, device and mobile terminal for processiong webpage in night mode
CN105893021A (en) * 2015-12-21 2016-08-24 乐视致新电子科技(天津)有限公司 Method and device for switching brightness mode
CN105979392A (en) * 2015-09-14 2016-09-28 乐视致新电子科技(天津)有限公司 Webpage display method and browser
CN106469439A (en) * 2016-08-30 2017-03-01 乐视控股(北京)有限公司 The processing method and processing device of picture in a kind of Night
CN109614192A (en) * 2018-12-07 2019-04-12 北京金山云网络技术有限公司 Page brightness display methods and device
CN112331158A (en) * 2020-11-18 2021-02-05 北京小米移动软件有限公司 Terminal display adjusting method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1175050A (en) * 1996-08-07 1998-03-04 住友电装株式会社 Image display device and brightness control method
CN1952681A (en) * 2006-11-16 2007-04-25 凯立德欣技术(深圳)有限公司 Control method, device and equipment of GPS navigation display mode
CN103543919A (en) * 2012-07-09 2014-01-29 腾讯科技(深圳)有限公司 Webpage content display switching method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1175050A (en) * 1996-08-07 1998-03-04 住友电装株式会社 Image display device and brightness control method
CN1952681A (en) * 2006-11-16 2007-04-25 凯立德欣技术(深圳)有限公司 Control method, device and equipment of GPS navigation display mode
CN103543919A (en) * 2012-07-09 2014-01-29 腾讯科技(深圳)有限公司 Webpage content display switching method and device

Cited By (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103761090A (en) * 2014-01-14 2014-04-30 北京京东尚科信息技术有限公司 Application display mode adjustment method and device for mobile terminal
CN105094759B (en) * 2014-04-29 2019-01-22 广州市动景计算机科技有限公司 A kind of browse mode switching handling method and device
WO2015165216A1 (en) * 2014-04-29 2015-11-05 广州市动景计算机科技有限公司 Browsing mode switching method and device
CN105094759A (en) * 2014-04-29 2015-11-25 广州市动景计算机科技有限公司 Browse mode switch treatment method and device
CN104050292A (en) * 2014-06-30 2014-09-17 北京奇虎科技有限公司 Traffic-saving mode search service method, server, client and system
CN105320516A (en) * 2014-08-04 2016-02-10 中国移动通信集团浙江有限公司 Webpage display method and device
CN105320516B (en) * 2014-08-04 2019-06-21 中国移动通信集团浙江有限公司 A kind of display methods and device of webpage
CN104252362B (en) * 2014-09-26 2018-03-30 可牛网络技术(北京)有限公司 Webpage exhibiting method and device
CN104252362A (en) * 2014-09-26 2014-12-31 可牛网络技术(北京)有限公司 Web page showing method and web page showing device
CN104462312A (en) * 2014-11-28 2015-03-25 北京奇虎科技有限公司 Web page displaying method and browser client side
US10409899B2 (en) * 2014-12-25 2019-09-10 Guangzhou Ucweb Computer Technology Co., Ltd. Method, device and mobile terminal for processing webpage in night mode
CN105786924A (en) * 2014-12-25 2016-07-20 广州市动景计算机科技有限公司 Webpage night mode processing method and apparatus, and mobile terminal
CN105786924B (en) * 2014-12-25 2020-03-31 广州市动景计算机科技有限公司 Webpage night mode processing method and device and mobile terminal
US20160188552A1 (en) * 2014-12-25 2016-06-30 Guangzhou Ucweb Computer Technology Co., Ltd. Method, device and mobile terminal for processiong webpage in night mode
CN105049623A (en) * 2015-07-08 2015-11-11 广东欧珀移动通信有限公司 Method and device enabling browser of a mobile terminal to automatically quit night mode
CN105094323A (en) * 2015-07-09 2015-11-25 努比亚技术有限公司 Method and apparatus for setting night mode of terminal
CN105072258B (en) * 2015-07-16 2018-09-11 广东欧珀移动通信有限公司 Scene modes of mobile terminal switching method, device and mobile terminal
CN105072258A (en) * 2015-07-16 2015-11-18 广东欧珀移动通信有限公司 Mobile terminal profile switching method, apparatus, and mobile terminal
CN105162975A (en) * 2015-08-19 2015-12-16 北京金山安全软件有限公司 Night mode closing method and device
CN105979392A (en) * 2015-09-14 2016-09-28 乐视致新电子科技(天津)有限公司 Webpage display method and browser
CN105528389A (en) * 2015-11-09 2016-04-27 上海二三四五网络科技有限公司 A logic control method and device based on mobile phone browser core
CN105511717B (en) * 2015-11-30 2019-07-02 北京京东尚科信息技术有限公司 Page display method and page display device
CN105511717A (en) * 2015-11-30 2016-04-20 北京京东尚科信息技术有限公司 Page display method and page display device
CN105893021A (en) * 2015-12-21 2016-08-24 乐视致新电子科技(天津)有限公司 Method and device for switching brightness mode
CN105701165B (en) * 2015-12-30 2019-08-13 Oppo广东移动通信有限公司 Browser model switching method and switching device
CN105446786A (en) * 2015-12-30 2016-03-30 广东欧珀移动通信有限公司 Interactive interface mode switching method and apparatus
CN105701165A (en) * 2015-12-30 2016-06-22 广东欧珀移动通信有限公司 Browser mode switching method and switching device
CN106469439A (en) * 2016-08-30 2017-03-01 乐视控股(北京)有限公司 The processing method and processing device of picture in a kind of Night
CN109614192A (en) * 2018-12-07 2019-04-12 北京金山云网络技术有限公司 Page brightness display methods and device
CN112331158A (en) * 2020-11-18 2021-02-05 北京小米移动软件有限公司 Terminal display adjusting method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN103258038B (en) 2017-02-22

Similar Documents

Publication Publication Date Title
CN103258038A (en) Method and device for synchronizing display modes between browser and webpage
CN112099790B (en) Method, device, equipment and storage medium for determining page theme
JP2020504865A (en) Application data processing method, apparatus, and storage medium
CN103376974A (en) Window switching method and device
CN103631958A (en) Method for multi-screen content display in automatic page matching mode
CN103309560A (en) Multi-interface information display method and terminal
CN102682093A (en) Web page sectionally-loading method and web page sectionally-loading system for mobile browser
CN109842818A (en) A kind of video broadcasting method, device, computer equipment and storage medium
CN105094759A (en) Browse mode switch treatment method and device
WO2014032589A1 (en) Window switching method and apparatus
CN103530160A (en) Page loading method and device
CN103543925A (en) Method and device for operating pictures
CN103970839A (en) Method for controlling webpage browsing through voice
CN104238867B (en) The display methods and device of label data
KR20220127334A (en) Table browsing methods, devices, electronic devices and storage media in documents
CN103150357A (en) Browser, system and method capable of realizing compare search
CN103870123A (en) Information processing method and electronic equipment
CN105701165A (en) Browser mode switching method and switching device
CN102122245A (en) Method and system for generating configuration item setting interface
CN105808307B (en) Page display method and device
CN106201155A (en) Method for displaying user interface and system
CN105373557A (en) Content synchronization method and device
CN104572981A (en) Web page caching method and mobile terminal device
CN102314468A (en) Synchronous browse method
CN104951309B (en) The page decoration method and system of displaying sytlized font and a kind of client device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200526

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

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

Address before: 2, 16, 301 rooms, 510665 Yun Yun Road, Tianhe District, Guangdong, Guangzhou

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

TR01 Transfer of patent right