CN103473047A - Method and device for managing tab background in browser and client - Google Patents

Method and device for managing tab background in browser and client Download PDF

Info

Publication number
CN103473047A
CN103473047A CN2013103853124A CN201310385312A CN103473047A CN 103473047 A CN103473047 A CN 103473047A CN 2013103853124 A CN2013103853124 A CN 2013103853124A CN 201310385312 A CN201310385312 A CN 201310385312A CN 103473047 A CN103473047 A CN 103473047A
Authority
CN
China
Prior art keywords
code information
text code
shipping options
options page
browser
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
CN2013103853124A
Other languages
Chinese (zh)
Other versions
CN103473047B (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.)
Beijing Kingsoft Internet Security Software Co Ltd
Conew Network Technology Beijing Co Ltd
Shell Internet Beijing Security Technology Co Ltd
Zhuhai Juntian Electronic Technology Co Ltd
Beijing Kingsoft Internet Science and Technology Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Conew Network Technology Beijing Co Ltd
Shell Internet Beijing Security Technology Co Ltd
Zhuhai Juntian Electronic Technology Co Ltd
Beijing Kingsoft Internet Science and 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 Beijing Kingsoft Internet Security Software Co Ltd, Conew Network Technology Beijing Co Ltd, Shell Internet Beijing Security Technology Co Ltd, Zhuhai Juntian Electronic Technology Co Ltd, Beijing Kingsoft Internet Science and Technology Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201310385312.4A priority Critical patent/CN103473047B/en
Publication of CN103473047A publication Critical patent/CN103473047A/en
Application granted granted Critical
Publication of CN103473047B publication Critical patent/CN103473047B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method and a device for managing tab backgrounds in a browser and a client. The method comprises the following steps: acquiring a picture file selected by a user; acquiring picture coding information corresponding to the picture file, and converting the picture coding information according to a preset text coding mode to generate text coding information; and generating the background of the label page according to the text coding information. According to the method provided by the embodiment of the invention, a user can select a favorite picture file as the background of the new tab page of the browser through multiple ways, so that the operation is more convenient and simpler when the user sets the background of the new tab page of the browser, and better visual experience is obtained by changing the background of the new tab page. In addition, when the user replaces the background of the new tab page, the speed of loading the background of the new tab page by the browser is increased, the consumption of system resources is reduced, and the user experience is further improved.

Description

