CN102163197B - A kind of skin change method, system and device - Google Patents

A kind of skin change method, system and device Download PDF

Info

Publication number
CN102163197B
CN102163197B CN201010113165.1A CN201010113165A CN102163197B CN 102163197 B CN102163197 B CN 102163197B CN 201010113165 A CN201010113165 A CN 201010113165A CN 102163197 B CN102163197 B CN 102163197B
Authority
CN
China
Prior art keywords
skin
file
client
out changing
change
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.)
Active
Application number
CN201010113165.1A
Other languages
Chinese (zh)
Other versions
CN102163197A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201010113165.1A priority Critical patent/CN102163197B/en
Publication of CN102163197A publication Critical patent/CN102163197A/en
Application granted granted Critical
Publication of CN102163197B publication Critical patent/CN102163197B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a kind of skin change method, system and device, be applied to include client and synchronize the system of end, the method includes: described synchronization end sends to client and changes skin inquiry request, obtains and changes skin Query Result;Described synchronization end according to described in change skin Query Result and judge whether described client has carried out changing skin;Described synchronization end is when judging that described client has carried out changing skin, and described synchronization end carries out changing skin.This synchronization end includes: enquiry module, changes skin inquiry request for sending to client, obtains and change skin Query Result;Judge module, changes skin Query Result and judges whether described client has carried out changing skin described in obtaining according to described enquiry module;Change skin module, for when described judge module judges that described client has carried out changing skin, carry out changing skin.Pass through the present invention, it is achieved that client and webpage synchronization change skin, improve the experience sense of user.

Description

