A webpage theme color adjusting method, device and system

By working collaboratively with smart devices and website servers, the system acquires and applies users' theme color information to adjust the webpage's color scheme, solving the problem of a lack of personalization on e-commerce platform websites and enabling personalized webpage theme color adjustments.

CN115437631BActive Publication Date: 2026-03-17GUANGDONG VOCATIONAL & TECHNICAL COLLEGE
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-02
Publication Date
2026-03-17

AI Technical Summary

Technical Problem

Existing e-commerce platform websites lack personalization, and users cannot customize the theme and color scheme of the webpages.

Method used

The website obtains the user's theme color information from smart devices and adjusts the webpage color of the website server accordingly to make it similar to the theme color of the smart devices.

Benefits of technology

It enables personalized webpage theme color adjustments for e-commerce platform websites, meeting users' individual needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115437631B_ABST
    Figure CN115437631B_ABST
Patent Text Reader

Abstract

This invention discloses a method, apparatus, and system for adjusting the theme color scheme of a webpage. The invention acquires the theme color scheme information of a smart device and adjusts the color scheme of the target webpage according to this information, making the color scheme of the target webpage similar to the theme color scheme of the smart device. This allows the color scheme of the target webpage to change according to the theme of the user's smart device, satisfying the user's personalized needs. This invention is primarily applicable to the field of internet technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of Internet technology, specifically to a method, apparatus, and system for adjusting the theme color of a webpage. Background Technology

[0002] Existing e-commerce platform websites generally allow users to log in and access the site via mobile devices. These websites typically have their own themes, which can only be adjusted by administrators. This results in a lack of personalization for the overall e-commerce platform website. Therefore, how to improve the personalization of e-commerce platform websites has become a pressing research topic in the industry. Summary of the Invention

[0003] This invention provides a method, apparatus, and system for adjusting the theme color of a webpage, in order to solve one or more technical problems existing in the prior art, and at least provide a beneficial option or create conditions.

[0004] Firstly, a method for adjusting the theme color of a webpage is provided, including:

[0005] Step 1: Obtain the request sent by the smart device to the website server to access the target website, and the request is referred to as the first request;

[0006] Step 2: Receive the second request returned by the website server;

[0007] The second request generation step includes: the website server responds to the first request, determines that the first request is the first request within a preset adjustment time, and if it is the first request, then: according to the first request, the target webpage corresponding to the target website that the smart device needs to access is obtained, the target webpage is denoted as the first target webpage, a first storage space and a second storage space are established, the first target webpage is stored in the first storage space, and a request to obtain the theme color information of the smart device is formed, the request is denoted as the second request;

[0008] Step 3: Based on the second request, obtain the theme color information of the smart device and send the theme color information to the website server;

[0009] Step 4: Receive the second target webpage returned by the website server;

[0010] The method for generating the second target webpage includes: the website server receiving the theme color information, storing the theme color information in a second storage space, adjusting the color information of the first target webpage according to the theme color information, and obtaining the second target webpage;

[0011] Step 5: Receive the fourth target webpage returned by the website server;

[0012] The method for generating the fourth target webpage includes: a website server responding to the first request, determining that the first request is the first request within a pre-set adjustment time; if it is not the first request, then: querying the target webpage corresponding to the target website that the smart device needs to access based on the first request, the target webpage being denoted as the third target webpage, storing the third target webpage in a first storage space, querying the theme color information from the second storage space, adjusting the color information of the third target webpage based on the theme color information, and obtaining the fourth target webpage;

[0013] Step 6: Pass the second target webpage to the smart device, and then pass the fourth target webpage to the smart device.

[0014] Furthermore, the webpage theme color adjustment method also includes step 7, which includes: periodically querying the duration for which the first storage space of the website server has stopped writing; when the duration exceeds the adjustment time, sending a third request to the website server to cancel the first storage space and the second storage space, and receiving cancellation completion information from the website server.

[0015] The method for generating cancellation completion information includes: the website server receiving a third request, canceling the first storage space and the second storage space according to the third request, and generating cancellation completion information.

[0016] Furthermore, the adjustment period is 24 hours.

[0017] Secondly, a device for adjusting the theme color of a webpage is provided, including:

[0018] processor;