The management method of Shipping Options Page background, device and client in browser
Technical field
The present invention relates to field of computer technology, relate in particular to management method, device and the client of Shipping Options Page background in a kind of browser.
Background technology
Along with being gradually improved of network technology, the use of browser is also more and more universal, and the function of browser is also thereupon more diversified.Wherein, the new page that Shipping Options Page is user's access frequency, number of times is the highest in browser, the aesthetic measure of the page directly affects user's experience.At present, in general the new Shipping Options Page of browser all is comprised of white background and a plurality of graphics shape of clicking access.
In realizing process of the present invention, the inventor finds that at least there is following problem in prior art: the background of the new Shipping Options Page of browser design usually is very simple and crude, the display effect of background is more dull, and the user only can select picture file context vault by the uploading pictures file or from acquiescence, the background of new Shipping Options Page is arranged.Often size is larger for the picture file of selecting due to the user, while causing the user to start the new Shipping Options Page of browser, need to load very large picture at every turn, causes the browser loading velocity very slow, poor user experience.In addition, because new Shipping Options Page makes the page that user's access frequency is relatively high, it is poor that the aesthetic measure of new Shipping Options Page hangs down the visual experience that directly has influence on the user, but same because the size of picture is larger, cause the replacement of new Shipping Options Page background very consuming time, also expend very much system resource, therefore directly affected the interest that the user replaces the Shipping Options Page background picture simultaneously.
Summary of the invention
The present invention is intended at least one of solve the problems of the technologies described above.
For this reason, first purpose of the present invention is to propose the management method of Shipping Options Page background in a kind of browser.The method user can select the picture file oneself the liked background as the new Shipping Options Page of browser by number of ways, more convenient to operate succinct while making the user that the new Shipping Options Page background of browser is set, obtain better visual experience by the background that changes new Shipping Options Page.In addition, encode and convert the coding of graphics information of the picture file of user's selection to text code information by base64, and by the text code information cache in local storage, can be when the user more renews the Shipping Options Page background, improve the speed that browser loads new Shipping Options Page background, reduce expending of system resource, further promote the user and experience.
Second purpose of the present invention is to propose the management devices of Shipping Options Page background in a kind of browser.
The 3rd purpose of the present invention is to propose a kind of client.
To achieve these goals, the management method of Shipping Options Page background in the browser of first aspect present invention embodiment comprises the following steps: obtain the picture file that the user selects; Obtain the coding of graphics information that described picture file is corresponding, and according to the pre-set text coded system, described coding of graphics information is changed to generate text code information; And according to the background of described text code Information generation Shipping Options Page.
Management method according to Shipping Options Page background in the browser of the embodiment of the present invention, the user can select the picture file oneself the liked background as the new Shipping Options Page of browser by number of ways, more convenient to operate succinct while making the user that the new Shipping Options Page background of browser is set, obtain better visual experience by the background that changes new Shipping Options Page.In addition, encode and convert the coding of graphics information of the picture file of user's selection to text code information by base64, and by the text code information cache in local storage, can be when the user more renews the Shipping Options Page background, improve the speed that browser loads new Shipping Options Page background, reduce expending of system resource, further promote the user and experience.
To achieve these goals, the management devices of Shipping Options Page background in the browser of second aspect present invention embodiment comprises: the first acquisition module, the picture file of selecting for obtaining the user; The second acquisition module, for obtaining the coding of graphics information that described picture file is corresponding; Modular converter, for being changed to generate text code information according to the pre-set text coded system to described coding of graphics information; And generation module, for the background according to described text code Information generation Shipping Options Page.
Management devices according to Shipping Options Page background in the browser of the embodiment of the present invention, the user can select the picture file oneself the liked background as the new Shipping Options Page of browser by number of ways, more convenient to operate succinct while making the user that the new Shipping Options Page background of browser is set, obtain better visual experience by the background that changes new Shipping Options Page.In addition, encode and convert the coding of graphics information of the picture file of user's selection to text code information by base64, and by the text code information cache in local storage, can be when the user more renews the Shipping Options Page background, improve the speed that browser loads new Shipping Options Page background, reduce expending of system resource, further promote the user and experience.
To achieve these goals, the client of third aspect present invention embodiment comprises: shell, screen, processor and circuit board; Described screen is placed on described shell, and described circuit board is placed in the interior volume that described shell surrounds, and described processor is arranged on described circuit board; Described processor is for the treatment of data, specifically for: obtain the picture file that the user selects; Obtain the coding of graphics information that described picture file is corresponding, and according to the pre-set text coded system, described coding of graphics information is changed to generate text code information; And according to the background of described text code Information generation Shipping Options Page.
Client according to the embodiment of the present invention, the user can select the picture file oneself the liked background as the new Shipping Options Page of browser by number of ways, more convenient to operate succinct while making the user that the new Shipping Options Page background of browser is set, obtain better visual experience by the background that changes new Shipping Options Page.In addition, encode and convert the coding of graphics information of the picture file of user's selection to text code information by base64, and by the text code information cache in local storage, can be when the user more renews the Shipping Options Page background, improve the speed that browser loads new Shipping Options Page background, reduce expending of system resource, further promote the user and experience.
The aspect that the present invention is additional and advantage part in the following description provide, and part will become obviously from the following description, or recognize by practice of the present invention.
The accompanying drawing explanation
Above-mentioned and/or the additional aspect of the present invention and advantage will become from the following description of the accompanying drawings of embodiments and obviously and easily understand, wherein,
Fig. 1 is the process flow diagram of the management method of Shipping Options Page background in browser according to an embodiment of the invention;
Fig. 2 is the process flow diagram of the management method of Shipping Options Page background in the browser of the specific embodiment according to the present invention;
Fig. 3 is the process flow diagram of the management method of Shipping Options Page background in the browser of another specific embodiment according to the present invention
Fig. 4 is the structural representation of the management devices of Shipping Options Page background in browser according to an embodiment of the invention;
Fig. 5 is the structural representation of the management devices of Shipping Options Page background in the browser of the specific embodiment according to the present invention;
Fig. 6 is the structural representation of the management devices of Shipping Options Page background in the browser of another specific embodiment according to the present invention; And
Fig. 7 is the structural representation of the management devices of Shipping Options Page background in the browser of another specific embodiment according to the present invention.
Fig. 8 is the structural representation of the management devices of Shipping Options Page background in the browser of another specific embodiment according to the present invention.
Embodiment
Below describe embodiments of the invention in detail, the example of embodiment is shown in the drawings, and wherein same or similar label means same or similar element or the element with identical or similar functions from start to finish.Be exemplary below by the embodiment be described with reference to the drawings, only for explaining the present invention, and can not be interpreted as limitation of the present invention.On the contrary, embodiments of the invention comprise spirit and interior all changes, modification and the equivalent of intension scope that falls into additional claims.
In description of the invention, it will be appreciated that, term " first ", " second " etc. are only for describing purpose, and can not be interpreted as indication or hint relative importance.In description of the invention, it should be noted that, unless otherwise clearly defined and limited, term " is connected ", " connection " should do broad understanding, for example, can be to be fixedly connected with, and can be also to removably connect, or connects integratedly; Can be mechanical connection, can be also to be electrically connected to; Can be directly to be connected, also can indirectly be connected by intermediary.For the ordinary skill in the art, can concrete condition understand above-mentioned term concrete meaning in the present invention.In addition, in description of the invention, except as otherwise noted, the implication of " a plurality of " is two or more.
In process flow diagram or any process of otherwise describing at this or method describe and can be understood to, mean to comprise one or more module, fragment or part for the code of the executable instruction of the step that realizes specific logical function or process, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can be not according to order shown or that discuss, comprise according to related function by the mode of basic while or by contrary order, carry out function, this should be understood by the embodiments of the invention person of ordinary skill in the field.
Below with reference to accompanying drawing, management method, device and the client according to Shipping Options Page background in the browser of the embodiment of the present invention described.
At present, the new Shipping Options Page of browser all is comprised of white background and a plurality of graphics shape of clicking access, for example, and the browser Chrome of Google, a web browser that red fox browser Firefox, IE(Microsoft release, Internet Explorer) browser such as.The equal design comparison of the background of these browsers is simple and crude, and the mode that the user arranges background is single, poor user experience.If the user can be customized the style of the new Shipping Options Page of browser and be revised, for example, background is set, revise font etc., and the background to customization is carried out caching process, thus, can improve the aesthetic measure of the new Shipping Options Page of browser, and improve the speed that background shows, promoted user's experience.The management method of Shipping Options Page background in a kind of browser is proposed for this reason.
Fig. 1 is the process flow diagram of the management method of Shipping Options Page background in browser according to an embodiment of the invention, and Fig. 2 is the process flow diagram of the management method of Shipping Options Page background in the browser of the specific embodiment according to the present invention.As depicted in figs. 1 and 2, in browser, the management method of Shipping Options Page background comprises the following steps.
S11, obtain the picture file that the user selects.
In one embodiment of the invention, the picture file that the user selects comprises the picture file of user by selecting window selection or moves to the picture of Shipping Options Page.Particularly, browser can obtain the picture file of user by selecting window selection, that is to say, browser can receive the user and call the local file selector switch, the picture file of storing in the local storage of selection.In addition, browser also can obtain the picture that the user is drawn to Shipping Options Page, that is to say that the picture file that the user also can like oneself is drawn in the new Shipping Options Page of browser, for example, the user can be drawn to picture file in webpage or in local file etc. in new Shipping Options Page.
S12, obtain the coding of graphics information that picture file is corresponding, and according to the pre-set text coded system, coding of graphics information is changed to generate text code information.
In one embodiment of the invention, default coded system is the base64 coding.Wherein, the base64 coding is a kind of for transmitting the text code mode of 8Bit syllabified code.Particularly, after browser receives the picture file of storing in user by selecting window selection local storage, browser can return to client by the path of picture file, client can be obtained according to the path of picture file the coding of graphics information of picture file, and the interface of the base64 provided by client coding, convert the coding of graphics information of picture file to base64 text code information.In addition, if the user is drawn to the picture file of storing in local storage in the new Shipping Options Page of browser, client can be by the HTML5(Hypertext Markup Language5 in client, HTML (Hypertext Markup Language)) file interface File API, directly obtain the base64 text code information of this picture file.Wherein, File API is a set of powerful API(Application Programming Interface, application programming interface), it can allow the developer process the file that comes from the user file system, and can allow the developer use these files in web application, all operations is all processed in this locality, without processing on server; If perhaps the user is drawn to the picture file in webpage in the new Shipping Options Page of browser, client can be by the Drag&amp of HTML5; The Drop program is directly obtained the base64 text code information of this picture file.Wherein, Drag& The Drop program can be carried out transcoding to picture file in webpage according to user's drag operation.
S13, according to the background of text code Information generation Shipping Options Page.
Wherein, step S13 further comprises:
S131, loading text coded message in browser.
S132, in browser, text code information is played up, to pass through CSS(Cascading Style Sheets, CSS (cascading style sheet) is single, a kind of computerese that is used for showing the file patterns such as HTML or XML) by the background of the described Shipping Options Page of described text code Information generation.
In one embodiment of the invention, by the text code information cache at browser, and set up the corresponding relation of text code information and Shipping Options Page, and receive the instruction that the user opens new Shipping Options Page, and call text code information to generate the background of new Shipping Options Page according to corresponding relation.Particularly, browser can be by the text code information cache that is converted to base64 coding in local storage, and sets up the corresponding relation of this paper coded message and new Shipping Options Page, for example, sets up the mapping table of text code information and new Shipping Options Page.When if the user newly increases Shipping Options Page, browser according to the mapping relations fast finding to corresponding text code information, and according to the background of the new Shipping Options Page of text code Information generation browser.Thus, can greatly promote the speed of browser display background.Should understand, step in the embodiment of the present invention can be after step S12, also can be after step S13, after according to the pre-set text coded system, coding of graphics information being changed to generate text code information, by the text code information cache in local storage, perhaps after the background according to text code Information generation Shipping Options Page, by the text code information cache in local storage.
Management method according to Shipping Options Page background in the browser of the embodiment of the present invention, the user can select the picture file oneself the liked background as the new Shipping Options Page of browser by number of ways, more convenient to operate succinct while making the user that the new Shipping Options Page background of browser is set, obtain better visual experience by the background that changes new Shipping Options Page.In addition, encode and convert the coding of graphics information of the picture file of user's selection to text code information by base64, and by the text code information cache in local storage, can be when the user more renews the Shipping Options Page background, improve the speed that browser loads new Shipping Options Page background, reduce expending of system resource, further promote the user and experience.
Fig. 3 is the process flow diagram of the management method of Shipping Options Page background in the browser of another specific embodiment according to the present invention.The user is except can customize the background of the new Shipping Options Page of browser, the background that also can receive official pushes, and the background pushed by official is upgraded the background of new Shipping Options Page, particularly, as shown in Figure 2, in browser, the management method of Shipping Options Page background comprises the following steps.
S31, obtain the picture file that the user selects.
In one embodiment of the invention, the picture file that the user selects comprises the picture file of user by selecting window selection or moves to the picture of Shipping Options Page.
S32, obtain the coding of graphics information that picture file is corresponding, and according to the pre-set text coded system, coding of graphics information is changed to generate text code information.
In one embodiment of the invention, default coded system is the base64 coding.
S33, according to the background of text code Information generation Shipping Options Page.
Wherein, step S33 further comprises:
S331, loading text coded message in browser.
S332 is played up text code information in browser, to pass through the single CSS of CSS (cascading style sheet) by the background of text code Information generation Shipping Options Page.
In one embodiment of the invention, by the text code information cache at browser, and set up the corresponding relation of text code information and Shipping Options Page, and receive the instruction that the user opens new Shipping Options Page, and call text code information to generate the background of new Shipping Options Page according to corresponding relation.
S34, receive the text code information that cloud server pushes, and the text code information of the text code information updating local cache pushed according to cloud server, with the text code information call renewal when opening new Shipping Options Page after.
Particularly, the user subscribes to the background of the new Shipping Options Page of browser beyond the clouds in server.While in cloud server, having the new Shipping Options Page background of upgrading, cloud server can, when the user starts browser application, push base64 text code information corresponding to new Shipping Options Page background of upgrading to browser.After browser receives the text code information of cloud server propelling movement, can to the text code information be buffered in local storage, be upgraded according to text coded message, browser can call the text code information after renewal, and generates the background of new Shipping Options Page according to text coded message.
In addition, the user also can be in browser setup and use User Defined picture file or the picture file that uses high in the clouds to push as the priority of the background of new Shipping Options Page.For example, can arrange in menu at browser " receiving official's theme background pushes " option is set, if the user has chosen this option, the priority that browser is determined the picture file that cloud server pushes is higher than user-defined picture file, and the picture file that browser preferentially uses cloud server to push is as the background of new Shipping Options Page.
Should be understood that the coded message of the picture file except selecting according to the user generates the background of new Shipping Options Page, the background of the new Shipping Options Page of text code Information generation that also can push by the reception cloud server, these two kinds of modes provide different selections for the user.
Management method according to Shipping Options Page background in the browser of the embodiment of the present invention, the text code information pushed by receiving cloud server, and the text code information of renewal local cache, the picture file that can use cloud server to push is as the background of new Shipping Options Page, for the user provides more more options, further promote the user and experience.
In order to realize above-described embodiment, the present invention also proposes the management devices of Shipping Options Page background in a kind of browser.
Fig. 4 is the structural representation of the management devices of Shipping Options Page background in browser according to an embodiment of the invention.
As shown in Figure 4, in browser, the management devices of Shipping Options Page background comprises: the first acquisition module 100, the second acquisition module 200, modular converter 300 and the first generation module 400.
Particularly, the picture file that the first acquisition module 100 is selected for obtaining the user.Wherein, the picture file that the user selects comprises the picture file of user by selecting window selection or moves to the picture of Shipping Options Page.
The second acquisition module 200 is for obtaining the coding of graphics information that picture file is corresponding.More specifically, after the first acquisition module 100 receives the picture file of storing in user by selecting window selection local storage, the first acquisition module 100 can return to client by the path of picture file, the second acquisition module 200 can obtain the coding of graphics information of picture file according to the path of picture file
Modular converter 300 is for being changed to generate text code information according to the pre-set text coded system to coding of graphics information.Wherein, default coded system is the base64 coding.More specifically, the base64 coding is a kind of for transmitting the text code mode of 8Bit syllabified code.The interface of the base64 coding that modular converter 300 provides by client, convert the coding of graphics information of picture file to base64 text code information.In addition, if the user is drawn to the picture file of storing in local storage in the new Shipping Options Page of browser, modular converter 300 can be by the HTML5(Hypertext Markup Language5 in client, HTML (Hypertext Markup Language)) file interface File API, directly obtain the base64 text code information of this picture file.Wherein, File API is a set of powerful API(Application Programming Interface, application programming interface), it can allow the developer process the file that comes from the user file system, and can allow the developer use these files in web application, all operations is all processed in this locality, without processing on server; If perhaps the user is drawn to the picture file in webpage in the new Shipping Options Page of browser, modular converter 300 can be by the Drag&amp of HTML5; The Drop program is directly obtained the base64 text code information of this picture file.Wherein, Drag& The Drop program can be carried out transcoding to picture file in webpage according to user's drag operation.
The first generation module 400 is for the background according to text code Information generation Shipping Options Page.
Management devices according to Shipping Options Page background in the browser of the embodiment of the present invention, the user can select the picture file oneself the liked background as the new Shipping Options Page of browser by number of ways, more convenient to operate succinct while making the user that the new Shipping Options Page background of browser is set, obtain better visual experience by the background that changes new Shipping Options Page.In addition, encode and convert the coding of graphics information of the picture file of user's selection to text code information by base64, and by the text code information cache in local storage, can be when the user more renews the Shipping Options Page background, improve the speed that browser loads new Shipping Options Page background, reduce expending of system resource, further promote the user and experience.
Fig. 5 is the structural representation of the management devices of Shipping Options Page background in the browser of the specific embodiment according to the present invention.
As shown in Figure 5, in browser, the management devices of Shipping Options Page background comprises: the first acquisition module 100, the second acquisition module 200, modular converter 300 and the first generation module 400, wherein, the first generation module 400 comprises: loading unit 410 and rendering unit 420.
Particularly, loading unit 410 is in browser loading text coded message.
Rendering unit 420 is at browser, text code information being played up, to pass through the single CSS of CSS (cascading style sheet) by the background of the described Shipping Options Page of described text code Information generation.
According to the management devices of Shipping Options Page background in the browser of the embodiment of the present invention, browser, by text code information is loaded and plays up, can generate the background of browser Shipping Options Page.
Fig. 6 is the structural representation of the management devices of Shipping Options Page background in the browser of another specific embodiment according to the present invention.
As shown in Figure 6, in browser, the management devices of Shipping Options Page background comprises: the first acquisition module 100, the second acquisition module 200, modular converter 300, the first generation module 400, memory module 500, the first receiver module 600 and the second generation module 700, wherein, the first generation module 400 comprises: loading unit 410 and rendering unit 420.
Particularly, memory module 500 for by the text code information cache in this locality, and set up the corresponding relation of text code information and Shipping Options Page, call the background of text code information as Shipping Options Page when newly-increased Shipping Options Page.More specifically, memory module 500 can be by the text code information cache that is converted to base64 coding in local storage, and sets up the corresponding relation of this paper coded message and new Shipping Options Page, for example, sets up the mapping table of text code information and new Shipping Options Page.
The first receiver module 600 is opened the instruction of new Shipping Options Page for receiving the user.
The second generation module 700 is for calling the background of text code information with the generating labels page according to corresponding relation.More specifically, if when the user newly increases Shipping Options Page, the second generation module 700 according to the mapping relations fast finding to corresponding text code information, and according to the background of the new Shipping Options Page of text code Information generation browser.
According to the management devices of Shipping Options Page background in the browser of the embodiment of the present invention, browser, by text code information is loaded and carries out buffer memory, can promote the speed of the new Shipping Options Page background of browser display greatly.
Fig. 7 is the structural representation of the management devices of Shipping Options Page background in the browser of another specific embodiment according to the present invention.
As shown in Figure 7, in browser, the management devices of Shipping Options Page background comprises: the first acquisition module 100, the second acquisition module 200, modular converter 300, the first generation module 400, memory module 500, the first receiver module 600, the second generation module 700, the second receiver module 800 and update module 900, wherein, the first generation module 400 comprises: loading unit 410 and rendering unit 420.
Particularly, the text code information that the second receiver module 800 pushes for receiving cloud server.More specifically, the user subscribes to the background of the new Shipping Options Page of browser beyond the clouds in server.While in cloud server, having the new Shipping Options Page background of upgrading, cloud server can, when the user starts browser application, push to the second receiver module 800 base64 text code information corresponding to new Shipping Options Page background of upgrading.
Update module 900 is for the text code information of the text code information updating local cache according to the cloud server propelling movement, with the text code information call renewal when opening new Shipping Options Page after.More specifically, after the second receiver module 800 receives the text code information of cloud server propelling movement, update module 900 can be upgraded the text code information be buffered in local storage according to text coded message, and the first generation module 400 generates the background of new Shipping Options Page according to text coded message.
In addition, the user also can be in browser setup and use User Defined picture file or the picture file that uses high in the clouds to push as the priority of the background of new Shipping Options Page.For example, can arrange in menu at browser " receiving official's theme background pushes " option is set, if the user has chosen this option, the priority that browser is determined the picture file that cloud server pushes is higher than user-defined picture file, and the picture file that browser preferentially uses cloud server to push is as the background of new Shipping Options Page.
Management devices according to Shipping Options Page background in the browser of the embodiment of the present invention, the text code information pushed by receiving cloud server, and the text code information of renewal local cache, the picture file that can use cloud server to push is as the background of new Shipping Options Page, for the user provides more more options, further promote the user and experience.
Fig. 8 is the structural representation of the management devices of Shipping Options Page background in the browser of another specific embodiment according to the present invention.
As shown in Figure 8, in browser, the management devices of Shipping Options Page background comprises: the first acquisition module 100, the second acquisition module 200, modular converter 300, the first generation module 400, memory module 500, the first receiver module 600, the second generation module 700, the second receiver module 800 and update module 900, wherein, the first generation module 400 comprises: loading unit 410 and rendering unit 420, the first acquisition modules 100 comprise: the first acquiring unit 110 and second acquisition unit 120.
Particularly, the first acquiring unit 110 is for obtaining the picture file of user by selecting window selection.More specifically, the first acquiring unit 110 can obtain the picture file of user by selecting window selection, that is to say, the first acquiring unit 110 can receive the user and call the local file selector switch, the picture file of storing in the local storage of selection.
Second acquisition unit 120 is drawn to the picture of Shipping Options Page for obtaining the user.More specifically, second acquisition unit 120 can obtain the picture that the user is drawn to Shipping Options Page, that is to say that the picture file that the user also can like oneself is drawn in the new Shipping Options Page of browser, for example, the user can be drawn to picture file in webpage or in local file etc. in new Shipping Options Page.
According to the management devices of Shipping Options Page background in the browser of the embodiment of the present invention, the user can select the picture file oneself the liked background as the new Shipping Options Page of browser by number of ways, has further promoted user's experience.In order to realize above-described embodiment, the present invention also proposes a kind of client.
A kind of client comprises: shell, screen, processor and circuit board; Screen is placed on shell, and circuit board is placed in the interior volume that shell surrounds, and processor is arranged on circuit board; Processor is for the treatment of data, specifically for carrying out following steps:
S11 ', obtain the picture file that the user selects.
In one embodiment of the invention, the picture file that the user selects comprises the picture file of user by selecting window selection or moves to the picture of Shipping Options Page.Particularly, browser can obtain the picture file of user by selecting window selection, that is to say, browser can receive the user and call the local file selector switch, the picture file of storing in the local storage of selection.In addition, browser also can obtain the picture that the user is drawn to Shipping Options Page, that is to say that the picture file that the user also can like oneself is drawn in the new Shipping Options Page of browser, for example, the user can be drawn to picture file in webpage or in local file etc. in new Shipping Options Page.
S12 ', obtain the coding of graphics information that picture file is corresponding, and according to the pre-set text coded system, coding of graphics information is changed to generate text code information.
In one embodiment of the invention, default coded system is the base64 coding.Wherein, the base64 coding is a kind of for transmitting the text code mode of 8Bit syllabified code.Particularly, after browser receives the picture file of storing in user by selecting window selection local storage, browser can return to client by the path of picture file, client can be obtained according to the path of picture file the coding of graphics information of picture file, and the interface of the base64 provided by client coding, convert the coding of graphics information of picture file to base64 text code information.In addition, if the user is drawn to the picture file of storing in local storage in the new Shipping Options Page of browser, client can be by the HTML5(Hypertext Markup Language5 in client, HTML (Hypertext Markup Language)) file interface File API, directly obtain the base64 text code information of this picture file.Wherein, File API is a set of powerful API(Application Programming Interface, application programming interface), it can allow the developer process the file that comes from the user file system, and can allow the developer use these files in web application, all operations is all processed in this locality, without processing on server; If perhaps the user is drawn to the picture file in webpage in the new Shipping Options Page of browser, client can be by the Drag&amp of HTML5; The Drop program is directly obtained the base64 text code information of this picture file.Wherein, Drag& The Drop program can be carried out transcoding to picture file in webpage according to user's drag operation.
S13 ', according to the background of text code Information generation Shipping Options Page.
Wherein, processor is further used for:
S131 ', loading text coded message in browser.
S132 ', in browser, text code information is played up, to pass through CSS(Cascading Style Sheets, CSS (cascading style sheet) is single, a kind of computerese that is used for showing the file patterns such as HTML or XML) by the background of the described Shipping Options Page of described text code Information generation.
In one embodiment of the invention, by the text code information cache at browser, and set up the corresponding relation of text code information and Shipping Options Page, and receive the instruction that the user opens new Shipping Options Page, and call text code information to generate the background of new Shipping Options Page according to corresponding relation.Particularly, browser can be by the text code information cache that is converted to base64 coding in local storage, and sets up the corresponding relation of this paper coded message and new Shipping Options Page, for example, sets up the mapping table of text code information and new Shipping Options Page.When if the user newly increases Shipping Options Page, browser according to the mapping relations fast finding to corresponding text code information, and according to the background of the new Shipping Options Page of text code Information generation browser.Thus, can greatly promote the speed of browser display background.Should understand, step in the embodiment of the present invention can be at step S12 ' afterwards, also can be at step S13 ' afterwards, after according to the pre-set text coded system, coding of graphics information being changed to generate text code information, by the text code information cache in local storage, perhaps after the background according to text code Information generation Shipping Options Page, by the text code information cache in local storage.
Client according to the embodiment of the present invention, the user can select the picture file oneself the liked background as the new Shipping Options Page of browser by number of ways, more convenient to operate succinct while making the user that the new Shipping Options Page background of browser is set, obtain better visual experience by the background that changes new Shipping Options Page.In addition, encode and convert the coding of graphics information of the picture file of user's selection to text code information by base64, and by the text code information cache in local storage, can improve the display speed of the new Shipping Options Page background of browser, further promote the user and experience.
In one embodiment of the invention, the text code information that processor also pushes for receiving cloud server, and the text code information of the text code information updating local cache pushed according to cloud server, with the text code information call renewal when opening new Shipping Options Page after.Particularly, the user subscribes to the background of the new Shipping Options Page of browser beyond the clouds in server.While in cloud server, having the new Shipping Options Page background of upgrading, cloud server can, when the user starts browser application, push base64 text code information corresponding to new Shipping Options Page background of upgrading to browser.After browser receives the text code information of cloud server propelling movement, can to the text code information be buffered in local storage, be upgraded according to text coded message, browser can call the text code information after renewal, and generates the background of new Shipping Options Page according to text coded message.In addition, the user also can be in browser setup and use User Defined picture file or the picture file that uses high in the clouds to push as the priority of the background of new Shipping Options Page.For example, can arrange in menu at browser " receiving official's theme background pushes " option is set, if the user has chosen this option, the priority that browser is determined the picture file that cloud server pushes is higher than user-defined picture file, and the picture file that browser preferentially uses cloud server to push is as the background of new Shipping Options Page.Thus, the picture file that can use cloud server to push, as the background of new Shipping Options Page, for the user provides more more options, further promotes the user and experiences.
Should be appreciated that in an embodiment of the present invention, client can be the hardware device that personal computer PC, mobile phone, panel computer, personal digital assistant, e-book etc. have various operating systems.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, a plurality of steps or method can realize with being stored in storer and by software or the firmware of suitable instruction execution system execution.For example, if realize with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: have for data-signal being realized to the discrete logic of the logic gates of logic function, special IC with suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
In the description of this instructions, the description of reference term " embodiment ", " some embodiment ", " example ", " concrete example " or " some examples " etc. means to be contained at least one embodiment of the present invention or example in conjunction with specific features, structure, material or the characteristics of this embodiment or example description.In this manual, the schematic statement of above-mentioned term not necessarily referred to identical embodiment or example.And the specific features of description, structure, material or characteristics can be with suitable mode combinations in any one or more embodiment or example.
Although illustrated and described embodiments of the invention, those having ordinary skill in the art will appreciate that: in the situation that do not break away from principle of the present invention and aim can be carried out multiple variation, modification, replacement and modification to these embodiment, scope of the present invention is limited by claim and equivalent thereof.