A kind of skin change method, system and device
Technical field
The present invention relates to Internet technical field, particularly relate to a kind of skin change method, system and device.
Background technology
Along with network technology and the development of software development, people increasingly are by various clients Software realizes various function, such as: MSN, music box, mailbox etc..Wherein, part visitor There is the webpage linked therewith in family end software, such as local " music box " and " music libraries " that link therewith Webpage.For client software, user interface (UI, User Interface) is to hand over user Mutual window, people operate client software by user interface and complete corresponding function.In order to adapt to The aesthetic habit of different user and demand, usual client software provides the user the skin of multiple different-style Skin selects for user.Therefore, client and the webpage linked therewith how is allowed to keep on a user interface Consistent style, becomes vital problem.
In prior art, it is achieved client and the webpage linked therewith carry out synchronizing to change the method for skin and specifically wrap Include following steps: (1) client receives the skin that changes of user and asks by changing skin button.(2) client is certainly Move and carry out changing skin.(3) client obtains the page address of the webpage when front opening linked therewith.(4) Client obtain page address followed by change skin parameter.As: amended page address is test.html?Change=style, wherein the parameter of URL address is change, and its value is style.Now, This webpage is known that to be needed to load this pattern file of style.(5) webpage refreshes, it is judged that need to add The skin file carried.(6) webpage loads new skin file, completes to change skin.
It follows that in prior art, when webpage needs to change skin, it is necessary to carry out page furbishing, wave Take the network bandwidth.And when carrying out page furbishing, reduce the experience sense of user.
Summary of the invention
Embodiments provide a kind of skin change method, system and device, be used for achieving client with Synchronization end carries out synchronization and changes skin.
Embodiments provide a kind of skin change method, be applied to include client and synchronize the system of end, Including:
Described synchronization end sends to client and changes skin inquiry request, obtains and changes skin Query Result;
Described synchronization end according to described in change skin Query Result and judge whether described client has carried out changing skin;
When judging that described client has carried out changing skin, described synchronization end carries out changing skin.
Wherein, the cookie file that skin Query Result is described client this locality, described synchronization end are changed described in Judge whether described client has carried out changing skin and included according to the described skin Query Result that changes:
Described synchronization end according to described in change skin Query Result and judge whether described cookie file is revised;
When described cookie file is modified, described synchronization end then judges that described client is changed Skin;Otherwise, described synchronization end judges that described client does not carries out changing skin.
Wherein, described synchronization end according to change skin Query Result judge described client whether carried out changing skin it Before, including:
Described client changes skin request according to receive, obtains corresponding skin file and carries out changing skin;
Described client changes described cookie file according to the skin file of changed skin.
Wherein, described when judging that described client has carried out changing skin, described synchronization end carries out changing skin and includes:
Described synchronization end obtains the skin file mark of the changed skin of described client;
Described synchronization end sends to server and changes skin request, carries described skin file mark in described request, Described server is made to obtain the skin file of the changed skin of described client according to described skin file mark;
Described synchronization end obtains the skin file acquired in described server;
Described synchronization end loads the described skin file obtained to carry out changing skin.
Wherein, skin file identifies and includes one or more of: the title of skin file;Skin file ID.
Wherein, described the changed skin of synchronization end skin changed with described client identical or exist preset right Should be related to.
Wherein, described corresponding relation is by default or is set by the user, when described client changes skin, There is the skin file of corresponding relation, and root in the acquisition of described synchronization end and the changed skin file of described client Carry out changing skin according to the skin file of this correspondence.
Embodiments provide one and change skin system, including:
Synchronize end, change skin inquiry request for sending to client, obtain and change skin Query Result;According to changing Skin Query Result judges whether described client has carried out changing skin;When judging that described client has carried out changing skin Time, carry out changing skin;
Client, changes skin inquiry request for receiving described in described synchronization end, and changes skin described in obtaining and look into Ask result.
Embodiments provide a kind of synchronization end, including:
Enquiry module, changes skin inquiry request for sending to client, obtains and change skin Query Result;
Judge module, changes skin Query Result and judges described visitor described in obtaining according to described enquiry module Whether family end has carried out changing skin;
Change skin module, for when described judge module judges that described client has carried out changing skin, change Skin.
Wherein, described judge module specifically for:
Judge whether described cookie file is revised according to the described skin Query Result that changes;
When described cookie file is modified, then judge that described client has carried out changing skin;Otherwise, Judge that described client does not carries out changing skin.
Wherein, change described in skin module specifically for:
Obtain the skin file mark of the changed skin of described client;
Send to server and change skin request, described request is carried described skin file mark, makes described clothes Business device obtains the skin file of the changed skin of described client according to described skin file mark;
Obtain the skin file acquired in described server;
Load the described skin file obtained to carry out changing skin.
Wherein, skin file identifies and includes one or more of: the title of skin file;Skin file ID.
Wherein, described the changed skin of synchronization end skin changed with described client identical or exist preset right Should be related to.
Wherein, described corresponding relation is by default or is set by the user, when described client changes skin, There is the skin file of corresponding relation, and root in the acquisition of described synchronization end and the changed skin file of described client Carry out changing skin according to the skin file of this correspondence.
The embodiment of the present invention provides a kind of client, including:
Receiver module, changes skin inquiry request for receiving described in described synchronization end;
Acquisition module, changes skin inquiry request described in receive according to described receiver module and obtains and change skin and look into Ask result, make synchronization end according to described in change skin Query Result and judge whether described client has carried out changing skin, And when judging that described client has carried out changing skin, described synchronization end carries out changing skin.
Wherein, also include:
Change skin module, for changing skin request according to receive, obtain corresponding skin file and carry out changing skin;
Management module, changes described cookie file for the skin file according to changed skin.
Compared with prior art, the invention have the advantages that and by synchronization end, client is inquired about, After judging that client has carried out changing skin according to Query Result, carry out with client synchronization change skin, thus real Show client to carry out synchronization with Tong Bu end and change skin, and when synchronizing end and being webpage, it is to avoid webpage refreshing, Save the network bandwidth, improve the experience sense of user.
Accompanying drawing explanation
In order to be illustrated more clearly that the present invention or technical scheme of the prior art, below will to the present invention or In description of the prior art, the required accompanying drawing used is briefly described, it should be apparent that, in describing below Accompanying drawing be only some embodiments of the present invention, for those of ordinary skill in the art, do not paying On the premise of going out creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of a kind of skin change method in the embodiment of the present invention;
Fig. 2 is the flow chart of a kind of client skin change method in the embodiment of the present invention;
Fig. 3 is the flow chart of another kind of client skin change method in the embodiment of the present invention;
Fig. 4 is the flow chart of a kind of webpage skin change method in the embodiment of the present invention;
Fig. 5 is the flow chart of another kind of webpage skin change method in the embodiment of the present invention;
Fig. 6 is a kind of structural representation synchronizing end in the embodiment of the present invention;
Fig. 7 is the structural representation of a kind of client in the embodiment of the present invention;
Fig. 8 is the structural representation of another kind of client in the embodiment of the present invention.
Detailed description of the invention
In the embodiment of the present invention, by webpage, client is inquired about, judge client according to Query Result After end has carried out changing skin, carry out with client synchronization change skin.
Below in conjunction with the accompanying drawing in the present invention, technical scheme is clearly and completely retouched State, it is clear that described embodiment is a part of embodiment of the present invention rather than whole embodiments. Based on the embodiment in the present invention, those of ordinary skill in the art are not under making creative work premise The every other embodiment obtained, broadly falls into the scope of protection of the invention.
As it is shown in figure 1, the embodiment of the present invention provides a kind of skin change method, be applied to include client and with The system of step end, specifically includes following steps:
Step 101, described synchronization end send to client and change skin inquiry request, obtain and change skin Query Result;
Step 102, described synchronization end according to described in change skin Query Result and judge whether described client is carried out Change skin;
Step 103, when judging that described client has carried out changing skin, described synchronization end carries out changing skin.
Wherein, described synchronization end can be and the webpage needed with client synchronization or software etc., concrete appellation Change do not affect the enforcement of technical solution of the present invention.
It should be noted that client is actively to change the side of skin, synchronize end for change according to client Skin and carry out changing the side of skin, the most same entity can be client, it is possible to for synchronizing end, there is no strict Distinguish.
The basis for estimation of above-mentioned " judging whether described client has carried out changing skin " can be client Whether cookie file is revised, or the related data synchronizing to store in the internal memory of end reading client is sentenced Disconnected, other synchronize ends and judge whether client is changed the mode of skin and belonged to protection scope of the present invention certainly, Such as the two carries out the mutual of relevant information by third party.But owing to synchronizing the internal memory of end access client Time, may be limited by client, therefore whether be revised by the cookie file of client and sentence Breaking as preferred embodiment, the cookie file with basis for estimation as client is by the embodiment of the present invention It is described in detail as a example by no amendment.
According to the described skin Query Result that changes, above-mentioned steps 102 " judges whether described client is changed Skin " the cookie file that basis for estimation is client whether revise.Before this, client is changed After skin, need the cookie file that amendment is local, carry out changing skin according to this cookie file for webpage. Therefore, in order in the clear and definite embodiment of the present invention, webpage (synchronization end) and client synchronization change skin, with Under first client changed the method for skin be described in detail.Specifically include two ways.
Client changes skin mode one as in figure 2 it is shown, the embodiment of the present invention provides a kind of client to change skin side Method, client carries out changing skin according to the skin file changing the changed skin of skin request of loading received, and repaiies this Ground cookie file characterizes skin file and uses the corresponding skin file value of state, specifically include following Step:
Step 201, client receive changes skin request.
When user logs in FTP client FTP (such as QQ music box) by browser, this client is by control Part provides the platform mutual with user, such as: " play mode ", " volume " and " replacing skin " etc. are various The control of function.Preferably, " replacing skin " control provide various skin for you to choose, as " sapphire blue ", The skin of the style such as " blue-and-white porcelain " and " happy New Year ".If client raw hide skin is " blue-and-white porcelain ", and when using When family selects one of which skin (such as " happy New Year ") to be replaced, client is by corresponding with this control Handle sends to client and changes skin request.
It should be noted that the skin of above-mentioned variant style is only for example, it is not construed as the limit to the present invention System.
Preferably, (can pass through when the skin that the skin that client is to be changed is current with client is identical The mark of skin file identifies identical skin, such as the title of skin file, or ID etc.), client is the most not Receive this change skin request or receive this change skin request after, do not process.Certainly, it is possible to carry out changing skin, but It is identical with changing the skin after skin now to change the skin before skin.
Step 202, client, according to changing skin request, obtain corresponding skin file and load from this locality.
The skin file of the various styles of client installation Software package with client in advance is locally downloading, And it is stored in this locality.Preferably, client can be led to by updating to inquire about or receive to update to server transmission Know, local skin file is updated.
When client receives and changes skin request, according to this change skin file title that skin asked (certain, Can also identify for other skin file that can uniquely identify skin file such as skin file ID), get This skin file, loads this skin file.
It is the most successful that step 203, client judge to change skin.
When judging to change skin success, forward step 204 to;
When judging to change skin failure, forward step 202 to;Or abandon this request, and change skin failure to user's transmission Prompting (also after the default frequency of failure, then this request can be abandoned).
Step 204, client are according to the skin literary composition of the cookie file of the skin file amendment this locality loaded Part uses state.
Preferably, the relevant information of the various skin file of client is (such as skin file title, skin file value Deng) store with the form of cookie file, as shown in table 1.Wherein, skin file value is used for characterizing Whether the use state that this skin file is current, use according to this skin file and the skin file value that determines. Such as: when this skin file is currently used file, its value is non-" 0 ";When this skin file non-present When using file, its value is " 0 ";Preferably, 1 to n (n is more than 1) individual skin can be set as required The information of skin file, is not limited to this in the embodiment of the present invention in addition, as long as webpage and client agreement are known altogether Judgment criterion belong to protection scope of the present invention.Certainly, client also can only store currently used skin The cookie file of skin file.
Table 1, the cookie file of skin file
Skin file title Skin file value
Skin file one Skin file uses status indicator
Skin file two Skin file uses status indicator
Skin file three Skin file uses status indicator
Local cookie file is the key of the skin of client and skin with the webpage of client linkage, visitor Family end and the webpage that links therewith all keep one by loading the skin file of mark in this this locality cookie file Cause property.Therefore, when after client change skin, need the cookie file that time update is local, for Webpage and the client synchronization of linkage carry out skin renewal.Specifically, the skin file used before skin being changed Skin file use state be set to " 0 ", after skin being changed use skin file use state be set to non-" 0 " (such as: be set to " 1 ").
It should be noted that there is corresponding relation, as being QQ when client in linkage instruction client and webpage During music box, the webpage linked therewith can be QQ music libraries.To the client and the net that there is interaction relation Page carries out synchronization and changes skin, it is possible to achieve show the unification of style, improves the experience sense of user.Wherein, linkage Relation can be arranged automatically by client, or the interface that user is provided by client is arranged voluntarily.Certainly, Present disclosure applies equally to not exist client and the webpage of interaction relation.
The amended local cookie file of step 205, client storage.
Client changes skin mode two as it is shown on figure 3, the embodiment of the present invention provides a kind of client to change skin side Method, client carries out changing skin according to the skin file changing the changed skin of skin request of loading received, and repaiies this Ground cookie file characterizes the corresponding skin file value of skin file storage address, specifically includes following Step:
Step 301, client receive changes skin request.
When user logs in FTP client FTP (such as QQ music box) by browser, this client is by control Part provides the platform mutual with user, such as: " play mode ", " volume " and " replacing skin " etc. are various The control of function.Preferably, " replacing skin " control provide various skin for you to choose, as " sapphire blue ", The skin of the style such as " blue-and-white porcelain " and " happy New Year ".If client raw hide skin is " blue-and-white porcelain ", and when using When family selects one of which skin (such as " happy New Year ") to be replaced, client is by corresponding with this control Handle sends to client and changes skin request.
Preferably, when the skin that the skin that client is to be changed is current with client is identical, client is then Do not receive this change skin request or receive this change skin request after, do not process.Certainly, it is possible to carry out changing skin, But now change the skin before skin with change skin after skin identical.
Step 302, client, according to changing skin request, obtain corresponding skin file and load from this locality.
The skin file of the various styles of client installation Software package with client in advance is locally downloading, And it is stored in this locality.Preferably, client can be led to by updating to inquire about or receive to update to server transmission Know, local skin file is updated.
When client receives and changes skin request, according to this change skin file title that skin asked (certain, Can also identify for other skin file that can uniquely identify skin file such as skin file ID), get This skin file, loads this skin file.
It is the most successful that step 303, client judge to change skin.
When judging to change skin success, forward step 304 to;
When judging to change skin failure, forward step 302 to;Or abandon this request, and change skin failure to user's transmission Prompting (also after the default frequency of failure, then this request can be abandoned).
Step 304, client are according to the skin file ground of the cookie file of the file modification this locality loaded Location.
Preferably, the relevant information of the various skin file of client is (such as skin file title, skin file value Deng) store with the form of cookie file, as shown in table 2.Wherein, skin file value is used for characterizing Server stores the skin file address of this skin file, such as: when this skin file is currently used literary composition During part, its value is non-" 0 ", is the character string of a sign address;When this skin file non-present uses file Time, its value is " 0 ";Preferably, 1 to n (n is more than or equal to 1) individual skin literary composition can be set as required The information of part, is not limited to this in the embodiment of the present invention in addition, if webpage and client agreement know altogether sentence Disconnected criterion belongs to protection scope of the present invention.Certainly, client also can only store currently used skin literary composition The cookie file of part.
Table 2, the cookie file of skin file
Skin file title Skin file value
Skin file one Skin file address
Skin file two Skin file address
Skin file three Skin file address
Now, the skin file address of the skin file used before changing skin is set to " 0 ", uses after changing skin Skin file address be set to this skin file storage position in the server.
The amended local cookie file of step 305, client storage.
Below according to above-mentioned client skin change method, the embodiment of the present invention provides a kind of and client linkage The method that webpage and client carry out synchronizing to change skin.Wherein, the webpage with client linkage has and client End unanimously changes the feature of skin, and after i.e. client changes skin, this webpage is also carried out changing accordingly skin, with keep with The unification of client skin style.
As shown in Figure 4, the embodiment of the present invention provides a kind of skin change method, leads to the webpage of client linkage Crossing the skin file that in client cookie file, skin file value characterizes uses status poll to corresponding visitor After family end changes skin, from server, obtain currently used skin file carry out synchronization and change skin, specifically include Following steps:
Step 401, webpage send to the client linked therewith and change skin inquiry request.
Specifically, when user is after client logs in, change skin with the webpage of client linkage to client transmission Request, its send mode can continuous poll, or regularly inquiry etc..
Certainly, it is possible to by client after changing skin, actively send to webpage and change skin notice, but due to the method There is compatible and Transplanting Problem, therefore in the embodiment of the present invention, technical scheme is preferred version.
The webpage of step 402 and client linkage judges whether client has carried out changing skin.
The relevant information of the various skin of client can be stored in the cookie file of this locality, and works as client After carrying out changing skin, the skin file value in the cookie file of this this locality can be carried out instant renewal.Therefore, The webpage linked with this client can judge client by the skin file value in the cookie file of client Whether end has carried out changing skin, and concrete judgment criterion is arranged by webpage and client, as used skin file value Characterize the use state of skin file, when skin file value is " 0 ", then it represents that this skin file non-present skin The skin file that skin is corresponding;When skin file value is non-" 0 " (such as " 1 "), then it represents that this skin file is for working as The skin file that front skin is corresponding.Certainly, the embodiment of the present invention is not limited to this, if webpage and client The judgment criterion that end agreement is known altogether belongs to protection scope of the present invention.Specifically, webpage passes through skin file Value judges in various skin file, which kind of skin is the current skin of client, and works as skin and the net of client When the current skin of page is inconsistent, carry out changing skin.Certainly, if client only stores currently used skin literary composition The cookie file of part, then the cookie file of the skin file that webpage obtains is the skin that client is current File.
When judging that client has carried out changing skin, forward step 403 to;
When judging that client does not carries out changing skin, forward step 401 to.
Step 403, webpage send to server and change skin request, carry changed skin file mark in this request.
Wherein, skin file is designated the mark that can be used for uniquely identifying skin file, such as the name of skin file Claim and ID etc..
Wherein, server can be special to change skin server, it is also possible to increases response in existing server Function.
Step 404, server are asked according to the skin that changes of webpage, obtain the skin file of corresponding changed skin, And it is sent to webpage as changing skin response.
Wherein, the skin file of changed skin obtains according to the skin file mark carried in request.
Step 405, webpage, according to the skin file to changed skin received, carry out loading and change skin.
It should be noted that the inquiry of webpage in the embodiment of the present invention, judge, receive and the behavior such as loading is equal Completed by the associated script of webpage.
As it is shown in figure 5, the embodiment of the present invention provides a kind of skin change method, lead to the webpage of client linkage Cross skin file address lookup that skin file value in client cookie file the characterizes client to correspondence After changing skin, carry out synchronization according to skin file address from the server currently used skin file of acquisition and change skin, Specifically include following steps:
Step 501, webpage send to the client linked therewith and change skin inquiry request.
Specifically, when user is after client logs in, change skin with the webpage of client linkage to client transmission Request, its send mode can continuous poll, or regularly inquiry etc..
Certainly, it is possible to by client after changing skin, actively send to webpage and change skin notice, but due to the method There is compatible and Transplanting Problem, therefore in the embodiment of the present invention, technical scheme is preferred version.
The webpage of step 502 and client linkage judges whether client has carried out changing skin.
The relevant information of the various skin of client can be stored in the cookie file of this locality, and works as client After carrying out changing skin, the skin file value in the cookie file of this this locality can be carried out instant renewal, this skin Skin file value is that corresponding skin file is in the storage address of server.Therefore, the net linked with this client By the skin file value in the cookie file of client, page can judge whether client has carried out changing skin, Concrete judgment criterion is arranged by webpage and client, as being " 0 " when skin file value, i.e. and this skin file Address is empty, then it represents that the file that this skin file non-present skin is corresponding;When skin file value is a character During string, it is the storage address of this skin file, then it represents that this skin file is the file that current skin is corresponding. Specifically, by skin file value, webpage judges in various skin file, which kind of skin is the current skin of client Skin, and when the skin of client and the current skin of webpage are inconsistent, carry out changing skin.Certainly, if client End only stores the cookie file of currently used skin file, then the skin file that webpage obtains is client Hold current skin file.
When judging that client has carried out changing skin, forward step 503 to;
When judging that client does not carries out changing skin, forward step 501 to.
Step 503, webpage send to server and change skin request, carry not for empty skin file ground in this request Location.
Now, it is, according to the skin file not being empty skin file address acquisition, the skin that client is current File.
Wherein, server can be special to change skin server, it is also possible to increases response in existing server Function.
Step 504, server are asked according to the skin that changes of webpage, obtain the skin file of corresponding changed skin, And it is sent to webpage as changing skin response.
Step 505, webpage, according to the skin file to changed skin received, carry out loading and change skin.
It should be noted that the inquiry of webpage in the embodiment of the present invention, judge, receive and the behavior such as loading is equal Completed by the associated script of webpage.
It should be noted that by use status indicator and the skin file of skin file in the embodiment of the present invention Address judge presently used skin file be one preferred embodiment, every webpage and client The mode made an appointment and know altogether belongs to protection scope of the present invention.
The embodiment of the present invention can apply to the operating system of all support cookie files, wherein based on The embodiment of Windows operating system is: 1, client uses the API that Windows operating system provides (Application Programming Interface, application programming interface), knows local cookie file The address deposited.2, the value during client arranges cookie file.3, client linkage webpage is by js foot This program obtains the value of local cookie, when local when changing of cookie, dynamic load skin file Skin is changed in realization.
Client and the webpage linked therewith in the embodiment of the present invention can be carried out by said method seamlessly Carry out changing skin, i.e. this method is applicable to any platform, there is not incompatibility problem.Additionally, client and net The skin that page is changed can be identical, or there is the corresponding relation preset (according to corresponding relation selection skin file Carry out changing skin, such as: skin close for style is arranged to exist the skin file of corresponding relation).Additionally, The embodiment of the present invention illustrates as a example by webpage and the client that links therewith carry out changing skin, the most also may be used To carry out the synchronism switching of other functions, such as font etc., every function that can carry out synchronism switching belongs to Protection scope of the present invention.
The embodiment of the present invention provides one to change skin system, including:
Synchronize end, change skin inquiry request for sending to client, obtain and change skin Query Result;According to changing Skin Query Result judges whether described client has carried out changing skin;When judging that described client has carried out changing skin Time, carry out changing skin;
Client, changes skin inquiry request for receiving described in described synchronization end, and changes skin described in obtaining and look into Ask result.
The embodiment of the present invention provides one to synchronize end, as shown in Figure 6, synchronizes end 600 and includes:
Enquiry module 610, changes skin inquiry request for sending to client, obtains and change skin Query Result;
Judge module 620, changes described in the judgement of skin Query Result described in obtaining according to enquiry module 610 Whether client has carried out changing skin;
Change skin module 630, for when judge module 620 judges that described client has carried out changing skin, carry out Change skin.
Wherein, it is judged that module 620 specifically for:
Judge whether described cookie file is revised according to the described skin Query Result that changes;
When described cookie file is modified, then judge that described client has carried out changing skin;Otherwise, Judge that described client does not carries out changing skin.
Wherein, change skin module 630 specifically for:
Obtain the skin file mark of the changed skin of described client;
Send to server and change skin request, described request is carried described skin file mark, makes described clothes Business device obtains the skin file of the changed skin of described client according to described skin file mark;
Obtain the skin file acquired in described server;
Load the described skin file obtained to carry out changing skin.
Wherein, skin file identifies and includes one or more of: the title of skin file;Skin file ID.
Wherein, described the changed skin of synchronization end skin changed with described client identical or exist preset right Should be related to.
Wherein, described corresponding relation is by default or is set by the user, when described client changes skin, There is the skin file of corresponding relation, and root in the acquisition of described synchronization end and the changed skin file of described client Carry out changing skin according to the skin file of this correspondence.
Modules in above-mentioned webpage is provided equal function, concrete appellation by the corresponding scripts in webpage Change do not affect the enforcement of technical solution of the present invention, do not affect protection scope of the present invention.
The embodiment of the present invention provides a kind of client, as it is shown in fig. 7, client 700 includes:
Receiver module 710, changes skin inquiry request for receiving described in described synchronization end;
Acquisition module 720, for according to described receiver module receive described in change skin inquiry request obtain change skin Query Result, make synchronization end according to described in change skin Query Result and judge whether described client has carried out changing skin, And when judging that described client has carried out changing skin, described synchronization end carries out changing skin.
Wherein, as shown in Figure 8, client 700, also include:
Change skin module 730, for changing skin request according to receive, obtain corresponding skin file and carry out changing skin;
Management module 740, changes described cookie file for the skin file according to changed skin.
The invention have the advantages that and by webpage, client is inquired about, judge according to Query Result After client has carried out changing skin, carry out with client synchronization change skin, it is achieved thereby that client and webpage Carry out synchronization and change skin, it is to avoid webpage refreshing, save the network bandwidth, improve the experience sense of user.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive this Bright can add the mode of required general hardware platform by software and realize, naturally it is also possible to by hardware, But the former is more preferably embodiment in the case of a lot.Based on such understanding, technical scheme The part contributed prior art the most in other words can embody with the form of software product, This computer software product is stored in a storage medium, including some instructions with so that a station terminal It is each that equipment (can be mobile phone, personal computer, server, or the network equipment etc.) performs the present invention Method described in individual embodiment.
The above is only the preferred embodiment of the present invention, it is noted that general for the art For logical technical staff, under the premise without departing from the principles of the invention, it is also possible to make some improvement and profit Decorations, these improvements and modifications also should regard protection scope of the present invention.
It will be appreciated by those skilled in the art that the module in the device in embodiment can describe according to embodiment Carry out being distributed in the device of embodiment, it is also possible to carry out respective change and be disposed other than the one of the present embodiment In individual or multiple device.The module of above-described embodiment can be integrated in one, it is also possible to separates and disposes;Can To merge into a module, it is also possible to be further split into multiple submodule.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
The several specific embodiments being only the present invention disclosed above, but, the present invention is not limited to this, The changes that any person skilled in the art can think of all should fall into protection scope of the present invention.