[0019] Memory, used to store computer-readable programs;

[0020] When the computer-readable program is executed by the processor, the processor implements the webpage theme color adjustment method as described in any of the above technical solutions.

[0021] Thirdly, a webpage theme color adjustment system is provided, including: a smart device, a webpage server, and a processing device;

[0022] The processing device is used to include: Step 1, obtaining a request sent by a smart device to a website server to access a target website, the request being denoted as the first request;

[0023] Step 2: Receive the second request returned by the website server;

[0024] The second request generation step includes: the website server responds to the first request, determines that the first request is the first request within a preset adjustment time, and if it is the first request, then: according to the first request, the target webpage corresponding to the target website that the smart device needs to access is obtained, the target webpage is denoted as the first target webpage, a first storage space and a second storage space are established, the first target webpage is stored in the first storage space, and a request to obtain the theme color information of the smart device is formed, the request is denoted as the second request;

[0025] Step 3: Based on the second request, obtain the theme color information of the smart device and send the theme color information to the website server;

[0026] Step 4: Receive the second target webpage returned by the website server;

[0027] The method for generating the second target webpage includes: the website server receiving the theme color information, storing the theme color information in a second storage space, adjusting the color information of the first target webpage according to the theme color information, and obtaining the second target webpage;

[0028] Step 5: Receive the fourth target webpage returned by the website server;

[0029] The method for generating the fourth target webpage includes: a website server responding to the first request, determining that the first request is the first request within a pre-set adjustment time; if it is not the first request, then: querying the target webpage corresponding to the target website that the smart device needs to access based on the first request, the target webpage being denoted as the third target webpage, storing the third target webpage in a first storage space, querying the theme color information from the second storage space, adjusting the color information of the third target webpage based on the theme color information, and obtaining the fourth target webpage;

[0030] Step 6: Pass the second target webpage to the smart device, and then pass the fourth target webpage to the smart device.

[0031] Furthermore, the processing device is also used to include step 7, which includes: periodically querying the website server for the duration during which the first storage space has stopped writing; when the duration exceeds the adjustment time, sending a third request to the website server to cancel the first and second storage spaces; and receiving cancellation completion information from the website server.

[0032] The method for generating cancellation completion information includes: the website server receiving a third request, canceling the first storage space and the second storage space according to the third request, and generating cancellation completion information.

[0033] Furthermore, the adjustment period is 24 hours.

[0034] This invention has at least the following beneficial effects: It provides a method, apparatus, and system for adjusting the theme color scheme of a webpage. By acquiring the theme color scheme information of a smart device and adjusting the color scheme information of the target webpage as desired by the user, the color scheme of the target webpage closely matches the theme color scheme information of the smart device. This allows the color scheme of the target webpage to change according to the theme of the user's smart device, satisfying the user's personalized needs. This invention is primarily applicable to the field of internet technology. Attached Figure Description

[0035] The accompanying drawings are provided to further understand the technical solutions of the present invention and constitute a part of the specification. They are used together with the embodiments of the present invention to explain the technical solutions of the present invention, and do not constitute a limitation on the technical solutions of the present invention.

[0036] Figure 1 This is a flowchart showing the steps involved in adjusting the theme color scheme of a webpage.

[0037] Figure 2 This is a schematic diagram of the system connection structure of the webpage theme color adjustment system. Detailed Implementation

[0038] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0039] It should be noted that although functional modules are divided in the system diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the system or the order in the flowchart. The terms "first," "second," etc., in the specification, claims, and the aforementioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0040] Firstly, reference Figure 1 , Figure 1 This is a flowchart showing the steps involved in adjusting the color scheme of a webpage theme.

[0041] The purpose of this invention is to enable the website's theme color scheme to be personalized according to the customer's situation, so as to meet the user's personalized needs.

[0042] To achieve this goal, this specific embodiment provides a method for adjusting the theme color of a webpage, including:

[0043] Step 1: Obtain the request sent by the smart device to the website server to access the target website. This request is referred to as the first request.

[0044] Step 2: Receive the second request returned by the website server.