Claims (15)

1. the management method of Shipping Options Page background in a browser, is characterized in that, comprises the following steps:
Obtain the picture file that the user selects;
Obtain the coding of graphics information that described picture file is corresponding, and according to the pre-set text coded system, described coding of graphics information is changed to generate text code information; And
Background according to described text code Information generation Shipping Options Page.
2. method according to claim 1, is characterized in that, the described background according to text code Information generation Shipping Options Page further comprises:
Load described text code information in browser; And
In described browser, described text code information is played up, to pass through the single CSS of CSS (cascading style sheet) by the background of the described Shipping Options Page of described text code Information generation.
3. according to the described method of claim 1 or 2, it is characterized in that, also comprise: described text code information cache, at described browser, and is set up to the corresponding relation of described text code information and Shipping Options Page;
Receive the instruction that the user opens new Shipping Options Page; And
Call described text code information to generate the background of described new Shipping Options Page according to described corresponding relation.
4. method according to claim 3, is characterized in that, also comprises:
Receive the text code information that cloud server pushes, and the text code information of the text code information updating local cache pushed according to described cloud server, with the described text code information call renewal when opening described new Shipping Options Page after.
5. method according to claim 1, is characterized in that, the picture file that the described user of obtaining selects further comprises:
Obtain the picture file of described user by selecting window selection;
Perhaps, obtain the picture that described user is drawn to described Shipping Options Page.
6. the management devices of Shipping Options Page background in a browser, is characterized in that, comprising:
The first acquisition module, the picture file of selecting for obtaining the user;
The second acquisition module, for obtaining the coding of graphics information that described picture file is corresponding;
Modular converter, for being changed to generate text code information according to the pre-set text coded system to described coding of graphics information; And
The first generation module, for the background according to described text code Information generation Shipping Options Page.
7. device according to claim 6, is characterized in that, described generation module comprises:
Loading unit, for loading described text code information at browser; And
Rendering unit, at described browser, described text code information being played up, to pass through the single CSS of CSS (cascading style sheet) by the background of the described Shipping Options Page of described text code Information generation.
8. according to the described device of claim 6 or 7, it is characterized in that, also comprise:
Memory module, for by described text code information cache at described browser, and set up the corresponding relation of described text code information and Shipping Options Page;
The first receiver module, the instruction of opening new Shipping Options Page for receiving the user; And
The second generation module, for calling described text code information to generate the background of described Shipping Options Page according to described corresponding relation.
9. device according to claim 8, is characterized in that, also comprises:
The second receiver module, the text code information pushed for receiving cloud server; And
Update module, for the text code information of the text code information updating local cache according to described cloud server propelling movement, with the described text code information call renewal when opening described new Shipping Options Page after.
10. device according to claim 6, is characterized in that, described the first acquisition module comprises:
The first acquiring unit, for obtaining the picture file of described user by selecting window selection; And
Second acquisition unit, be drawn to the picture of described Shipping Options Page for obtaining described user.
11. a client, is characterized in that, comprising: shell, screen, processor and circuit board;
Described screen is placed on described shell, and described circuit board is placed in the interior volume that described shell surrounds, and described processor is arranged on described circuit board;
Described processor is for the treatment of data, specifically for:
Obtain the picture file that the user selects;
Obtain the coding of graphics information that described picture file is corresponding, and according to the pre-set text coded system, described coding of graphics information is changed to generate text code information; And
Background according to described text code Information generation Shipping Options Page.
12. client according to claim 11, is characterized in that, described processor is further used for:
Load described text code information in browser; And
In described browser, described text code information is played up, to pass through the single CSS of CSS (cascading style sheet) by the background of the described Shipping Options Page of described text code Information generation.
13. according to the described client of claim 11 or 12, it is characterized in that, described processor also for:
Described text code information cache, at described browser, and is set up to the corresponding relation of described text code information and Shipping Options Page;
Receive the instruction that the user opens new Shipping Options Page; And
Call described text code information to generate the background of described Shipping Options Page according to described corresponding relation.
14. client according to claim 13, it is characterized in that described processor also for:
Receive the text code information that cloud server pushes, and the text code information of the text code information updating local cache pushed according to described cloud server, with the described text code information call renewal when opening described new Shipping Options Page after.
15. client according to claim 11, is characterized in that, described processor is further used for:
Obtain the picture file of described user by selecting window selection;
Perhaps, obtain the picture that described user is drawn to described Shipping Options Page.
CN201310385312.4A 2013-08-29 2013-08-29 Method and device for managing tab background in browser and client Expired - Fee Related CN103473047B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310385312.4A CN103473047B (en) 2013-08-29 2013-08-29 Method and device for managing tab background in browser and client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310385312.4A CN103473047B (en) 2013-08-29 2013-08-29 Method and device for managing tab background in browser and client