Claims (14)

1. a skin change method, is applied to include client and synchronize the system of end, it is characterised in that bag Include:
Described synchronization end sends to client and changes skin inquiry request, obtains the cookie that described client is local File;
Whether described synchronization end is modified according to described cookie file judges whether described client is entered Having gone and changed skin, if described cookie file is modified, described synchronization end then judges that described client is entered Go and changed skin;
When judging that described client has carried out changing skin, described synchronization end carries out changing skin.
2. the method for claim 1, it is characterised in that described synchronization end is according to changing skin inquiry knot Before fruit judges whether described client has carried out changing skin, including:
Described client changes skin request according to receive, obtains corresponding skin file and carries out changing skin;
Described client changes described cookie file according to the skin file of changed skin.
3. the method for claim 1, it is characterised in that described when judging that described client is carried out When changing skin, described synchronization end carries out changing skin and includes:
Described synchronization end obtains the skin file mark of the changed skin of described client;
Described synchronization end sends to server and changes skin request, carries described skin file mark in described request, Described server is made to obtain the skin file of the changed skin of described client according to described skin file mark;
Described synchronization end obtains the skin file acquired in described server;
The described skin file that the loading of described synchronization end obtains carries out local terminal and changes skin.
4. method as claimed in claim 3, it is characterised in that skin file mark includes following one Or multiple:
The title of skin file;
The ID of skin file.
5. the method for claim 1, it is characterised in that described the changed skin of synchronization end is with described The changed skin of client is identical or there is the corresponding relation preset.
6. method as claimed in claim 5, it is characterised in that described corresponding relation by default or Being set by the user, when described client changes skin, described synchronization end obtains and the changed skin of described client There is the skin file of corresponding relation in file, and carries out changing skin according to the skin file of this correspondence.
7. one kind is changed skin system, it is characterised in that including:
Synchronize end, change skin inquiry request for sending to client, obtain the cookie that described client is local File;Whether it is modified according to described cookie file and judges whether described client has carried out changing skin, If described cookie file is modified, described synchronization end then judges that described client has carried out changing skin; When judging that described client has carried out changing skin, carry out changing skin;
Client, changes skin inquiry request for receiving described in described synchronization end, and obtains the cookie of this locality File.
8. one kind synchronizes end, it is characterised in that including:
Enquiry module, changes skin inquiry request for sending to client, obtains described client this locality Cookie file;
Whether judge module, repaiied for the described cookie file obtained according to described enquiry module Change the original sentence to whether disconnected described client has carried out changing skin, if described cookie file is modified, described same Step end then judges that described client has carried out changing skin;
Change skin module, for when described judge module judges that described client has carried out changing skin, change Skin.
Synchronize end the most as claimed in claim 8, it is characterised in that described in change skin module specifically for:
Obtain the skin file mark of the changed skin of described client;
Send to server and change skin request, described request is carried described skin file mark, makes described clothes Business device obtains the skin file of the changed skin of described client according to described skin file mark;
Obtain the skin file acquired in described server;
Load the described skin file obtained to carry out changing skin.
Synchronize end the most as claimed in claim 9, it is characterised in that skin file mark includes with next Plant or multiple:
The title of skin file;
The ID of skin file.
11. synchronize end as claimed in claim 8, it is characterised in that described the changed skin of synchronization end and institute State the corresponding relation that the changed skin of client is identical or existence is default.
12. synchronize end as claimed in claim 11, it is characterised in that described corresponding relation is set by system Determining or be set by the user, when described client changes skin, described synchronization end obtains and is changed with described client There is the skin file of corresponding relation in skin file, and carries out changing skin according to the skin file of this correspondence.
13. 1 kinds of clients, it is characterised in that including:
Receiver module, for receive synchronize end change skin inquiry request;
Acquisition module, changes skin inquiry request acquisition this locality described in receiving according to described receiver module Whether cookie file, make synchronization end be modified according to described cookie file and judge described client Whether carry out changing skin, and when judging that described client has carried out changing skin, described synchronization end has carried out changing skin.
14. clients as claimed in claim 13, it is characterised in that also include:
Change skin module, for changing skin request according to receive, obtain corresponding skin file and carry out changing skin;
Management module, changes described cookie file for the skin file according to changed skin.
CN201010113165.1A 2010-02-24 2010-02-24 A kind of skin change method, system and device Active CN102163197B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010113165.1A CN102163197B (en) 2010-02-24 2010-02-24 A kind of skin change method, system and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010113165.1A CN102163197B (en) 2010-02-24 2010-02-24 A kind of skin change method, system and device

