CN108920561A - A kind of webpage setting method and device - Google Patents

A kind of webpage setting method and device Download PDF

Info

Publication number
CN108920561A
CN108920561A CN201810639720.0A CN201810639720A CN108920561A CN 108920561 A CN108920561 A CN 108920561A CN 201810639720 A CN201810639720 A CN 201810639720A CN 108920561 A CN108920561 A CN 108920561A
Authority
CN
China
Prior art keywords
color
web
pattern
conversion
access response
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.)
Pending
Application number
CN201810639720.0A
Other languages
Chinese (zh)
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.)
UNION MOBILE PAY ELECTRONIC COMMERCE Co Ltd
Original Assignee
UNION MOBILE PAY ELECTRONIC COMMERCE 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 UNION MOBILE PAY ELECTRONIC COMMERCE Co Ltd filed Critical UNION MOBILE PAY ELECTRONIC COMMERCE Co Ltd
Priority to CN201810639720.0A priority Critical patent/CN108920561A/en
Publication of CN108920561A publication Critical patent/CN108920561A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of webpage setting method and device, the method includes:Web proxy receives the web access requests that user terminal is sent;Color conversion instruction is carried in the web access requests;The Web proxy receives the access response page that web page server returns;The Web proxy is converted according to the color and is indicated, the element with color to be converted is searched from the access response page, and the pattern of the element is changed according to conversion pattern;Color indicated by the color attribute converted in pattern is converting colors;The converting colors are different from the color to be converted;The access response page after the Web proxy changes pattern is sent to the user terminal.

Description

