CN108959475A - A kind of webpage setting method and device - Google Patents
A kind of webpage setting method and device Download PDFInfo
- Publication number
- CN108959475A CN108959475A CN201810639715.XA CN201810639715A CN108959475A CN 108959475 A CN108959475 A CN 108959475A CN 201810639715 A CN201810639715 A CN 201810639715A CN 108959475 A CN108959475 A CN 108959475A
- Authority
- CN
- China
- Prior art keywords
- color
- browser
- conversion
- converted
- 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
Links
Abstract
The invention discloses a kind of webpage setting method and devices, which comprises browser receives the access response page that web page server is sent, and the access response page is that the accessing page request sent based on user is obtained;The browser searches the element with color to be converted from the access response page, and the pattern of the element is changed according to conversion pattern;It is described that conversion styles store is in the browser and color indicated by the color attribute converted in pattern is converting colors;The converting colors are different from the color to be converted;The browser carries out the display of the access response page according to the pattern after change.
Description
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, comprising:
Browser receives the access response page that web page server is sent, and the access response page is sent based on user
Accessing page request obtain;
The browser searches the element with color to be converted from the access response page, and according to conversion pattern
Change the pattern of the element;Color attribute institute of the conversion styles store in the browser and in the conversion pattern
The color of instruction is converting colors;The converting colors are different from the color to be converted;
The browser carries out the display of the access response page according to the pattern after change.
A kind of possible implementation, the browser are searched from the access response page with color to be converted
Before element, further includes:
The browser determines the region for needing to carry out color conversion;
The browser searches the element for meeting the color to be converted in this region.
A kind of possible implementation, the browser are searched from the access response page with color to be converted
Before element, further includes:
The browser receives user equipment starting or closes the instruction of color conversion function;
The browser determines that color conversion function has turned on.
A kind of possible implementation is provided with conversion plug-in unit in the browser;The browser is rung from the access
The element searched in the page and there is color to be converted is answered, and changes the pattern of the element according to conversion pattern, comprising:
The conversion plug-in unit searches the element with color to be converted from the access response page, and according to conversion sample
Formula changes the pattern of the element.
The embodiment of the present invention provides a kind of webpage setting device, comprising:
Acquiring unit, for receiving the access response page of web page server transmission, the access response page is to be based on
What the accessing page request that user sends obtained;
Processing unit, for searching the element with color to be converted from the access response page, and according to conversion
Pattern changes the pattern of the element;Color category of the conversion styles store in the browser and in the conversion pattern
Property indicated by color be converting colors;The converting colors are different from the color to be converted;According to the pattern after change into
The display of the row access response page.
A kind of possible implementation, the processing unit are specifically used for: determining the region for needing to carry out color conversion;
The element for meeting the color to be converted is searched in this region.
A kind of possible implementation, the acquiring unit are also used to:
It receives user equipment starting or closes the instruction of color conversion function;
The processing unit is also used to: determining that color conversion function has turned on.
A kind of possible implementation, the processing unit further include: conversion plug-in unit;The conversion plug-in unit is from the access
The element with color to be converted is searched in response page, and the pattern of the element is changed according to conversion pattern.
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 the embodiment of the present invention
Method.
The embodiment of the present invention provides a kind of calculating equipment of webpage setting, comprising:
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 receive web page server by browser and send
The access response page, the access response page be based on user send accessing page request obtain;It can to use
Family realizes the conversion of colour blindness mode by browser according to oneself wanting to need to define colour blindness mode, is the user of special population
Particularization processing is provided, the needs of different crowd is also met, improves user experience;The browser is from the access response
The element with color to be converted is searched in the page, and the pattern of the element is changed according to conversion pattern;The conversion pattern
Be stored in the browser and the color attribute converted in pattern indicated by color into converting colors;The browser
The display of the access response page is carried out according to the pattern after change.By the above method, modification webpage can not needed
On the basis of, so that it may it easily realizes foundation of the colour blindness mode in different web pages, improves the efficiency of webpage setting.
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 flow diagram of webpage setting method provided by the embodiments of the present application;
Fig. 2 is the structural schematic diagram that device is arranged in a kind of webpage provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with Figure of description, preferred embodiment of the present invention will be described, it should be understood that described herein
Preferred embodiment only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention, and in the absence of conflict, this hair
The feature in embodiment and embodiment in bright can be combined with each other.
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</
Between script > 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.
A kind of flow diagram of webpage setting method provided in an embodiment of the present invention, as shown in Figure 1, comprising:
Step 101: browser receives the access response page that web page server is sent;
Wherein, the access response page is that the accessing page request sent based on user is obtained;
A kind of possible implementation, the method also includes:
The browser receives user equipment starting or closes the instruction of color conversion function;The browser determines color
Conversion function has turned on.
Wherein, the instruction of color conversion function can be an event of HTML;Such as when user on HTML element point
When hitting, at this point, clicking the event that the HTML element is a HTML, JavaScript is executed when event occurs, to obtain use
Click corresponding instruction in family.
A kind of possible implementation, the instruction of color conversion function can be the user terminal according to the browser
What the switch of pre-set color conversion obtained, or corresponding color is installed in advance in a browser according to user and is turned
Insert the switch acquisition of the color conversion in part.The switch that the specific color is converted can be mobile by mouse into user
Onto 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 JavaScript script, it is all to be turned with color
It changes what the corresponding CSS style of switch carried out, and independent modification can be carried out to the data in each color change-over switch, be not necessarily to
It modifies to full page file.The process for simplifying the update of JavaScript script alleviates the pressure of browser update
With the probability for updating 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 effectively improves 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.
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..
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.
To improve the efficiency that color change-over switch is arranged in browser, 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 a browser 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 browser.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 browser 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 browser
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 browse
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 browser
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 browser the corresponding CSS style of the same color change-over switch can be added to it is multiple
In JavaScript script, position of the corresponding CSS style of color change-over switch in JavaScript script be can customize, when
After changing the content in color change-over switch, the interior of this color change-over switch is used in each JavaScript script at different location
Appearance also can accordingly change, and realization, which is synchronized to the modification of CSS style in same color change-over switch in the different pages, arbitrarily to be used
This color change-over switch.
A kind of possible implementation, if user only needs part color region in more new web page, such as, it is only necessary to modification master
The title bar region etc. of the page, the browser searched from the access response page with color to be converted element it
Before, further includes:
The browser determines the region for needing to carry out color conversion;
The browser searches the element for meeting the color to be converted in this region.
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 browser 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.
Step 102: the browser searches the element with color to be converted from the access response page, and according to
Conversion pattern changes the pattern of the element;
Wherein, indicated by color attribute of the conversion styles store in the browser and in the conversion pattern
Color is converting colors;The converting colors are different from the color to be converted;
A kind of possible implementation is provided with conversion plug-in unit in the browser;The browser is rung from the access
The element searched in the page and there is color to be converted is answered, and changes the pattern of the element according to conversion pattern, comprising:
The conversion plug-in unit searches the element with color to be converted from the access response page, and according to conversion sample
Formula changes the pattern of the element.
When loading webpage, the conversion plug-in unit 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.
The element of color to be converted is required to look up before the pattern of change element by JavaScript.Search member
The method of element may include: to find HTML element by id;HTML element is found by tag name;Html element is found by class name
Element.
A kind of possible implementation includes selector in the plug-in unit, the element of converting colors is treated by selector
It is searched, for example, id selector can be to indicate the HTML element of specific id to specify specific pattern.It can be to specified
Pattern is arranged in the HTML element of attribute.Can be possess specified attribute HTML element setting pattern, be 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 itself;In W3C standard, element selector is also known as type choosing
Select device (type selector)." the title of typed selector matching document language element type.Pass through CSS element selector
The pattern of element in XML document can be set in (typed selector).CSS 2 introduces attribute selector.Attribute selector can be with
Element is selected according to attribute of an element and attribute value.Attribute selector is quite useful in XML document, because of XML language master
Masurium and attribute-name will be specified for the purposes of element and attribute by opening.It is selected according to specific object value;In addition to selection possesses certain
The element of a little attributes, can also further reduce range of choice, and only selection has the element of particular attribute-value.According to part attribute value
Selection.
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 browser 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 a browser, 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 browser, 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 browser
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 103: the browser carries out the display of the access response page according to the pattern after change.
A kind of webpage setting method provided in an embodiment of the present invention and device receive web page server by browser and send
The access response page, the access response page be based on user send accessing page request obtain;It can to use
Family realizes the conversion of colour blindness mode by browser according to oneself wanting to need to define colour blindness mode, is the user of special population
Particularization processing is provided, the needs of different crowd is also met, improves user experience;The browser is from the access response
The element with color to be converted is searched in the page, and the pattern of the element is changed according to conversion pattern;The conversion pattern
Be stored in the browser and the color attribute converted in pattern indicated by color into converting colors;The browser
The display of the access response page is carried out according to the pattern after change.By the above method, modification webpage can not needed
On the basis of, so that it may it easily realizes foundation of the colour blindness mode in different web pages, improves the efficiency of webpage setting.
Based on identical inventive concept, the embodiment of the present invention provides a kind of webpage setting device, as shown in Figure 2, comprising:
Acquiring unit 201, for receiving the access response page of web page server transmission, the access response page is base
It is obtained in the accessing page request that user sends;
Processing unit 202, for from the access response page search have color to be converted element, and according to turn
The formula of varying changes the pattern of the element;Color of the conversion styles store in the browser and in the conversion pattern
Color indicated by attribute is converting colors;The converting colors are different from the color to be converted;According to the pattern after change
Carry out the display of the access response page.
A kind of possible implementation, processing unit 202 are specifically used for: determining the region for needing to carry out color conversion;?
The element for meeting the color to be converted is searched in the region.
A kind of possible implementation, acquiring unit 201 are also used to:
It receives user equipment starting or closes the instruction of color conversion function;
Processing unit 202 is also used to: determining that color conversion function has turned on.
A kind of possible implementation, processing unit 202 further include: conversion plug-in unit;The conversion plug-in unit is from the access
The element with color to be converted is searched in response page, and the pattern of the element is changed according to conversion pattern.
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, comprising:
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 characterized by comprising
Browser receives the access response page that web page server is sent, and the access response page is the page sent based on user
What face access request obtained;
The browser searches the element with color to be converted from the access response page, and according to conversion pattern change
The pattern of the element;Indicated by color attribute of the conversion styles store in the browser and in the conversion pattern
Color be converting colors;The converting colors are different from the color to be converted;
The browser carries out the display of the access response page according to the pattern after change.
2. the method as described in claim 1, which is characterized in that the browser is searched from the access response page to be had
Before the element of color to be converted, further includes:
The browser determines the region for needing to carry out color conversion;
The browser searches the element for meeting the color to be converted in this region.
3. method according to claim 1 or 2, which is characterized in that the browser is searched from the access response page
Before element with color to be converted, further includes:
The browser receives user equipment starting or closes the instruction of color conversion function;
The browser determines that color conversion function has turned on.
4. method according to claim 1 or 2, which is characterized in that be provided with conversion plug-in unit in the browser;The browsing
Device searches the element with color to be converted from the access response page, and the sample of the element is changed according to conversion pattern
Formula, comprising:
The conversion plug-in unit searches the element with color to be converted from the access response page, and more according to conversion pattern
Change the pattern of the element.
5. device is arranged in a kind of webpage characterized by comprising
Acquiring unit, for receiving the access response page of web page server transmission, the access response page is based on user
What the accessing page request of transmission obtained;
Processing unit, for searching the element with color to be converted from the access response page, and according to conversion pattern
Change the pattern of the element;Color attribute institute of the conversion styles store in the browser and in the conversion pattern
The color of instruction is converting colors;The converting colors are different from the color to be converted;Institute is carried out according to the pattern after change
State the display of the access response page.
6. device as claimed in claim 5, which is characterized in that the processing unit is specifically used for: determination needs to carry out color
The region of conversion;The element for meeting the color to be converted is searched in this region.
7. such as device described in claim 5 or 6, which is characterized in that the acquiring unit is also used to:
It receives user equipment starting or closes the instruction of color conversion function;
The processing unit is also used to: determining that color conversion function has turned on.
8. such as device described in claim 5 or 6, which is characterized in that the processing unit further include: conversion plug-in unit;Described turn
It inserts part and searches the element with color to be converted from the access response page, and the element is changed according to conversion pattern
Pattern.
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 according to any one of claims 1 to 4 for executing the computer
Method.
10. a kind of calculating equipment of webpage setting characterized by comprising
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 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810639715.XA CN108959475A (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 |
---|---|---|---|
CN201810639715.XA CN108959475A (en) | 2018-06-20 | 2018-06-20 | A kind of webpage setting method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108959475A true CN108959475A (en) | 2018-12-07 |
Family
ID=64490497
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810639715.XA Pending CN108959475A (en) | 2018-06-20 | 2018-06-20 | A kind of webpage setting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108959475A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110727492A (en) * | 2019-09-29 | 2020-01-24 | 北京金山云网络技术有限公司 | Client skin changing method and device, electronic equipment and computer readable storage medium |
CN112597416A (en) * | 2020-12-18 | 2021-04-02 | 北京达佳互联信息技术有限公司 | Webpage element display method, device, server and storage medium |
CN113489763A (en) * | 2021-06-18 | 2021-10-08 | 深圳软牛科技有限公司 | Method, device, equipment and storage medium for closing searching my mobile phone function |
CN113849097A (en) * | 2021-11-30 | 2021-12-28 | 深圳市明源云空间电子商务有限公司 | Color numerical value conversion method, device, equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030174866A1 (en) * | 2002-03-15 | 2003-09-18 | Ncr Corporation | Methods for selecting high visual contrast colors in user-interface design |
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 |
CN103870148A (en) * | 2012-12-18 | 2014-06-18 | 中兴通讯股份有限公司 | Mobile terminal and method for displaying interface thereof |
CN106156268A (en) * | 2016-05-25 | 2016-11-23 | 烟台朱葛软件科技有限公司 | Accessible webpage control method |
CN106155483A (en) * | 2016-06-30 | 2016-11-23 | 乐视控股(北京)有限公司 | Display packing and terminal |
CN106354456A (en) * | 2016-08-22 | 2017-01-25 | 上海亿账通互联网科技有限公司 | Page color adjustment method and corresponding terminal device and server |
-
2018
- 2018-06-20 CN CN201810639715.XA patent/CN108959475A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030174866A1 (en) * | 2002-03-15 | 2003-09-18 | Ncr Corporation | Methods for selecting high visual contrast colors in user-interface design |
CN101425062A (en) * | 2007-10-31 | 2009-05-06 | 国际商业机器公司 | Method and device for generating document content and showing configuration file |
CN103870148A (en) * | 2012-12-18 | 2014-06-18 | 中兴通讯股份有限公司 | Mobile terminal and method for displaying interface thereof |
CN103558971A (en) * | 2013-10-29 | 2014-02-05 | 小米科技有限责任公司 | Browsing method, browsing device and terminal device |
CN106156268A (en) * | 2016-05-25 | 2016-11-23 | 烟台朱葛软件科技有限公司 | Accessible webpage control method |
CN106155483A (en) * | 2016-06-30 | 2016-11-23 | 乐视控股(北京)有限公司 | Display packing and terminal |
CN106354456A (en) * | 2016-08-22 | 2017-01-25 | 上海亿账通互联网科技有限公司 | Page color adjustment method and corresponding terminal device and server |
Non-Patent Citations (2)
Title |
---|
朱先忠: "《ASP.NET 3.5前沿技术与实战案例精粹》", 30 June 2010 * |
郝兴伟: "《大学计算机 计算机应用的视角》", 28 February 2018 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110727492A (en) * | 2019-09-29 | 2020-01-24 | 北京金山云网络技术有限公司 | Client skin changing method and device, electronic equipment and computer readable storage medium |
CN112597416A (en) * | 2020-12-18 | 2021-04-02 | 北京达佳互联信息技术有限公司 | Webpage element display method, device, server and storage medium |
CN112597416B (en) * | 2020-12-18 | 2024-03-01 | 北京达佳互联信息技术有限公司 | Webpage element display method and device, server and storage medium |
CN113489763A (en) * | 2021-06-18 | 2021-10-08 | 深圳软牛科技有限公司 | Method, device, equipment and storage medium for closing searching my mobile phone function |
CN113489763B (en) * | 2021-06-18 | 2023-11-21 | 深圳软牛科技有限公司 | Method, device, equipment and storage medium for closing and searching My mobile phone function |
CN113849097A (en) * | 2021-11-30 | 2021-12-28 | 深圳市明源云空间电子商务有限公司 | Color numerical value conversion method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11947621B2 (en) | System and method for the creation and update of hierarchical websites based on collected business knowledge | |
CN108984632A (en) | A kind of webpage setting method and device | |
CN105511873B (en) | User interface control display method and device | |
CN108959475A (en) | A kind of webpage setting method and device | |
US10331743B2 (en) | System and method for generating and interacting with a contextual search stream | |
US9244895B2 (en) | Editing web pages | |
CN107807913A (en) | A kind of form design system and method based on web | |
CN110333850A (en) | Generation method, device, computer equipment and the storage medium of interface document | |
CN104321743B (en) | For developing the method and system for inquiring the application program of content and service on a communication network | |
US20060282819A1 (en) | General purpose annotation service for portal-based applications | |
CN108572819A (en) | Method for updating pages, device, terminal and computer readable storage medium | |
JP2009531793A (en) | System and method for converting web community and web application data | |
CN102915308A (en) | Method and device for rendering pages | |
US11829667B2 (en) | Creation of component templates and removal of dead content therefrom | |
CN108762743A (en) | Data table operation code generation method and device | |
US20160012145A1 (en) | Client-Side Template Engine and Method for Constructing a Nested DOM Module for a Website | |
CN113177168A (en) | Positioning method based on Web element attribute characteristics | |
CN108920561A (en) | A kind of webpage setting method and device | |
CN102193789A (en) | Method and equipment for realizing configurable skip link | |
JP2001125855A (en) | Dynamic web page generation program | |
CN113868565A (en) | Skin style file editing method and device | |
US20230082639A1 (en) | Plugin management system for an interactive system or platform | |
CN113268232B (en) | Page skin generation method and device and computer readable storage medium | |
Volk | Visual Analysis of TeX Repositories | |
Wyke-Smith | Scriptin'with JavaScript and Ajax: a designer's guide |
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 |