[0045] The second request generation step includes: the website server responds to the first request, determines that the first request is the first request within a preset adjustment time, and if it is the first request, then: according to the first request, the target webpage corresponding to the target website that the smart device needs to access is obtained, the target webpage is denoted as the first target webpage, a first storage space and a second storage space are established, the first target webpage is stored in the first storage space, and a request to obtain the theme color information of the smart device is formed, the request is denoted as the second request.

[0046] Step 3: Based on the second request, obtain the theme color information of the smart device and send the theme color information to the website server.

[0047] Step 4: Receive the second target webpage returned by the website server.

[0048] The method for generating the second target webpage includes: the website server receiving the theme color information, storing the theme color information in a second storage space, and adjusting the color information of the first target webpage according to the theme color information to obtain the second target webpage.

[0049] Step 5: Receive the fourth target webpage returned by the website server.

[0050] The method for generating the fourth target webpage includes: a website server responding to the first request, determining that the first request is the first request within a pre-set adjustment time; if it is not the first request, then: querying the target webpage corresponding to the target website that the smart device needs to access based on the first request, the target webpage being denoted as the third target webpage, storing the third target webpage in a first storage space, querying the theme color information from the second storage space, adjusting the color information of the third target webpage based on the theme color information, and obtaining the fourth target webpage.

[0051] Step 6: Pass the second target webpage to the smart device, and then pass the fourth target webpage to the smart device.

[0052] When the theme color adjustment method for this webpage is executed:

[0053] Step 1 involves sending a request to the website server for the target website the user wants to query. Typically, users can communicate with a smart device. The smart device translates the user's request into a digital signal. This digital signal becomes the first request, which the smart device then sends to the website server. This informs the website server that the smart device desires information about the target webpage.

[0054] The website server will respond to the first request, and then it will respond to the second request.

[0055] The feedback of the second request is subject to certain conditions, specifically: the second request generation steps include: the website server responds to the first request, determines that the first request is the first request within a pre-set adjustment time, and if it is the first request, then: according to the first request, the target webpage corresponding to the target website that the smart device needs to access is obtained, the target webpage is denoted as the first target webpage, a first storage space and a second storage space are established, the first target webpage is stored in the first storage space, forming a request to obtain the theme color information of the smart device, the request is denoted as the second request.

[0056] The second feedback request requires the smart device to send its first request to the website server within a pre-set adjustment time. This adjustment time is pre-set, and its length determines the frequency with which the website server's theme color scheme and the smart device's theme color scheme synchronize. A shorter time indicates a faster synchronization speed between the website server's theme color scheme and the smart device's theme color scheme. However, considering that users do not frequently change the theme of their smart devices, the adjustment time should not be too short. Conversely, the adjustment time should not be too long either, as an excessively long time would hinder timely information about the smart device's theme color scheme and prevent timely adjustments.

[0057] Once the first request is determined to be the first request within the adjustment time, a first storage space and a second storage space are established. The first storage space is used to store the first target webpage. The second storage space is used to store the theme color information of the smart device obtained later.

[0058] After confirming receipt of the second request, the theme color information of the smart device can be obtained. Once the theme color information of the smart device is obtained, it can be sent to the website server.

[0059] After obtaining the theme color information, the website server knows the theme color information of the smart device. Therefore, the website server can modify the theme color of the target webpage according to the theme color information. Specifically, the website server stores the theme color information in a second storage space. Storing the theme color information in the second storage space makes it convenient for the smart device to access the next target webpage without needing to request the theme color information from the website server again; it can directly retrieve the information from the second storage space.

[0060] Of course, once the smart device has sent its theme color information to the website server, the website server no longer needs to request the smart device to obtain its theme color information. This situation generally manifests as follows: when the website server responds to the first request, it discovers that the first request is not the first request within the adjustment time. In this case, it can directly query the theme color information from the second storage space. To distinguish it from the first target webpage, the target webpage requested by the smart device at this time is recorded as the third target webpage. After obtaining the third target webpage, the website server can query the corresponding theme color information from the second storage space and adjust the color information of the third target webpage according to the theme color information to obtain the fourth target webpage. Finally, depending on the specific situation, the second and fourth target webpages are transmitted to the smart device. The user can then obtain a target webpage with a theme color similar to that of the smart device, thus realizing personalized color settings for webpages.