A kind of webpage setting method and device
Technical field
The present invention relates to mobile internet technical field more particularly to a kind of webpage setting method and devices.
Background technique
With the growth of Internet service, the function that user realizes on mobile terminal, apparatus such as computer is more and more, people Life also increasingly be unable to do without internet.But when current browser carries out web page browsing or carries out web page operation, Do not consider that the use of special population, such as the user with protanopia anerythrochloropsia are carrying out web page browsing or progress using browser When web page operation, red button, the green button, red text and green text etc. cannot be distinguished, result of browse is deteriorated, user's body It tests not high.
Therefore, how for the user of special population particularization processing is provided, to improve user experience, in the prior art urgently One of technical problem to be solved.
Summary of the invention
The embodiment of the present invention provides a kind of webpage setting method and device, to provide particularization for the user of special population Processing improves user experience.
The embodiment of the present invention provides a kind of webpage setting method, including:
Web proxy receives the web access requests that user terminal is sent;It is carried in the web access requests Color conversion instruction;
The Web proxy receives the access response page that web page server returns;
The Web proxy according to the color convert indicate, from the access response page search have to The element of converting colors, and the pattern of the element is changed according to conversion pattern;Color attribute in the conversion pattern is signified The color shown is converting colors;The converting colors are different from the color to be converted;
The access response page after the Web proxy changes pattern is sent to the user terminal.
A kind of possible implementation, the color conversion instruction further includes color transition region;
The Web proxy searches the element for meeting the color to be converted from the access response page, and It is conversion pattern by the style replacement of the element, further includes:
The Web proxy is converted according to the color and is indicated, determines that the color in the access response page turns Change region;
The element for meeting the color to be converted is searched in the color transition region, and the pattern of the element is replaced It is changed to conversion pattern.
The embodiment of the present invention provides a kind of webpage setting method, including:
User terminal sends web access requests to Web proxy;Color is carried in the web access requests Conversion instruction;
The user terminal receives the access response page that the Web proxy is sent, and by the access response The page is shown to the user terminal;The access response page is that the Web proxy refers to according to color conversion Show, is obtained after the access response page progress pattern change returned to web page server;The pattern is changed to the webpage Proxy server has the pattern of the element of color to be converted according to conversion pattern change;Color attribute in the conversion pattern Indicated color is converting colors;The converting colors are different from the color to be converted.
A kind of possible implementation, the color conversion are designated as the user terminal according to the web access requests In color conversion switch obtain.
The embodiment of the present invention provides a kind of webpage setting device, including:
Transceiver module, for receiving the web access requests of user terminal transmission;It is carried in the web access requests Color conversion instruction;Receive the access response page that web page server returns;The access response page after pattern is changed is sent To the user terminal;
Processing module is indicated for being converted according to the color, is searched from the access response page with to be converted The element of color, and the pattern of the element is changed according to conversion pattern;Indicated by color attribute in the conversion pattern Color is converting colors;The converting colors are different from the color to be converted.
A kind of possible implementation, the color conversion instruction further include the region of color conversion;
The processing module is also used to convert indicating according to the color, determines the color in the access response page Transition region;It is searched in the color transition region and meets the element of the color to be converted, and by the pattern of the element Replace with conversion pattern.
The embodiment of the present invention provides a kind of webpage setting device, including:
Sending module, for sending web access requests to Web proxy;It is carried in the web access requests There is color conversion instruction;
Receiving module, the access response page sent for receiving the Web proxy, and the access is rung The page is answered to show to the user terminal;The access response page is that the Web proxy is converted according to the color Instruction obtains after the access response page progress pattern change returned to web page server;The pattern is changed to the net Page proxy server has the pattern of the element of color to be converted according to conversion pattern change;Color category in the conversion pattern Property indicated by color be converting colors;The converting colors are different from the color to be converted.
A kind of possible implementation, the color conversion are designated as the user terminal according to the access response page In color conversion switch obtain.
The embodiment of the present invention provides a kind of computer readable storage medium, and the computer-readable recording medium storage has meter Calculation machine executable instruction, the computer executable instructions provide any one for making the computer execute the embodiment of the present invention The method.
The embodiment of the present invention provides a kind of calculating equipment of webpage setting, including:
Memory, for storing program instruction;
It is real to execute the present invention according to the program of acquisition for calling the program instruction stored in the memory for processor Apply the described in any item methods of example.
A kind of webpage setting method provided in an embodiment of the present invention and device, Web proxy receive user terminal hair Send color conversion instruction;User can be made according to oneself wanting to need to define colour blindness mode, and pass through server and realize colour blindness mould The conversion of formula provides particularization processing for the user of special population, also meets the needs of different crowd, improve user's body It tests;The Web proxy is converted according to the color and is indicated, is searched from the access response page with to be converted The element of color, and the pattern of the element is changed according to conversion pattern;Indicated by color attribute in the conversion pattern Color is converting colors;The converting colors are different from the color to be converted;On the basis of not needing modification webpage, so that it may Easily to realize foundation of the colour blindness mode in different web pages, the efficiency of webpage setting is improved.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes a part of the invention, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of network architecture schematic diagram provided by the embodiments of the present application;
Fig. 2 is a kind of flow diagram of page setup method provided by the embodiments of the present application;
Fig. 3 is a kind of flow diagram of page setup method provided by the embodiments of the present application;
Fig. 4 is a kind of structural schematic diagram of page setup device provided by the embodiments of the present application;
Fig. 5 is a kind of structural schematic diagram of page setup device provided by the embodiments of the present application.
Specific embodiment
With the development of network technology and webpage design, the content of webpage is more and more abundant, and generallys use hypertext Markup language (Hyper Text Mark-up Language, HTML) format embodies, and html text is made of HTML command Descriptive text, HTML command can be with comment, figure, animation, sound, table, link etc..HTML is not a kind of programming Language, but a kind of markup language (markup language), markup language are a set of label labels (markup tag), HTML describes webpage using label label, and HTML markup label is commonly known as html tag (HTML tag).Html tag It is the keyword surrounded by angle brackets, such as<html>;What html tag usually occurred in pairs, such as<b>With</b>;Label First label of centering is to start label, and second label is end-tag;The also referred to as open mark of beginning and end label Label and closure label;Html document describes webpage, and html document includes html tag and plain text, and html document is also referred to as net Page.
JavaScript is that one kind can be used for HTML and web, more can be widely used for server, PC, laptop, plate The programming language of the equipment such as computer and smart phone.JavaScript is the programming code that can be inserted into html page. After JavaScript is inserted into html page, it can be executed by browser.Script in HTML must be positioned at<script>With</ script>Between label.Script can be placed on html page<body>With<head>In part.When webpage is loaded, Browser will create the DOM Document Object Model (Document Object Model) of the page.HTML DOM model is configured to pair The tree of elephant.By HTML DOM, it may have access to all elements of JavaScript html document.By programmable object model, JavaScript obtains enough abilities to create dynamic HTML.JavaScript can change all HTML in the page Element, attribute and CSS style, and make a response to all events in the page.
The embodiment of the present invention provides a kind of network architecture schematic diagram, as shown in Figure 1, including:User terminal 101, webpage generation Manage server 102, web page server 103.Web proxy 103 is for asking the web page access that user terminal 101 is sent Seek forwarding values web page server 103, web page server 102 is made web page access according to access request and responded, and by access response It is sent to Web proxy 103;Web page access response page is back to user terminal by Web proxy 103.Net Page proxy server 103 can be Proxy Server, be the service software established on the application layer, or Router, i.e. a network equipment or a computer, it is work at IP layers, and data are just forwarded after reaching IP layers.One As Proxy Server work on a computer both with MODEM and network interface card.Different Proxy Server The service that software provides is different, generally all provides WWW, and FTP etc. is commonly serviced, and Proxy Server can also be as one very Good firewall.
The flow diagram of a kind of webpage setting method provided in an embodiment of the present invention, as shown in Fig. 2, including:
Step 201:User terminal sends web access requests to Web proxy;It is taken in the web access requests It converts and indicates with color;
For the embodiment of the present invention is with programmable language (JavaScript, JS) script, wherein the color conversion instruction It can be an event of HTML;Such as when user clicks on HTML element, at this point, clicking the HTML element is one The event of HTML executes JavaScript when event occurs, and clicks corresponding instruction to obtain user.
A kind of possible implementation, the color conversion are designated as the user terminal according to the access response page In color conversion switch obtain.Specifically, the switch that the color is converted can be moved to member by mouse into user On element, user clicks mouse, input field, and user triggers what the modes such as key were realized.
The element of color change-over switch can be pre-created in the embodiment of the present invention, the element of the color change-over switch can be Html code, template instruction can also be CSS style code etc..Using each color change-over switch in the embodiment of the present invention The corresponding default template of element, directly modify color change-over switch Element generation template, and then can modify color conversion open The corresponding foreground pattern of the element of pass.
By taking CSS style as an example, the setting of the color change-over switch in page file generated in the embodiment of the present invention can be with It is added in the form of CSS in color change-over switch, therefore when practical reading and modification JS script, it is all with color change-over switch pair What the CSS style answered carried out, and independent modification can be carried out to the data in each color change-over switch, without to entire page Face file is modified.The process for simplifying the update of JS script alleviates the pressure of server update and updates the probability of error.
The color that the CSS style of corresponding colour blindness mode can be saved in the terminal of that embodiment of the invention and/or server turns The code information of the element of switch is changed, the color of the CSS style of the various corresponding colour blindness modes saved in terminal and/or server The code information of the element of change-over switch can increase in colour blindness mode webpage in any need to be used, and the face of same pattern Color change-over switch element can be used multiple times in the setting up procedure of webpage, therefore the present invention implements the setting of the webpage provided Method can effectively improve the setting efficiency of webpage.
It can be also color change-over switch setting mark, specifically, institute after generating color change-over switch in the embodiment of the present invention It states and is provided with linking relationship between mark and the element of color change-over switch, therefore be arranged in the mark of color change-over switch Appearance, pattern etc. can be carried out it is customized, such as can using the state of color change-over switch as mark be shown in color conversion In the element of switch.
It is the mark of color change-over switch setting in the embodiment of the present invention, the functions such as modification, sequence and additive color is supported, with more The typesetting and content for being suitble to webpage show form.In addition, can also freely adjust the position in webpage of color change-over switch, root It is configured according to the position by color change-over switch of the hobby of user, and so as to improve the whole sense organ of the page, is promoted User experience increases website viscosity.
For non-colour blindness user, the hidden function of color change-over switch, a kind of possible implementation, sheet can also be set After generating color change-over switch in inventive embodiments, the permission of protanopia anerythrochloropsia can be also set for color change-over switch, specifically, this There is between User ID (Identity, mark) and color change-over switch ID record in the permission being arranged in inventive embodiments Corresponding relationship, the corresponding user of the User ID, which has, compiles the corresponding color change-over switch of the color change-over switch ID The permission collected.
It, can be to the face that in different web pages, different user is arranged by the way that permission is arranged to color change-over switch in the present invention The setting of color change-over switch individually manages and setting permission, so that colour blindness mode has no effect on the use of other non-colour blindness crowds, So that the setting of webpage is easier to hand and maintenance, editor's flexibility is improved, working efficiency is improved.
For the efficiency for improving server edit colors change-over switch, a kind of possible implementation, in the embodiment of the present invention The historical record of also settable color change-over switch records the history ID of color change-over switch in the historical record, color turns Change the end of the current ID of switch, the code of color change-over switch, the creation time of color change-over switch, creation color change-over switch Hold the user information of IP (Internet Protocol, the agreement interconnected between network) address and creation color change-over switch.
In the embodiment of the present invention, can also determine user instruction be set as colour blindness mode web page element ID after, The ID can also be further saved, i.e., is in the server one colour blindness mode of the user maintenance, when user opens the net next time When page, the corresponding web page element of the ID is revised as color of object automatically by server.It is possible to further which colour blindness mould will be set as The URL and ID of webpage are stored in the colour blindness mode list of user where the web page element of formula.
Through the above technical solutions, the embodiment of the present invention is the use that colour blindness mode is opened in instruction when server recognizes user When family, color pattern of the element that color switch condition is met in webpage where it in webpage directly is set as turning by server Color is changed, user's operation is simple, improves the Experience Degree that user uses browser.And it is repeated in multiple pages without user Operation can be shown as colour blindness mode automatically, provide the user convenience.
It can also will meet color according to the URL of webpage where the element of color change-over switch in the embodiment of the present invention and turn The element for changing condition is stored in the corresponding classification of the URL.
By storing the element for meeting color switch condition in each webpage into a classification, can accelerate to service Processing speed of the device to the element for meeting color switch condition, specifically, when user indicates to open colour blindness mode, according to storage Corresponding relationship where to the web page element in the corresponding classification of URL of webpage determines the ID for needing the web page element replaced.
By the historical record of setting color change-over switch in the present invention, have for each setting of color change-over switch Detailed record improves static generation bring so that historical record function can be used to check all operation notes for server Information hardness and the low drawback of the efficiency of management.
In addition, also label can be arranged for the color change-over switch after generating color change-over switch in the embodiment of the present invention; By calling the label of color change-over switch, the color change-over switch is added in different webpages, is being needed color In the case that change-over switch is added to other webpages, then the label of corresponding color change-over switch can be called by duplication, by color Change-over switch is added to the corresponding position of the page, completes the addition of color change-over switch, simple to operate;In addition, repairing In the case where changing the same color change-over switch in different web pages, the color change-over switch can be regenerated, without pair Each webpage is modified.Such as the corresponding CSS style of the same color change-over switch can be added to multiple JS by server In script, position of the corresponding CSS style of color change-over switch in JS script be can customize, when in change color change-over switch Content after, also can accordingly be changed at different location using the content of this color change-over switch in each JS script, be realized same The modification of CSS style, which is synchronized in the different pages, in color change-over switch arbitrarily uses this color change-over switch.
Step 202:Web proxy receives the web access requests that user terminal is sent;The web access requests In carry color conversion instruction;
Step 203:The Web proxy receives web page server backward reference response page;The webpage agency Server is converted according to the color and is indicated, the element with color to be converted, and root are searched from the access response page The pattern of the element is changed according to conversion pattern;
Wherein, the color of the color attribute instruction converted in pattern is converting colors;The converting colors with it is described Color to be converted is different.
When loading webpage, the Web proxy can be by the CSS style of color change-over switch and relevant JavaScript processing script is injected into the main document of the webpage, when the browser resolves main document, can run injection JavaScript script.
By JavaScript, before the pattern of change element, the element for needing to change is required to look up.Search element Method may include:HTML element is found by id;HTML element is found by tag name;Html element is found by class name Element.
Possible be achieved in that of one kind is searched by selector, for example, id selector can be to indicate specific id HTML element specify specific pattern.Pattern can be arranged to the HTML element with specified attribute.Can be possess it is specified Pattern is arranged in the HTML element of attribute, is not limited solely to class and id attribute.CSS element selector, for example, element selector. If the pattern of HTML is arranged, selector usually will be some HTML element, such as p, h1, em, a, it might even be possible to be html sheet Body;In W3C standard, element selector is also known as typed selector (type selector)." typed selector matches document The title of language element type.The pattern of element in XML document can be set by CSS element selector (typed selector). CSS 2 introduces attribute selector.Attribute selector can select element according to attribute of an element and attribute value.Attributions selection Device is quite useful in XML document, because XML language is advocated to specify masurium and attribute for the purposes of element and attribute Name.It is selected according to specific object value;In addition to the element for selecting to possess certain attributes, range of choice can also be further reduced, only Selection has the element of particular attribute-value.It is selected according to part attribute value.
Specifically, in embodiments of the present invention, the element of color to be converted can be searched by selector, it is described to be converted The element of color can be the color in the colour blindness mode of user's selection, such as color to be converted is red and green in protanopia anerythrochloropsia Color, color to be converted is blue and green etc. in blue-green blind mode.Converting colors can be user oneself selection, can also Think what server was determined according to the color of the overall page of webpage, it is not limited here.
The color being previously mentioned in this programme is illustrated by taking true color as an example, i.e., the color value of color to be converted include R value, G value, B value three values.It is each to be converted if converting colors value includes converting colors R value, converting colors G value and converting colors B value Color value includes color R value, color G value to be converted and color B value to be converted to be converted.In order to facilitate subsequent descriptions, by former net The color value of several colors to be converted of page is denoted as a (R, G, B), and converting colors value is denoted as b (R, G, B) to indicate.
Former webpage might have multiple source code files, from multiple source code files of former webpage, obtain several tables Show that priming color value represented by the code field of color, multiple source code file can be CSS file or HTML File;The color value of colour blindness mode will be met in several priming color values obtained in code file, as face to be converted The color value of color.The color value of color to be converted is revised as converting colors value by selector.
The element for needing converting colors in webpage is determined by selector, and the color in the element is replaced with into conversion Color generates the corresponding access response page.Therefore, it is no longer necessary to which web developers are the more of colour blindness mode setting webpage in advance A template, compared with the prior art, the webpage generating method that this programme provides can generate customized net automatically, in real time Page, flexibility are stronger.
For improve transfer efficiency, can also save the code information of the element of converting colors in the server, with When family next time calls, it may not be necessary to be searched again in webpage, it is only necessary to which determination needs converting colors in the record of storage Element, effectively improve the efficiency of auto-building html files.
In view of the web page element for including in webpage updates quickly, such as some advertising informations, picture or Flash etc., this In inventive embodiments, after the color of web page element that storage has been replaced, it is also necessary to the elements of the converting colors of the storage It is updated, specifically, the list of the element of the converting colors saved in server, update mode is updated according to the setting period Including one or more of following:
If the element of some converting colors in webpage is expired or invalid, it is expired or invalid to delete these in server The element of converting colors, to reduce garbage to the occupancy of memory space;
If the position of the element of the converting colors in webpage in the web page changes, change in browser as this turn Change the position in the corresponding relationship of the element foundation of color;
If the mark of the element of the converting colors in webpage in the web page changes, changing is to be somebody's turn to do in browser The mark in corresponding relationship that the element of converting colors is established.
Further, it if having updated the element of new converting colors in webpage, needs according to the above process Method replaces and stores the element of these new converting colors.
Step 204:The access response page after the Web proxy changes pattern is sent to user's end End;The user terminal receives the access response page that the Web proxy returns, and by the access response page It shows to the user terminal.
A kind of webpage setting method provided in an embodiment of the present invention and device, Web proxy receive user terminal hair Send color conversion instruction;User can be made according to oneself wanting to need to define colour blindness mode, and pass through server and realize colour blindness mould The conversion of formula provides particularization processing for the user of special population, also meets the needs of different crowd, improve user's body It tests;The Web proxy is converted according to the color and is indicated, is searched from the access response page with to be converted The element of color, and the pattern of the element is changed according to conversion pattern;Indicated by color attribute in the conversion pattern Color is converting colors;The converting colors are different from the color to be converted;On the basis of not needing modification webpage, so that it may Easily to realize foundation of the colour blindness mode in different web pages, the efficiency of webpage setting is improved.
In a kind of possible implementation, if user only needs part color region in more new web page, such as, it is only necessary to it modifies The title bar region etc. of homepage, the color conversion instruction further include the region of color conversion;
The Web proxy searches the element for meeting the color to be converted from the access response page, and It is conversion pattern by the style replacement of the element, further includes:
The Web proxy is converted according to the color and is indicated, determines the region of the color conversion;
The element for meeting the color to be converted is searched in this region, and is conversion by the style replacement of the element Pattern.
In a specific scene, the region that the color is converted can be the needs that user selects in the different pages The region of colour blindness mode is all realized, also, the converting colors selection in the region is fixed, so that terminal is showing the different pages When, the scheme of colour in the region is set by user, but the color in other regions can be server according to presetting Color conversion regime converted, it is not limited here.Increase user from main modulation, and do not influence the entirety of the page Layout, improves the usage experience of user.
The embodiment of the present invention provides a kind of method of webpage setting, as shown in figure 3, executing following steps:
Step 301, terminal receive the colour blindness mode for determining unlatching of user's selection, raw according to the instruction of the colour blindness mode It is requested at accession page.
In the step, browser can pre-establish being associated between user interface and browser backstage, for Family provides a variety of modes of operation, for example, user selects to open the button of colour blindness mode in the button on web interface, or Person, selection " the opening colour blindness mode " in menu bar;It is also an option that the color specifically converted, region etc..
Step 302, terminal send accession page request to Web proxy.
Step 303, Web proxy send accession page request to web page server;
Step 304, web page server receive the accession page request, and according to the accession page address in access request Generate the access response page;
Step 305, web page server send the access response page to Web proxy;
The instruction for the unlatching colour blindness mode that step 306, Web proxy are sent according to user, to received described right The modification of access response page progress colour blindness mode.
Specifically modification mode may include:The mark for needing the element replaced is searched, the element that above-mentioned steps are determined The color of the corresponding element of mark be revised as converting colors, and generate the access response page.
The modified access response page is back to terminal by step 307, Web proxy;
Step 308, terminal loads simultaneously render the modified access response page, and show in browser.
By the above method, user can be made according to oneself wanting to need to define colour blindness mode, and pass through server and realize The conversion of colour blindness mode, is operated without terminal, and terminal survey only needs to send modification instruction, and server side is according to reporting Modification instruction, by searching for the color of element in webpage, treats converting colors and is replaced, in the base for not needing modification webpage On plinth, so that it may easily realize foundation of the colour blindness mode in different web pages, improve the efficiency of webpage setting.
It should be noted that step serial number illustrated in the embodiment of the present invention, it is only for it illustrates, and The sequencing for not limiting execution needs further exist for explanation, and each step is not to need while having in the embodiment of the present invention Standby, it can be only comprising one of step or several steps, the embodiment of the present invention is without limitation.
Based on identical inventive concept, the embodiment of the present invention provides a kind of webpage setting device, as shown in figure 4, including:
Transceiver module 401, for receiving the web access requests of user terminal transmission;It is carried in the web access requests There is color conversion instruction;Receive web page server backward reference response page;The access response page after pattern is changed is sent To the user terminal.
Processing module 402 indicates that searching from the access response page has wait turn for converting according to the color The element of color is changed, and changes the pattern of the element according to conversion pattern;What the color attribute in the conversion pattern indicated Color is converting colors;The converting colors are different from the color to be converted;
A kind of possible implementation, the color conversion instruction further include the region of color conversion;
Processing module 402 is also used to convert indicating according to the color, determines the region of the color conversion;Described The element for meeting the color to be converted is searched in region, and is conversion pattern by the style replacement of the element.
The embodiment of the present invention provides a kind of webpage setting device, as shown in figure 5, including:
Sending module 501, for sending web access requests to Web proxy;It is taken in the web access requests It converts and indicates with color;
Receiving module 502, the access response page returned for receiving the Web proxy, and by the access Response page is shown to user terminal;The access response page is that the Web proxy refers to according to color conversion Show, in the access response page that web page server returns, searches the element with color to be converted, and more according to conversion pattern The access response page after changing the pattern change of the element;The color of color attribute instruction in the conversion pattern is conversion Color;The converting colors are different from the color to be converted.
A kind of possible implementation, the color conversion are designated as the user terminal according to the access response page In color conversion switch obtain.
The embodiment of the present invention provides a kind of computer readable storage medium, and the computer-readable recording medium storage has meter Calculation machine executable instruction, the computer executable instructions are for executing the computer described in any one of above-described embodiment Method.
The embodiment of the present invention provides a kind of calculating equipment of webpage setting, including:
Memory, for storing program instruction;
Processor executes above-mentioned implementation according to the program of acquisition for calling the program instruction stored in the memory Method described in any one of example.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. a kind of webpage setting method, which is characterized in that including:
Web proxy receives the web access requests that user terminal is sent;Color is carried in the web access requests Conversion instruction;
The Web proxy receives the access response page that web page server returns;
The Web proxy is converted according to the color and is indicated, is searched from the access response page with to be converted The element of color, and the pattern of the element is changed according to conversion pattern;Indicated by color attribute in the conversion pattern Color is converting colors;The converting colors are different from the color to be converted;
The access response page after the Web proxy changes pattern is sent to the user terminal.
2. the method as described in claim 1, which is characterized in that the color conversion instruction further includes color transition region;
The Web proxy searches the element for meeting the color to be converted from the access response page, and by institute The style replacement of element is stated as conversion pattern, further includes:
The Web proxy is converted according to the color and is indicated, determines the color transition zone in the access response page Domain;
The element for meeting the color to be converted is searched in the color transition region, and is by the style replacement of the element Convert pattern.
3. a kind of webpage setting method, which is characterized in that including:
User terminal sends web access requests to Web proxy;Color conversion is carried in the web access requests Instruction;
The user terminal receives the access response page that the Web proxy is sent, and by the access response page It shows to the user terminal;The access response page is that the Web proxy is indicated according to color conversion, It is obtained after the access response page progress pattern change returned to web page server;The pattern is changed to the webpage agency Server has the pattern of the element of color to be converted according to conversion pattern change;Color attribute in the conversion pattern is signified The color shown is converting colors;The converting colors are different from the color to be converted.
4. method as claimed in claim 3, which is characterized in that the color conversion is designated as the user terminal according to What the switch of the color conversion in web access requests obtained.
5. device is arranged in a kind of webpage, which is characterized in that including:
Transceiver module, for receiving the web access requests of user terminal transmission;Color is carried in the web access requests Conversion instruction;Receive the access response page that web page server returns;The access response page after pattern is changed is sent to institute State user terminal;
Processing module indicates that searching from the access response page has color to be converted for converting according to the color Element, and the pattern of the element is changed according to conversion pattern;Color indicated by color attribute in the conversion pattern For converting colors;The converting colors are different from the color to be converted.
6. device as claimed in claim 5, which is characterized in that the color conversion instruction further includes the region of color conversion;
The processing module is also used to convert indicating according to the color, determines the color conversion in the access response page Region;It is searched in the color transition region and meets the element of the color to be converted, and by the style replacement of the element To convert pattern.
7. device is arranged in a kind of webpage, which is characterized in that including:
Sending module, for sending web access requests to Web proxy;Face is carried in the web access requests Color conversion instruction;
Receiving module, the access response page sent for receiving the Web proxy, and by the access response page Face is shown to the user terminal;The access response page is that the Web proxy refers to according to color conversion Show, is obtained after the access response page progress pattern change returned to web page server;The pattern is changed to the webpage Proxy server has the pattern of the element of color to be converted according to conversion pattern change;Color attribute in the conversion pattern Indicated color is converting colors;The converting colors are different from the color to be converted.
8. device as claimed in claim 7, which is characterized in that the color conversion is designated as the user terminal according to What the switch of the color conversion in the access response page obtained.
9. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer can It executes instruction, the computer executable instructions are for executing the computer as described in any one of claims 1 to 2 Method or such as described in any item methods of claim 3-4.
10. a kind of calculating equipment of webpage setting, which is characterized in that including:
Memory, for storing program instruction;
Processor, for calling the program instruction stored in the memory, according to acquisition program execute as claim 1 to Method described in any one of 2 or the method as described in any one of claim 3-4.
CN201810639720.0A 2018-06-20 2018-06-20 A kind of webpage setting method and device Pending CN108920561A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810639720.0A CN108920561A (en) 2018-06-20 2018-06-20 A kind of webpage setting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810639720.0A CN108920561A (en) 2018-06-20 2018-06-20 A kind of webpage setting method and device