Publications (2)

Publication Number Publication Date
CN103473047A true CN103473047A (en) 2013-12-25
CN103473047B CN103473047B (en) 2017-03-29

Family

ID=49797919

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310385312.4A Expired - Fee Related CN103473047B (en) 2013-08-29 2013-08-29 Method and device for managing tab background in browser and client

Country Status (1)

Country Link
CN (1) CN103473047B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104199960A (en) * 2014-09-18 2014-12-10 北京金山安全软件有限公司 Label page processing method and device
CN104537021A (en) * 2014-12-18 2015-04-22 北京奇虎科技有限公司 Method for setting browser background and browser client
CN113885762A (en) * 2015-10-07 2022-01-04 谷歌有限责任公司 Integrating content in non-browser applications
CN115130034A (en) * 2022-08-29 2022-09-30 深圳市明源云空间电子商务有限公司 Picture coding generation method, device and equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006033634A (en) * 2004-07-20 2006-02-02 Canon Inc Recording apparatus, reproducing apparatus, and recording/reproducing apparatus
CN101820430A (en) * 2010-05-12 2010-09-01 中兴通讯股份有限公司 Method and device for realizing file sharing in IMS WEB meeting
CN102314409A (en) * 2010-06-30 2012-01-11 深圳市易万卷文化产业有限公司 Method for downloading page information and device thereof and service terminal
CN103179302A (en) * 2011-12-22 2013-06-26 腾讯科技(深圳)有限公司 Picture processing method and system in open platform
CN103198121A (en) * 2013-04-02 2013-07-10 北京奇虎科技有限公司 Browser background setting method and browser

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006033634A (en) * 2004-07-20 2006-02-02 Canon Inc Recording apparatus, reproducing apparatus, and recording/reproducing apparatus
CN101820430A (en) * 2010-05-12 2010-09-01 中兴通讯股份有限公司 Method and device for realizing file sharing in IMS WEB meeting
CN102314409A (en) * 2010-06-30 2012-01-11 深圳市易万卷文化产业有限公司 Method for downloading page information and device thereof and service terminal
CN103179302A (en) * 2011-12-22 2013-06-26 腾讯科技(深圳)有限公司 Picture processing method and system in open platform
CN103198121A (en) * 2013-04-02 2013-07-10 北京奇虎科技有限公司 Browser background setting method and browser

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104199960A (en) * 2014-09-18 2014-12-10 北京金山安全软件有限公司 Label page processing method and device
CN104199960B (en) * 2014-09-18 2018-09-11 北京金山安全软件有限公司 Label page processing method and device
CN104537021A (en) * 2014-12-18 2015-04-22 北京奇虎科技有限公司 Method for setting browser background and browser client
CN104537021B (en) * 2014-12-18 2017-12-12 北京奇虎科技有限公司 The method and browser client of browser background are set
CN113885762A (en) * 2015-10-07 2022-01-04 谷歌有限责任公司 Integrating content in non-browser applications
US11995393B2 (en) 2015-10-07 2024-05-28 Google Llc Integration of content in non-browser applications
CN115130034A (en) * 2022-08-29 2022-09-30 深圳市明源云空间电子商务有限公司 Picture coding generation method, device and equipment and computer readable storage medium