[0061] This invention acquires the theme color information of a smart device and adjusts the color information of the target webpage according to that information, making the color information of the target webpage similar to the theme color information of the smart device. This allows the color of the target webpage to change based on the theme of the user's smart device, thus satisfying the user's personalized needs.

[0062] In some preferred embodiments, the webpage theme color adjustment method further includes step 7, which includes: periodically querying the duration for which the first storage space of the website server has stopped writing; when the duration exceeds the adjustment time, sending a third request to the website server to cancel the first storage space and the second storage space, and receiving cancellation completion information from the website server.

[0063] The method for generating cancellation completion information includes: the website server receiving a third request, canceling the first storage space and the second storage space according to the third request, and generating cancellation completion information.

[0064] By setting step 7, the first and second storage spaces can be canceled under certain conditions, freeing up space on the website server.

[0065] In some preferred embodiments, the adjustment time is 24 hours.

[0066] Secondly, a webpage theme color adjustment device is provided, comprising: a processor and a memory. The memory is used to store a computer-readable program. When the computer-readable program is executed by the processor, the processor causes the processor to implement the webpage theme color adjustment method as described in any of the above specific embodiments.

[0067] Those skilled in the art will understand that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0068] refer to Figure 2 , Figure 2 This is a schematic diagram of the system connection structure of the webpage theme color adjustment system.

[0069] Thirdly, a webpage theme color adjustment system is provided, including: a smart device, a webpage server, and a processing device;

[0070] The processing device is used to include: Step 1, obtaining a request sent by a smart device to a website server to access a target website, the request being denoted as the first request;

[0071] Step 2: Receive the second request returned by the website server;

[0072] The second request generation step includes: the website server responds to the first request, determines that the first request is the first request within a preset adjustment time, and if it is the first request, then: according to the first request, the target webpage corresponding to the target website that the smart device needs to access is obtained, the target webpage is denoted as the first target webpage, a first storage space and a second storage space are established, the first target webpage is stored in the first storage space, and a request to obtain the theme color information of the smart device is formed, the request is denoted as the second request;

[0073] Step 3: Based on the second request, obtain the theme color information of the smart device and send the theme color information to the website server;

[0074] Step 4: Receive the second target webpage returned by the website server;

[0075] The method for generating the second target webpage includes: the website server receiving the theme color information, storing the theme color information in a second storage space, adjusting the color information of the first target webpage according to the theme color information, and obtaining the second target webpage;

[0076] Step 5: Receive the fourth target webpage returned by the website server;

[0077] The method for generating the fourth target webpage includes: a website server responding to the first request, determining that the first request is the first request within a pre-set adjustment time; if it is not the first request, then: querying the target webpage corresponding to the target website that the smart device needs to access based on the first request, the target webpage being denoted as the third target webpage, storing the third target webpage in a first storage space, querying the theme color information from the second storage space, adjusting the color information of the third target webpage based on the theme color information, and obtaining the fourth target webpage;

[0078] Step 6: Pass the second target webpage to the smart device, and then pass the fourth target webpage to the smart device.

[0079] In some preferred embodiments, the processing device is further configured to include step 7, which includes: periodically querying the website server for the duration during which the first storage space has stopped writing; when the duration exceeds the adjustment time, issuing a third request to the website server to cancel the first and second storage spaces; and receiving cancellation completion information from the website server.

[0080] The method for generating cancellation completion information includes: the website server receiving a third request, canceling the first storage space and the second storage space according to the third request, and generating cancellation completion information.

[0081] In some preferred embodiments, the adjustment time is 24 hours.

[0082] The above is a detailed description of the preferred embodiments of the present invention. However, the present invention is not limited to the above embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present invention. All such equivalent modifications or substitutions are included within the scope defined by the claims of the present invention.

Claims

