CN103473047B - 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 PDFInfo
- Publication number
- CN103473047B CN103473047B CN201310385312.4A CN201310385312A CN103473047B CN 103473047 B CN103473047 B CN 103473047B CN 201310385312 A CN201310385312 A CN 201310385312A CN 103473047 B CN103473047 B CN 103473047B
- Authority
- CN
- China
- Prior art keywords
- shipping options
- code information
- options page
- browser
- text code
- 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.)
- Expired - Fee Related
Links
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
Technical field
The present invention relates to the management method of Shipping Options Page background in field of computer technology, more particularly to a kind of browser, dress
Put and client.
Background technology
With being gradually improved for network technology, the use of browser is also increasingly popularized, and the function of browser is also therewith more
Plus variation.Wherein, in browser, new Shipping Options Page is user's access frequency, the number of times highest page, and the aesthetic measure of the page is straight
Connecing affects the experience of user.At present, in general the new Shipping Options Page of browser is all by white background and multiple clicks on
The graphics shape composition of access.
During the present invention is realized, inventor has found that prior art at least has problems with:The new label of browser
The background of page is commonly designed very simple and crude, and the display effect of background is more dull, and user can only pass through uploading pictures
File selects picture file from default background storehouse, and the background of new Shipping Options Page is configured.Due to the figure that user selects
Piece file often size than larger, when causing user to start the new Shipping Options Page of browser every time, needs load very big picture, cause
Browser loading velocity is very slow, poor user experience.Further, since new Shipping Options Page makes the relatively high page of user's access frequency
Face, the low visual experience for directly influencing user of the aesthetic measure of new Shipping Options Page are poor, but also due to the size ratio of picture
It is larger, cause the replacement of new Shipping Options Page background to take very much, while also expending very much system resource, therefore directly affects user
Replace the interest of Shipping Options Page background picture.
The content of the invention
It is contemplated that at least solving one of above-mentioned technical problem.
For this purpose, first purpose of the present invention is the management method for proposing Shipping Options Page background in a kind of browser.The party
Method user can select the picture file oneself liked as the background of the new Shipping Options Page of browser by number of ways, set user
Put more convenient to operate succinct during the new Shipping Options Page background of browser, more preferable vision body is obtained by the background for changing new Shipping Options Page
Test.Additionally, the coding of graphics information for encoding the picture file for selecting user by base64 is converted into text code information, and
By text code information cache in local storage, browser loading can be improved new when user more renews Shipping Options Page background
The speed of Shipping Options Page background, reduces the consuming of system resource, further lifts Consumer's Experience.
Second object of the present invention is the managing device for proposing Shipping Options Page background in a kind of browser.
Third object of the present invention is to propose a kind of client.
To achieve these goals, in the browser of first aspect present invention embodiment Shipping Options Page background management method,
Comprise the following steps:Obtain the picture file that user selects;Obtain the corresponding coding of graphics information of the picture file, and according to
Pre-set text coded system is changed to generate text code information to the coding of graphics information;And according to the text
Coding information generates the background of Shipping Options Page.
The management method of Shipping Options Page background in browser according to embodiments of the present invention, user can be selected by number of ways
The picture file oneself liked is selected as the background of the new Shipping Options Page of browser, user is grasped when the new Shipping Options Page background of browser is set
Make convenient succinct, more preferable visual experience is obtained by the background for changing new Shipping Options Page.Additionally, will by base64 codings
The coding of graphics information of the picture file that user selects is converted into text code information, and by text code information cache local
In memorizer, the speed that browser loads new Shipping Options Page background can be improved when user more renews Shipping Options Page background, reduce system
The consuming of resource, further lifts Consumer's Experience.
To achieve these goals, in the browser of second aspect present invention embodiment Shipping Options Page background managing device,
Including:First acquisition module, for obtaining the picture file of user's selection;Second acquisition module, for obtaining the picture text
The corresponding coding of graphics information of part;Modular converter, for being carried out to the coding of graphics information according to pre-set text coded system
Change to generate text code information;And generation module, for the background of Shipping Options Page is generated according to the text code information.
The managing device of Shipping Options Page background in browser according to embodiments of the present invention, user can be selected by number of ways
The picture file oneself liked is selected as the background of the new Shipping Options Page of browser, user is grasped when the new Shipping Options Page background of browser is set
Make convenient succinct, more preferable visual experience is obtained by the background for changing new Shipping Options Page.Additionally, will by base64 codings
The coding of graphics information of the picture file that user selects is converted into text code information, and by text code information cache local
In memorizer, the speed that browser loads new Shipping Options Page background can be improved when user more renews Shipping Options Page background, reduce system
The consuming of resource, further lifts Consumer's Experience.
To achieve these goals, the client of third aspect present invention embodiment, including:Shell, screen, processor and
Circuit board;The screen is disposed on the housing, and the circuit board is placed in the interior volume that the shell is surrounded, the place
Reason device is arranged on the circuit board;The processor is used for processing data, specifically for:Obtain the picture text that user selects
Part;The corresponding coding of graphics information of the picture file is obtained, and the coding of graphics is believed according to pre-set text coded system
Breath is changed to generate text code information;And the background of Shipping Options Page is generated according to the text code information.
Client according to embodiments of the present invention, user can select the picture file oneself liked to make by number of ways
For the background of the new Shipping Options Page of browser, arrange user more convenient to operate succinct during the new Shipping Options Page background of browser, by changing
The background for becoming new Shipping Options Page obtains more preferable visual experience.Additionally, encoding the picture file for selecting user by base64
Coding of graphics information is converted into text code information, and by text code information cache in local storage, can be in user more
When renewing Shipping Options Page background, the speed that browser loads new Shipping Options Page background is improved, reduce the consuming of system resource, further carry
Rise Consumer's Experience.
The additional aspect of the present invention and advantage will be set forth in part in the description, and partly will become from the following description
Obtain substantially, or recognized by the practice of the present invention.
Description of the drawings
Of the invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments
It is substantially and easy to understand, wherein,
Fig. 1 is the flow chart of the management method of Shipping Options Page background in browser according to an embodiment of the invention;
Fig. 2 is the flow chart of the management method of Shipping Options Page background in browser according to a specific embodiment of the invention;
Fig. 3 is the flow chart of the management method of Shipping Options Page background in browser according to another specific embodiment of the invention
Fig. 4 is the structural representation of the managing device of Shipping Options Page background in browser according to an embodiment of the invention;
Fig. 5 is the structural representation of the managing device of Shipping Options Page background in browser according to a specific embodiment of the invention
Figure;
Fig. 6 is that the structure of the managing device of Shipping Options Page background in browser according to another specific embodiment of the invention is shown
It is intended to;
Fig. 7 is that the structure of the managing device of Shipping Options Page background in browser according to another specific embodiment of the invention is shown
It is intended to;And
Fig. 8 is that the structure of the managing device of Shipping Options Page background in browser according to another specific embodiment of the invention is shown
It is intended to.
Specific embodiment
Embodiments of the invention are described below in detail, the example of embodiment is shown in the drawings, wherein identical from start to finish
Or similar label represents same or similar element or the element with same or like function.Retouch below with reference to accompanying drawing
The embodiment stated is exemplary, is only used for explaining the present invention, and is not considered as limiting the invention.Conversely, of the invention
The embodiment all changes, modification and the equivalent that include falling in the range of the spirit and intension of attached claims.
In describing the invention, it is to be understood that term " first ", " second " etc. are not only used for describing purpose, and not
It is understood that to indicate or implying relative importance.In describing the invention, it should be noted that unless otherwise clearly regulation
And restriction, term " being connected ", " connection " should be interpreted broadly, for example, it may be fixedly connected, or be detachably connected,
Or be integrally connected;Can be mechanically connected, or electrically connect;Can be joined directly together, it is also possible to by intermediary
It is indirectly connected to.For the ordinary skill in the art, above-mentioned term tool in the present invention can be understood with concrete condition
Body implication.Additionally, in describing the invention, unless otherwise stated, " multiple " are meant that two or more.
In flow chart or here any process described otherwise above or method description are construed as, expression includes
It is one or more for realizing specific logical function or process the step of the module of code of executable instruction, fragment or portion
Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein the suitable of shown or discussion can not be pressed
Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Below with reference to the accompanying drawings describe the management method of Shipping Options Page background in browser according to embodiments of the present invention, device and
Client.
At present, the new Shipping Options Page of browser is all made up of white background and multiple graphics shapes for clicking on access, example
Such as, Google's browser Chrome, red fox browser Firefox, IE(A web browser that Microsoft releases,
Internet Explorer)Deng browser.The equal design comparison of background of these browsers is simple and crude, and user arranges the mode of background
It is single, poor user experience.If user can be customized and be changed to the style of the new Shipping Options Page of browser, for example, the back of the body is set
Scape, modification font etc., and the background to user's customization carries out caching process, thus, it is possible to improve the new Shipping Options Page of browser
Aesthetic measure, and the speed that background shows is improved, improve Consumer's Experience.For this purpose, proposing the Shipping Options Page back of the body in a kind of browser
The management method of scape.
Fig. 1 is the flow chart of the management method of Shipping Options Page background in browser according to an embodiment of the invention, and Fig. 2 is
According to the flow chart of the management method of Shipping Options Page background in the browser of a specific embodiment of the invention.Such as Fig. 1 and Fig. 2 institutes
Show, in browser, the management method of Shipping Options Page background is comprised the following steps.
S11, obtains the picture file that user selects.
In one embodiment of the invention, the picture file that user selects includes the figure that user is selected by selection window
Piece file is moved to the picture of Shipping Options Page.Specifically, browser can obtain the picture file that user is selected by selection window,
That is, browser can receive user call local file selector, the picture file stored in the local storage of selection.
Additionally, browser can also obtain the picture that user is drawn to Shipping Options Page, that is to say, that the picture text that oneself can also be liked by user
Part is drawn in the new Shipping Options Page of browser, for example, and picture file in webpage or in local file etc. can be pulled by user
Into new Shipping Options Page.
S12, obtains the corresponding coding of graphics information of picture file, and coding of graphics is believed according to pre-set text coded system
Breath is changed to generate text code information.
In one embodiment of the invention, pre-arranged code mode is encoded for base64.Wherein, base64 codings are a kind of
For transmitting the text code mode of 8Bit syllabified codes.Specifically, browser receive user selects local by selection window
After the picture file stored in memorizer, the path of picture file can be returned to client by browser, and client can be according to figure
The path of piece file obtains the coding of graphics information of picture file, and the interface of the base64 codings provided by client, will
The coding of graphics information of picture file is converted into base64 text code information.If additionally, user will be deposited in local storage
The picture file of storage is drawn in the new Shipping Options Page of browser, then client can pass through the HTML5 in client(Hypertext
Markup Language5, HTML)File interface File API, the base64 of the direct access picture file
Text code information.Wherein, File API are a set of powerful API(Application Programming Interface,
Application programming interface), it can allow developer to process to come from the file of user file system, and can allow developer
These files are used in web application, all operations need not be processed on the server all in processing locality;Or if
User is drawn to the picture file in webpage in the new Shipping Options Page of browser, then client can be by the Drag&Drop of HTML5
The base64 text code information of the program direct access picture file.Wherein, Drag&Drop programs can be according to the dragging of user
Operation carries out transcoding to picture file in webpage.
S13, generates the background of Shipping Options Page according to text code information.
Wherein, step S13 is further included:
S131, in a browser loading text coding information.
S132, is rendered to text code information in a browser, with by CSS(Cascading Style
Sheets, cascading style list, a kind of computer language for showing the file pattern such as HTML or XML)The text is compiled
Code information generates the background of the Shipping Options Page.
In one embodiment of the invention, by text code information cache in browser, and set up text code information
The instruction of new Shipping Options Page is opened with the corresponding relation of Shipping Options Page, and receive user, and text code is called according to corresponding relation
Information is generating the background of new Shipping Options Page.Specifically, browser can be converted into the text code information cache of base64 codings
In local storage, and set up the corresponding relation of this paper coding informations and new Shipping Options Page, for example, set up text code information and
The mapping table of new Shipping Options Page.If user newly increases Shipping Options Page, browser quickly finds corresponding text according to mapping relations
This coding information, and the background of the new Shipping Options Page of browser is generated according to text code information.Thus, it is possible to greatly promote browser
The speed of display background.It should be understood that step in the embodiment of the present invention can after step s 12, also can after step s 13,
I.e. after being changed to coding of graphics information according to pre-set text coded system to generate text code information, text is compiled
Code information cache is in local storage, or after the background that Shipping Options Page is generated according to text code information, text is compiled
Code information cache is in local storage.
The management method of Shipping Options Page background in browser according to embodiments of the present invention, user can be selected by number of ways
The picture file oneself liked is selected as the background of the new Shipping Options Page of browser, user is grasped when the new Shipping Options Page background of browser is set
Make convenient succinct, more preferable visual experience is obtained by the background for changing new Shipping Options Page.Additionally, will by base64 codings
The coding of graphics information of the picture file that user selects is converted into text code information, and by text code information cache local
In memorizer, the speed that browser loads new Shipping Options Page background can be improved when user more renews Shipping Options Page background, reduce system
The consuming of resource, further lifts Consumer's Experience.
Fig. 3 is the flow process of the management method of Shipping Options Page background in browser according to another specific embodiment of the invention
Figure.Except can customize the background of the new Shipping Options Page of browser, the background that can also receive official is pushed user, is pushed by official
Background is updated to the background of new Shipping Options Page, specifically, as shown in Fig. 2 in browser Shipping Options Page background management method bag
Include following steps.
S31, obtains the picture file that user selects.
In one embodiment of the invention, the picture file that user selects includes the figure that user is selected by selection window
Piece file is moved to the picture of Shipping Options Page.
S32, obtains the corresponding coding of graphics information of picture file, and coding of graphics is believed according to pre-set text coded system
Breath is changed to generate text code information.
In one embodiment of the invention, pre-arranged code mode is encoded for base64.
S33, generates the background of Shipping Options Page according to text code information.
Wherein, step S33 is further included:
S331, in a browser loading text coding information.
S332, is rendered to text code information in a browser, to pass through cascading style list CSS by text code
Information generates the background of Shipping Options Page.
In one embodiment of the invention, by text code information cache in browser, and set up text code information
The instruction of new Shipping Options Page is opened with the corresponding relation of Shipping Options Page, and receive user, and text code is called according to corresponding relation
Information is generating the background of new Shipping Options Page.
S34, receives the text code information that cloud server is pushed, and the text code letter pushed according to cloud server
Breath updates the text code information of local cache, so that the text code information after updating is called when new Shipping Options Page is opened.
Specifically, user can subscribe to the background of the new Shipping Options Page of browser beyond the clouds in server.When depositing in cloud server
In the new Shipping Options Page background for updating, cloud server can be pushed more to browser when user starts browser application
The new corresponding base64 text codes information of new Shipping Options Page background.Browser receives the text code of cloud server push
After information, the text code information being buffered in local storage can be updated according to text coding information, browser
The text code information after updating can be called, and the background of new Shipping Options Page is generated according to text coding information.
Additionally, the figure that user can be also set using User Defined picture file in a browser or be pushed using high in the clouds
Priority of the piece file as the background of new Shipping Options Page.For example, can arrange in browser arranges menu and " receive official's theme back of the body
Scape is pushed " option, if user have selected the option, browser determines the priority of the picture file that cloud server is pushed
The picture file that cloud server is pushed is used preferentially as new Shipping Options Page higher than user-defined picture file, i.e. browser
Background.
It should be understood that except the coding information of the picture file selected according to user generates the background of new Shipping Options Page, can also lead to
The background for receiving the new Shipping Options Page of text code information generation that cloud server is pushed is crossed, both modes have been provided the user not
Same selection.
The management method of Shipping Options Page background in browser according to embodiments of the present invention, is pushed by receiving cloud server
Text code information, and update the text code information of local cache, the picture file that cloud server is pushed can be used to make
For the background of new Shipping Options Page, more more options are provided the user, further lift Consumer's Experience.
In order to realize above-described embodiment, the present invention also proposes a kind of managing device of Shipping Options Page background in browser.
Fig. 4 is the structural representation of the managing device of Shipping Options Page background in browser according to an embodiment of the invention.
As shown in figure 4, the managing device of Shipping Options Page background includes in browser:First acquisition module 100, second obtains mould
Block 200, modular converter 300 and the first generation module 400.
Specifically, the first acquisition module 100 is used to obtain the picture file of user's selection.Wherein, the picture that user selects
File includes user's picture file selected by selection window or the picture for being moved to Shipping Options Page.
Second acquisition module 200 is used to obtain the corresponding coding of graphics information of picture file.More specifically, first obtains mould
100 receive user of block is selected in local storage after the picture file that stores by selection window, and the first acquisition module 100 can be by
The path of picture file returns to client, and the second acquisition module 200 can obtain picture file according to the path of picture file
Coding of graphics information,
Modular converter 300 is compiled with generating text for changing to coding of graphics information according to pre-set text coded system
Code information.Wherein, pre-arranged code mode is encoded for base64.More specifically, base64 codings are one kind to be used to transmit 8Bit words
The text code mode of section code.The interface of the base64 codings that modular converter 300 is provided by client, by picture file
Coding of graphics information is converted into base64 text code information.If additionally, user is literary by the picture stored in local storage
Part is drawn in the new Shipping Options Page of browser, then modular converter 300 can pass through the HTML5 in client(Hypertext
Markup Language5, HTML)File interface File API, the base64 of the direct access picture file
Text code information.Wherein, File API are a set of powerful API(Application Programming Interface,
Application programming interface), it can allow developer to process to come from the file of user file system, and can allow developer
These files are used in web application, all operations need not be processed on the server all in processing locality;Or if
User is drawn to the picture file in webpage in the new Shipping Options Page of browser, then modular converter 300 can pass through HTML5's
The base64 text code information of the Drag&Drop program direct access picture file.Wherein, Drag&Drop programs can basis
The drag operation of user carries out transcoding to picture file in webpage.
First generation module 400 is for the background according to text code information generation Shipping Options Page.
The managing device of Shipping Options Page background in browser according to embodiments of the present invention, user can be selected by number of ways
The picture file oneself liked is selected as the background of the new Shipping Options Page of browser, user is grasped when the new Shipping Options Page background of browser is set
Make convenient succinct, more preferable visual experience is obtained by the background for changing new Shipping Options Page.Additionally, will by base64 codings
The coding of graphics information of the picture file that user selects is converted into text code information, and by text code information cache local
In memorizer, the speed that browser loads new Shipping Options Page background can be improved when user more renews Shipping Options Page background, reduce system
The consuming of resource, further lifts Consumer's Experience.
Fig. 5 is the structural representation of the managing device of Shipping Options Page background in browser according to a specific embodiment of the invention
Figure.
As shown in figure 5, the managing device of Shipping Options Page background includes in browser:First acquisition module 100, second obtains mould
Block 200, modular converter 300 and the first generation module 400, wherein, the first generation module 400 includes:Loading unit 410 and render
Unit 420.
Specifically, loading unit 410 is used for loading text coding information in a browser.
Rendering unit 420 is used to render text code information in a browser, with by cascading style list CSS
The text code information is generated into the background of the Shipping Options Page.
The managing device of Shipping Options Page background in browser according to embodiments of the present invention, browser is by believing to text code
Breath is loaded and is rendered, and can generate the background of browser Shipping Options Page.
Fig. 6 is that the structure of the managing device of Shipping Options Page background in browser according to another specific embodiment of the invention is shown
It is intended to.
As shown in fig. 6, the managing device of Shipping Options Page background includes in browser:First acquisition module 100, second obtains mould
Block 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 includes:Loading unit 410 and rendering unit 420.
Specifically, memory module 500 and sets up text code information with mark for by text code information cache local
The corresponding relation of page is signed, and text code information is called as the background of Shipping Options Page when newly-increased Shipping Options Page.More specifically, storage mould
Block 500 can be converted into the text code information cache of base64 codings in local storage, and set up this paper coding informations
With the corresponding relation of new Shipping Options Page, the mapping table of text code information and new Shipping Options Page for example, is set up.
First receiver module 600 is used for the instruction that receive user opens new Shipping Options Page.
Second generation module 700 is for calling text code information to generate the background of Shipping Options Page according to corresponding relation.More
Specifically, if user newly increases Shipping Options Page, the second generation module 700 quickly finds corresponding text according to mapping relations
Coding information, and the background of the new Shipping Options Page of browser is generated according to text code information.
The managing device of Shipping Options Page background in browser according to embodiments of the present invention, browser is by believing to text code
Breath loading is cached, and can greatly promote the speed of the new Shipping Options Page background of browser display.
Fig. 7 is that the structure of the managing device of Shipping Options Page background in browser according to another specific embodiment of the invention is shown
It is intended to.
As shown in fig. 7, the managing device of Shipping Options Page background includes in browser:First acquisition module 100, second obtains mould
Block 200, modular converter 300, the first generation module 400, memory module 500, the first receiver module 600, the second generation module
700th, the second receiver module 800 and update module 900, wherein, the first generation module 400 includes:Loading unit 410 and render list
Unit 420.
Specifically, the second receiver module 800 is used to receive the text code information of cloud server push.More specifically,
User can subscribe to the background of the new Shipping Options Page of browser beyond the clouds in server.When the new Shipping Options Page that there is renewal in cloud server
During background, then cloud server can push renewal new to the second receiver module 800 when user starts browser application
The corresponding base64 text codes information of Shipping Options Page background.
The text code of text code information updating local cache of the update module 900 for being pushed according to cloud server
Information, so that the text code information after updating is called when new Shipping Options Page is opened.More specifically, the second receiver module 800 is received
After the text code information pushed to cloud server, update module 900 can be local to being buffered according to text coding information
Text code information in memorizer is updated, and the first generation module 400 generates new Shipping Options Page according to text coding information
Background.
Additionally, the figure that user can be also set using User Defined picture file in a browser or be pushed using high in the clouds
Priority of the piece file as the background of new Shipping Options Page.For example, can arrange in browser arranges menu and " receive official's theme back of the body
Scape is pushed " option, if user have selected the option, browser determines the priority of the picture file that cloud server is pushed
The picture file that cloud server is pushed is used preferentially as new Shipping Options Page higher than user-defined picture file, i.e. browser
Background.
The managing device of Shipping Options Page background in browser according to embodiments of the present invention, is pushed by receiving cloud server
Text code information, and update the text code information of local cache, the picture file that cloud server is pushed can be used to make
For the background of new Shipping Options Page, more more options are provided the user, further lift Consumer's Experience.
Fig. 8 is that the structure of the managing device of Shipping Options Page background in browser according to another specific embodiment of the invention is shown
It is intended to.
As shown in figure 8, the managing device of Shipping Options Page background includes in browser:First acquisition module 100, second obtains mould
Block 200, modular converter 300, the first generation module 400, memory module 500, the first receiver module 600, the second generation module
700th, the second receiver module 800 and update module 900, wherein, the first generation module 400 includes:Loading unit 410 and render list
Unit 420, the first acquisition module 100 includes:First acquisition unit 110 and second acquisition unit 120.
Specifically, first acquisition unit 110 is used to obtain the picture file that user is selected by selection window.More specifically
Ground, first acquisition unit 110 can obtain the picture file that user is selected by selection window, that is to say, that first acquisition unit
110 can receive user call local file selector, the picture file stored in the local storage of selection.
Second acquisition unit 120 is used to obtain the picture that user is drawn to Shipping Options Page.More specifically, second acquisition unit
120 can obtain the picture that user is drawn to Shipping Options Page, that is to say, that the picture file that oneself is liked can be also drawn to clear by user
Look in the new Shipping Options Page of device, for example, picture file in webpage or in local file etc. can be drawn to new Shipping Options Page by user
In.
The managing device of Shipping Options Page background in browser according to embodiments of the present invention, user can be selected by number of ways
The picture file oneself liked is selected as the background of the new Shipping Options Page of browser, Consumer's Experience is further improved.On realizing
Embodiment is stated, the present invention also proposes a kind of client.
A kind of client, including:Shell, screen, processor and circuit board;Screen is placed on shell, circuit board placement
In the interior volume that shell is surrounded, processor is arranged on circuit boards;Processor is used for processing data, following specifically for performing
Step:
S11 ', obtains the picture file that user selects.
In one embodiment of the invention, the picture file that user selects includes the figure that user is selected by selection window
Piece file is moved to the picture of Shipping Options Page.Specifically, browser can obtain the picture file that user is selected by selection window,
That is, browser can receive user call local file selector, the picture file stored in the local storage of selection.
Additionally, browser can also obtain the picture that user is drawn to Shipping Options Page, that is to say, that the picture text that oneself can also be liked by user
Part is drawn in the new Shipping Options Page of browser, for example, and picture file in webpage or in local file etc. can be pulled by user
Into new Shipping Options Page.
S12 ', obtains the corresponding coding of graphics information of picture file, and according to pre-set text coded system to coding of graphics
Information is changed to generate text code information.
In one embodiment of the invention, pre-arranged code mode is encoded for base64.Wherein, base64 codings are a kind of
For transmitting the text code mode of 8Bit syllabified codes.Specifically, browser receive user selects local by selection window
After the picture file stored in memorizer, the path of picture file can be returned to client by browser, and client can be according to figure
The path of piece file obtains the coding of graphics information of picture file, and the interface of the base64 codings provided by client, will
The coding of graphics information of picture file is converted into base64 text code information.If additionally, user will be deposited in local storage
The picture file of storage is drawn in the new Shipping Options Page of browser, then client can pass through the HTML5 in client(Hypertext
Markup Language5, HTML)File interface File API, the base64 of the direct access picture file
Text code information.Wherein, File API are a set of powerful API(Application Programming Interface,
Application programming interface), it can allow developer to process to come from the file of user file system, and can allow developer
These files are used in web application, all operations need not be processed on the server all in processing locality;Or if
User is drawn to the picture file in webpage in the new Shipping Options Page of browser, then client can be by the Drag&Drop of HTML5
The base64 text code information of the program direct access picture file.Wherein, Drag&Drop programs can be according to the dragging of user
Operation carries out transcoding to picture file in webpage.
S13 ', generates the background of Shipping Options Page according to text code information.
Wherein, processor is further used for:
S131 ', in a browser loading text coding information.
S132 ', is rendered to text code information in a browser, with by CSS(Cascading Style
Sheets, cascading style list, a kind of computer language for showing the file pattern such as HTML or XML)The text is compiled
Code information generates the background of the Shipping Options Page.
In one embodiment of the invention, by text code information cache in browser, and set up text code information
The instruction of new Shipping Options Page is opened with the corresponding relation of Shipping Options Page, and receive user, and text code is called according to corresponding relation
Information is generating the background of new Shipping Options Page.Specifically, browser can be converted into the text code information cache of base64 codings
In local storage, and set up the corresponding relation of this paper coding informations and new Shipping Options Page, for example, set up text code information and
The mapping table of new Shipping Options Page.If user newly increases Shipping Options Page, browser quickly finds corresponding text according to mapping relations
This coding information, and the background of the new Shipping Options Page of browser is generated according to text code information.Thus, it is possible to greatly promote browser
The speed of display background.It should be understood that the step in the embodiment of the present invention can be in step S12 ' after, also can be in step S13 ' it
Afterwards, i.e., after being changed to coding of graphics information according to pre-set text coded system to generate text code information, by text
This coding information is buffered in local storage, or after the background that Shipping Options Page is generated according to text code information, by text
This coding information is buffered in local storage.
Client according to embodiments of the present invention, user can select the picture file oneself liked to make by number of ways
For the background of the new Shipping Options Page of browser, arrange user more convenient to operate succinct during the new Shipping Options Page background of browser, by changing
The background for becoming new Shipping Options Page obtains more preferable visual experience.Additionally, encoding the picture file for selecting user by base64
Coding of graphics information is converted into text code information, and by text code information cache in local storage, can improve and browse
The display speed of the new Shipping Options Page background of device, further lifts Consumer's Experience.
In one embodiment of the invention, processor is additionally operable to receive the text code information that cloud server is pushed,
And the text code information of the text code information updating local cache pushed according to cloud server, to open new Shipping Options Page
When call update after text code information.Specifically, user can subscribe to the back of the body of the new Shipping Options Page of browser beyond the clouds in server
Scape.When there is the new Shipping Options Page background of renewal in cloud server, cloud server can start browser application journey in user
During sequence, the corresponding base64 text codes information of new Shipping Options Page background for updating is pushed to browser.Browser receives high in the clouds
After the text code information of server push, text code that can be according to text coding information to being buffered in local storage
Information is updated, and browser can call the text code information after updating, and generate new label according to text coding information
The background of page.Additionally, user can also be set using User Defined picture file in a browser or using high in the clouds push
Priority of the picture file as the background of new Shipping Options Page.For example, can arrange in browser arranges menu and " receive official's theme
Background is pushed " option, if user have selected the option, browser determines the preferential of the picture file that cloud server is pushed
Level preferentially uses the picture file that cloud server is pushed as new label higher than user-defined picture file, i.e. browser
The background of page.Thus, the picture file that cloud server is pushed can be used as the background of new Shipping Options Page, is provided the user more
Select, further lift Consumer's Experience.
It should be appreciated that in an embodiment of the present invention, client can be personal computer PC, mobile phone, panel computer, individual
The hardware device with various operating systems such as personal digital assistant, e-book.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned
In embodiment, the software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage
Or firmware is realizing.For example, if realized with hardware, and in another embodiment, can be with well known in the art
Any one of row technology or their combination are realizing:With for the logic gates of logic function is realized to data signal
Discrete logic, the special IC with suitable combinational logic gate circuit, programmable gate array(PGA), scene
Programmable gate array(FPGA)Deng.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
Example ", or the description of " some examples " etc. mean specific features with reference to the embodiment or example description, structure, material or spy
Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not
Identical embodiment or example are referred to necessarily.And, the specific features of description, structure, material or feature can be any
One or more embodiments or example in combine in an appropriate manner.
Although an embodiment of the present invention has been shown and described, it will be understood by those skilled in the art that:Not
These embodiments can be carried out with various changes, modification, replacement and modification in the case of the principle and objective that depart from the present invention, this
The scope of invention is limited by claim and its equivalent.
Claims (12)
1. in a kind of browser Shipping Options Page background management method, it is characterised in that comprise the following steps:
Obtain the picture file that user selects;
The corresponding coding of graphics information of the picture file is obtained, and the coding of graphics is believed according to pre-set text coded system
Breath is changed to generate text code information;
By the text code information cache in the browser, and set up text code information pass corresponding with Shipping Options Page
System;
Receive user opens the instruction of new Shipping Options Page;And
Call the text code information to generate the background of the new Shipping Options Page according to the corresponding relation.
2. method according to claim 1, it is characterised in that the background that Shipping Options Page is generated according to text code information
Further include:
The text code information is loaded in a browser;And
The text code information is rendered in the browser, to pass through cascading style list CSS by the text
Coding information generates the background of the Shipping Options Page.
3. method according to claim 1, it is characterised in that also include:
Receive cloud server push text code information, and according to the cloud server push text code information more
The text code information of new local cache, so that the text code information after updating is called when the new Shipping Options Page is opened.
4. method according to claim 1, it is characterised in that the picture file that the acquisition user selects further is wrapped
Include:
Obtain the picture file that the user is selected by selection window;
Or, obtain the picture that the user is drawn to the Shipping Options Page.
5. in a kind of browser Shipping Options Page background managing device, it is characterised in that include:
First acquisition module, for obtaining the picture file of user's selection;
Second acquisition module, for obtaining the corresponding coding of graphics information of the picture file;
Modular converter, for being changed to generate text code to the coding of graphics information according to pre-set text coded system
Information;
By the text code information cache in the browser, and set up text code information pass corresponding with Shipping Options Page
System;
Receive user opens the instruction of new Shipping Options Page;And
Call the text code information to generate the background of the new Shipping Options Page according to the corresponding relation.
6. device according to claim 5, it is characterised in that the generation module includes:
Loading unit, for loading the text code information in a browser;And
Rendering unit, for rendering to the text code information in the browser, with by cascading style list
The text code information is generated CSS the background of the Shipping Options Page.
7. device according to claim 5, it is characterised in that also include:
Second receiver module, for receiving the text code information of cloud server push;And
Update module, the text code letter of the text code information updating local cache for being pushed according to the cloud server
Breath, so that the text code information after updating is called when the new Shipping Options Page is opened.
8. device according to claim 5, it is characterised in that first acquisition module includes:
First acquisition unit, for obtaining the picture file that the user is selected by selection window;And
Second acquisition unit, is drawn to the picture of the Shipping Options Page for obtaining the user.
9. a kind of client, it is characterised in that include:Shell, screen, processor and circuit board;
The screen is disposed on the housing, and the circuit board is placed in the interior volume that the shell is surrounded, the process
Device is arranged on the circuit board;
The processor is used for processing data, specifically for:
Obtain the picture file that user selects;
The corresponding coding of graphics information of the picture file is obtained, and the coding of graphics is believed according to pre-set text coded system
Breath is changed to generate text code information;
By the text code information cache in browser, and set up the corresponding relation of the text code information and Shipping Options Page;
Receive user opens the instruction of new Shipping Options Page;And
Call the text code information to generate the background of the Shipping Options Page according to the corresponding relation.
10. client according to claim 9, it is characterised in that the processor is further used for:
The text code information is loaded in a browser;And
The text code information is rendered in the browser, to pass through cascading style list CSS by the text
Coding information generates the background of the Shipping Options Page.
11. clients according to claim 9, it is characterised in that the processor is additionally operable to:
Receive cloud server push text code information, and according to the cloud server push text code information more
The text code information of new local cache, so that the text code information after updating is called when the new Shipping Options Page is opened.
12. clients according to claim 9, it is characterised in that the processor is further used for:
Obtain the picture file that the user is selected by selection window;
Or, obtain the picture that the user is drawn to the Shipping Options Page.
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 CN103473047A (en) | 2013-12-25 |
CN103473047B true 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) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104199960B (en) * | 2014-09-18 | 2018-09-11 | 北京金山安全软件有限公司 | Label page processing method and device |
CN104537021B (en) * | 2014-12-18 | 2017-12-12 | 北京奇虎科技有限公司 | The method and browser client of browser background are set |
US10613713B2 (en) * | 2015-10-07 | 2020-04-07 | 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 |
Citations (5)
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 |
-
2013
- 2013-08-29 CN CN201310385312.4A patent/CN103473047B/en not_active Expired - Fee Related
Patent Citations (5)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN103473047A (en) | 2013-12-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9542163B2 (en) | Systems and methods for processing analytics on mobile devices | |
CN108647068B (en) | Method, system and medium product for realizing application recommendation on APP starting page | |
CN110795666B (en) | Webpage generation method, device, terminal and storage medium | |
KR102131159B1 (en) | Methods and devices for controlling smart devices and computer storage media | |
US20160321832A1 (en) | Systems and methods for interactive video generation and rendering | |
CN103473047B (en) | Method and device for managing tab background in browser and client | |
KR20140067026A (en) | Progressively indicating new content in an application-selectable user interface | |
US20160110054A1 (en) | System and method for customizing a theme for modifying a look and feel of a graphical user interface | |
TW200419396A (en) | Template-based customization of a user interface for a messaging application program | |
WO2012046546A1 (en) | Character conversion system and character conversion method and computer program | |
CN110609965A (en) | Page display method and device and storage medium | |
CN111611518A (en) | Automatic visual display page publishing method and system based on Html5 | |
CN112016023A (en) | Service processing method, device, terminal and storage medium | |
JP4072900B2 (en) | Terminal device | |
US20110055740A1 (en) | Defining and sharing display space templates | |
CN105814565A (en) | Web page rendering on wireless devices | |
KR101613905B1 (en) | Method and device for gernerating clipborad data of element being included in contents | |
CN104461615B (en) | A kind of processing method and electronic equipment of skin resource | |
KR100821051B1 (en) | Method and system for providing internet pages for wireless terminal | |
JP5049880B2 (en) | Information processing device | |
CN111158834A (en) | Interface self-defining method and computer readable storage medium | |
CN104111768B (en) | Interactive window and method and system for customizing, quoting and synchronizing interactive window | |
CN106998350B (en) | Method and system for using frame based on function item of cross-user message | |
CN114241174A (en) | Special effect prop generation method, device, equipment and medium | |
CN110020320A (en) | The method and apparatus for caching page pictures |
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 |