Publications (2)

Publication Number Publication Date
CN102163197A CN102163197A (en) 2011-08-24
CN102163197B true CN102163197B (en) 2016-09-14

Family

ID=44464430

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010113165.1A Active CN102163197B (en) 2010-02-24 2010-02-24 A kind of skin change method, system and device

Country Status (1)

Country Link
CN (1) CN102163197B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102279745A (en) * 2011-08-25 2011-12-14 深圳市五巨科技有限公司 Method and system for setting appearance of mobile terminal browser
CN102662672B (en) * 2012-04-05 2015-04-29 广州市动景计算机科技有限公司 Method and device for conducting skin changing process to webpages as well as mobile terminal
CN104102504B (en) * 2013-04-15 2019-04-12 腾讯科技(深圳)有限公司 A kind of client skin picture method for drafting and drawing apparatus
CN104252341B (en) * 2013-06-26 2019-02-22 腾讯科技(深圳)有限公司 The client device of the skin change method of application program, device and application program
CN106250157A (en) * 2016-08-03 2016-12-21 苏州美房云客软件科技股份有限公司 An a kind of key skin change method based on Android platform
CN109451325A (en) * 2018-10-19 2019-03-08 网易(杭州)网络有限公司 Skin change method, device, storage medium and the electronic device of platform is broadcast live
CN113448670A (en) * 2021-06-28 2021-09-28 吉林亿联银行股份有限公司 APP client skin changing method and device
CN113485733A (en) * 2021-07-20 2021-10-08 宜宾中星技术智能***有限公司 Interface skin updating system and method based on hybrid architecture

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079041A (en) * 2006-12-29 2007-11-28 腾讯科技(深圳)有限公司 Dynamic web page updating method and system
CN101356494A (en) * 2006-05-16 2009-01-28 捷讯研究有限公司 System and method of skinning the user interface of an application
CN101582860A (en) * 2009-06-16 2009-11-18 中兴通讯股份有限公司 Method for replacing user interface skins of different communication equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7278109B2 (en) * 2003-06-03 2007-10-02 International Business Machines Corporation System and method for dynamic uploading of user interface generation logic

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101356494A (en) * 2006-05-16 2009-01-28 捷讯研究有限公司 System and method of skinning the user interface of an application
CN101079041A (en) * 2006-12-29 2007-11-28 腾讯科技(深圳)有限公司 Dynamic web page updating method and system
CN101582860A (en) * 2009-06-16 2009-11-18 中兴通讯股份有限公司 Method for replacing user interface skins of different communication equipment