1. A method for adjusting the theme color of a webpage, characterized in that, The method comprises the following steps: Step 1, obtaining the smart device sending a request for accessing a target website to a website server, and the request is recorded as a first request; Step 2, receiving a second request fed back by the website server; The second request generating step comprises the following steps: the website server responds to the first request, judges that the first request is a first request within a preset adjustment time, if it is a first request, then: the target website corresponding to the target webpage that the smart device needs to access is obtained according to the first request, the target webpage is recorded as a first target webpage, a first storage space and a second storage space are established, the first target webpage is stored in the first storage space, a request for obtaining the theme color information of the smart device is formed, and the request is recorded as a second request; Step 3, obtaining the theme color information of the smart device according to the second request, and sending the theme color information to the website server; Step 4, receiving a second target webpage fed back by the website server; The second target webpage generating method comprises the following steps: the website server receives the theme color information, stores the theme color information in the second storage space, adjusts the color information of the first target webpage according to the theme color information, and obtains the second target webpage; Step 5, receiving a fourth target webpage fed back by the website server; The fourth target webpage generating method comprises the following steps: the website server responds to the first request, judges that the first request is a first request within a preset adjustment time, if it is not a first request, then: the target website corresponding to the target webpage that the smart device needs to access is obtained according to the first request, the target webpage is recorded as a third target webpage, the third target webpage is stored in the first storage space, the theme color information is obtained from the second storage space, the color information of the third target webpage is adjusted according to the theme color information, and the fourth target webpage is obtained; Step 6, the second target webpage is transmitted to the smart device, and the fourth target webpage is transmitted to the smart device.

2. The method of claim 1, wherein, Between step 5 and step 6, there is also a step of periodically inquiring the time length of the stop of the writing of the first storage space of the website server, when the time length exceeds the adjustment time, a third request for canceling the first storage space and the second storage space of the website server is sent, and the cancel completion information fed back by the website server is received; The cancel completion information generating method comprises the following steps: the website server receives the third request, cancels the first storage space and the second storage space according to the third request, and generates the cancel completion information.

3. The method of claim 1, wherein, The adjustment time is 24 hours.

4. A web page theme color adjusting apparatus, characterized by, The method comprises the following steps: A processor; A memory for storing a computer readable program; When the computer readable program is executed by the processor, the processor realizes the webpage theme color adjustment method according to any one of claims 1-3.

5. A web page theme color tone adjustment system, characterized by, The method comprises the following steps: A smart device, a website server and a processing device; The processing device is used for the following steps: Step 1, obtaining the smart device sending a request for accessing a target website to a website server, and the request is recorded as a first request; Step 2, receiving a second request fed back by the website server; The second request generating step comprises: the website server judges the first request as the first request within the preset adjustment time in response to the first request, and if it is the first request, the target webpage corresponding to the target website accessed by the intelligent device is obtained according to the first request, the target webpage is recorded as the first target webpage, the first storage space and the second storage space are established, the first target webpage is stored in the first storage space, the request for obtaining the theme color information of the intelligent device is formed, and the request is recorded as the second request. Step 3: obtaining the theme color information of the intelligent device according to the second request, and sending the theme color information to the website server; Step 4: receiving the second target webpage fed back by the website server; The second target webpage generating method comprises: the website server receives the theme color information, stores the theme color information in the second storage space, adjusts the color information of the first target webpage according to the theme color information, and obtains the second target webpage. Step 5: receiving the fourth target webpage fed back by the website server; The fourth target webpage generating method comprises: the website server judges the first request as the first request within the preset adjustment time in response to the first request, and if it is not the first request, the target webpage corresponding to the target website accessed by the intelligent device is obtained according to the first request, the target webpage is recorded as the third target webpage, the third target webpage is stored in the first storage space, the theme color information is obtained from the second storage space, the color information of the third target webpage is adjusted according to the theme color information, and the fourth target webpage is obtained. Step 6: transmitting the second target webpage to the intelligent device and transmitting the fourth target webpage to the intelligent device.

6. The web page theme tone adjusting system of claim 5, wherein, The processing device is further used to execute the following steps between step 5 and step 6: periodically inquiring the duration of stopping writing in the first storage space of the website server, and when the duration exceeds the adjustment time, a third request for canceling the first storage space and the second storage space of the website server is sent, and the cancel completion information fed back by the website server is received. The cancel completion information generating method comprises: the website server receives the third request, cancels the first storage space and the second storage space according to the third request, and generates the cancel completion information.

7. The web page theme tone adjusting system of claim 5, wherein, The adjustment time is 24 hours.

Citation Information

Patent Citations

  • Page theme tone adjusting method, device and equipment and medium

    CN109783182A

  • Theme tone adjusting method, device and equipment and computer readable storage medium

    CN110377380A