Also Published As

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

Similar Documents

Publication Publication Date Title
CN110795666B (en) Webpage generation method, device, terminal and storage medium
CN110704136B (en) Method for rendering applet components, client, electronic device and storage medium
CN107741844B (en) Method and device for generating application installation package
CN107679113B (en) Light application acquisition method and device and electronic device
EP2903241B1 (en) Compression of serialized data for communication from a client-side application
CN110717120B (en) Webpage list display method and device
CN103345405A (en) Application program starting method and device and client
CN102693280A (en) Webpage browsing method, WebApp framework, method and device for executing JavaScript, and mobile terminal
KR20220033967A (en) Method, device, electronic equiment and storage medium for determining page theme
KR20140126328A (en) Using an application cache to update resources of installed applications
CN107122172B (en) Light application processing method, light application running method, light application equipment and light application equipment
CN106445500B (en) Method, system and terminal equipment for providing user interface
CN103135879B (en) Display packing, display device and electronic equipment
CN104216697B (en) Animation playing method and device for mobile terminal and mobile terminal
CN103473047A (en) Method and device for managing tab background in browser and client
CN104021158A (en) Method and device for adjusting webpage elements in webpage and mobile terminal
CN107203425B (en) Switching method and device of light application and electronic device
CN104166556A (en) Software interface replacing method and device and terminal
CN103823841A (en) Method and device for increasing browsing speed for mobile terminal client
US11520473B2 (en) Switch control for animations
CN105359104A (en) Synchronization points for state information
KR101170263B1 (en) Cross platform solution and system for genterating cross platform mobile source for developing efficiently mobile web page
CN109857503B (en) Page interaction effect self-adaption method and device and electronic equipment
KR20120012819A (en) Method, apparatus and computer program product for providing an adaptive context model framework
CN110309454B (en) Interface display method, device, equipment and storage medium

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170329

Termination date: 20180829