Also Published As

Publication number Publication date
CN102163197A (en) 2011-08-24

Similar Documents

Publication Publication Date Title
CN102163197B (en) A kind of skin change method, system and device
US10063618B2 (en) Remote browsing session management
US8849802B2 (en) Historical browsing session management
US8589385B2 (en) Historical browsing session management
AU2016202333B2 (en) Historical browsing session management
US20130080576A1 (en) Historical browsing session management
US20130080577A1 (en) Historical browsing session management
CN102355500B (en) Service push method and device
CN104488248B (en) A kind of file synchronisation method, server and terminal
CN105468707A (en) Cache-based data processing method and device
US10057320B2 (en) Offline browsing session management
CN105302895A (en) Data caching synchronization method, server and client side
CN109783757A (en) Render method and device, the system, storage medium, electronic device of webpage
CN107613040A (en) A kind of method and apparatus of domain name system DNS server lookup
CN109343858A (en) A kind of build a station automatically container deployment system and its working method based on server-side rendering
CN104539655A (en) Method and system for synchronizing and displaying address book in batches
CN103077186B (en) A kind of layer data treating apparatus and method
JP5460632B2 (en) Information recommendation processing apparatus, method and program
CN104572981B (en) A kind of Webpage method for caching and processing and mobile terminal device
CN104038518B (en) information processing method, server and terminal device
CN105100285A (en) Data downloading method and device
US9383958B1 (en) Remote co-browsing session management
CN110020320A (en) The method and apparatus for caching page pictures
CN103064910B (en) The apparatus and method processing layer data for android system
CN102916993A (en) Network hard disk data updating method and device

Legal Events

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