Publications (1)

Publication Number Publication Date
CN108920561A true CN108920561A (en) 2018-11-30

Family

ID=64420724

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810639720.0A Pending CN108920561A (en) 2018-06-20 2018-06-20 A kind of webpage setting method and device

Country Status (1)

Country Link
CN (1) CN108920561A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113240776A (en) * 2021-05-24 2021-08-10 广东好太太智能家居有限公司 Method and device for changing picture color based on canvas and storage medium
CN114510314A (en) * 2022-02-25 2022-05-17 北京达佳互联信息技术有限公司 Page theme updating method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090112824A1 (en) * 2007-10-29 2009-04-30 International Business Machines Corporation Method and apparatus for generating presentation configuration file of document content
CN103558971A (en) * 2013-10-29 2014-02-05 小米科技有限责任公司 Browsing method, browsing device and terminal device
CN104965691A (en) * 2014-04-18 2015-10-07 腾讯科技(深圳)有限公司 Method, apparatus and system for configuring page elements of a webpage
CN106598533A (en) * 2016-12-09 2017-04-26 北京奇虎科技有限公司 Display method, device and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090112824A1 (en) * 2007-10-29 2009-04-30 International Business Machines Corporation Method and apparatus for generating presentation configuration file of document content
CN101425062A (en) * 2007-10-31 2009-05-06 国际商业机器公司 Method and device for generating document content and showing configuration file
CN103558971A (en) * 2013-10-29 2014-02-05 小米科技有限责任公司 Browsing method, browsing device and terminal device
CN104965691A (en) * 2014-04-18 2015-10-07 腾讯科技(深圳)有限公司 Method, apparatus and system for configuring page elements of a webpage
CN106598533A (en) * 2016-12-09 2017-04-26 北京奇虎科技有限公司 Display method, device and mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113240776A (en) * 2021-05-24 2021-08-10 广东好太太智能家居有限公司 Method and device for changing picture color based on canvas and storage medium
CN113240776B (en) * 2021-05-24 2024-01-02 广东好太太智能家居有限公司 Method, device and storage medium for changing picture color based on canvas
CN114510314A (en) * 2022-02-25 2022-05-17 北京达佳互联信息技术有限公司 Page theme updating method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US11921798B2 (en) Generating a contextual search stream
CN100440208C (en) A method and system for improving presentation of html pages in web devices
US7373606B2 (en) Method for visualizing weblog social network communities
CN108959475A (en) A kind of webpage setting method and device
CN108984632A (en) A kind of webpage setting method and device
US7810028B2 (en) Method and system for copying, moving, replacing and deleting content in group-editable electronic documents
CN100435150C (en) System, method and program product for a content viewer portlet
CN110333850A (en) Generation method, device, computer equipment and the storage medium of interface document
CN116225399A (en) Spreadsheet-based software application development
Frischmuth et al. Ontowiki–an authoring, publication and visualization interface for the data web
CN108572819A (en) Method for updating pages, device, terminal and computer readable storage medium
CN101583938A (en) Systems and methods of transforming data for web communities and web applications
US20230086387A1 (en) Method and system for processing information in social network system
US8495510B2 (en) System and method for managing browser extensions
CN108762743A (en) Data table operation code generation method and device
US20140244784A1 (en) Website Impersonation System and Method
CN102096581A (en) Method and device for generating widget
CN108334619A (en) A kind of collecting method, device, computing device and storage medium
CN109829123A (en) A kind of method for sending information and device
CN108920561A (en) A kind of webpage setting method and device
CN113268232B (en) Page skin generation method and device and computer readable storage medium
KR100962342B1 (en) System and method for providing creation, registration and management service of homepage
KR20080066361A (en) Ontology search system
KR20090105692A (en) Method for Making Expert&#39;s Recommendation Search Result and Recording Medium
CN101676905A (en) Layout for modifying resource contents based on customized rules

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181130

RJ01 Rejection of invention patent application after publication