CN108984632A - A kind of webpage setting method and device - Google Patents
A kind of webpage setting method and device Download PDFInfo
- Publication number
- CN108984632A CN108984632A CN201810638528.XA CN201810638528A CN108984632A CN 108984632 A CN108984632 A CN 108984632A CN 201810638528 A CN201810638528 A CN 201810638528A CN 108984632 A CN108984632 A CN 108984632A
- Authority
- CN
- China
- Prior art keywords
- color
- page
- access response
- mode switch
- user
- 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
Landscapes
- Color Image Communication Systems (AREA)
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;It include color converter and conversion pattern in the access response page;The color of the color attribute instruction converted in pattern is converting colors;The browser calls the color converter when determining starting color conversion function;The color converter searches the element for meeting color to be converted from the access response page, and the pattern of the element is changed according to the conversion pattern;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;It include color converter and conversion pattern in the access response page;The conversion sample
The color of color attribute instruction in formula is converting colors;
The browser calls the color converter when determining starting color conversion function;The color converter
The element for meeting color to be converted is searched from the access response page, and the element is changed according to the conversion pattern
Pattern;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 further includes the mode switch of the color converter in the access response page;
The mode switch is used to indicate whether the color to be converted and converting colors opening color conversion function and need to converting;
The browser calls before the color converter, further includes:
The browser receives the instruction that user starts the mode switch.
A kind of possible implementation, before the browser receives the instruction that user starts the mode switch, also
Include:
The browser is shown according to the pattern of each element of the access response page, wherein in the page shown
Including the mode switch;
The browser receives the instruction that user starts the mode switch, comprising:
Operation of the browser according to user to the mode switch obtains the instruction for starting the mode switch.
A kind of possible implementation, the access response page correspond to website for the access response page for user
First accession page.
The embodiment of the present invention provides a kind of webpage setting device, comprising:
Module is obtained, 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;It include color converter and conversion pattern in the access response page;Institute
The color for converting the instruction of the color attribute in pattern is stated as converting colors;
Processing module, for calling the color converter when determining starting color conversion function;The color conversion
Device searches the element for meeting color to be converted from the access response page, and changes the element according to the conversion pattern
Pattern;The converting colors are different from the color to be converted;The access response page is carried out according to the pattern after change
Display.
A kind of possible implementation further includes the mode switch of the color converter in the access response page;
The mode switch is used to indicate whether the color to be converted and converting colors opening color conversion function and need to converting;
The acquisition module is also used to receive the instruction that user starts the mode switch.
A kind of possible implementation, the processing module are also used to according to each element of the access response page
Pattern is shown, wherein including the mode switch in the page shown;
The acquisition module is obtained starting the mode and be opened specifically for the operation according to user to the mode switch
The instruction of pass.
A kind of possible implementation, the access response page correspond to website for the access response page for user
First accession page.
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 making the computer execute any one of embodiment of the present invention institute
The method stated.
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 method described in any one of example.
A kind of webpage setting method provided in an embodiment of the present invention and device, user terminal send color conversion instruction;It can
So that user defines colour blindness mode according to their own needs, and by presetting color converter and conversion sample in webpage
Formula realizes the conversion of the colour blindness mode of webpage, provides particularization processing for the user of special population, also meets different crowd
It needs, improves user experience;The browser calls the color converter when determining starting color conversion function;Institute
It states color converter and searches the element for meeting color to be converted from the access response page, and more according to the conversion pattern
Change the pattern of the element;The browser carries out the display of the access response page according to the pattern after change.Pass through face
Color converter and conversion pattern can easily realize setting of the colour blindness mode in different web pages, improve webpage and set
The efficiency set.
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 page setup method 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 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</
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.
The embodiment of the present invention also provides a kind of webpage setting method, 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;The access response
It include color converter and conversion pattern in the page;The color of color attribute instruction in the conversion pattern is conversion face
Color;
The embodiment of the present invention is by taking JS (JavaScript) script as an example, wherein the operation of the mode switch of color converter
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, color attribute instruction can set for the user terminal according to the browser in advance
What the switch for the color conversion set obtained.The switch that the specific color is converted can be moved to element by mouse into user
On, user clicks mouse, input field, and user triggers what the modes such as key were realized.
A kind of possible implementation, operation of the browser according to user to the mode switch of color converter, is opened
The instruction of the mode switch of dynamic color converter.
The element of the mode switch of color converter, the mode of the color converter can be pre-created in the embodiment of the present invention
The element of switch can be html code, template instruction, can also be CSS style code etc..It is available in the embodiment of the present invention
The corresponding default template of the element of the mode switch of each color converter, the directly member of the mode switch of modification color converter
Element generates template, and then the corresponding foreground pattern of element that can modify the mode switch of color converter.
By taking CSS style as an example, the mode switch of the color converter in page file generated in the embodiment of the present invention
Being arranged can be added in the mode switch of color converter in the form of CSS, therefore when practical reading and modification JS script, all it is
It is carried out with the corresponding CSS style of the mode switch of color converter, and can be to the mode switch of each color converter
In data carry out independent modification, without modifying to full page file.The process for simplifying the update of JS script, alleviates
The pressure of server update and the probability for updating error.
Step 102: the browser calls the color converter when determining starting color conversion function;The face
Color converter searches the element for meeting color to be converted from the access response page, and changes institute according to the conversion pattern
State the pattern of element;The converting colors are different from the color to be converted;
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: that 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 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, user terminal send color conversion instruction;It can
So that user defines colour blindness mode according to their own needs, and by presetting color converter and conversion sample in webpage
Formula realizes the conversion of the colour blindness mode of webpage, provides particularization processing for the user of special population, also meets different crowd
It needs, improves user experience;The browser calls the color converter when determining starting color conversion function;Institute
It states color converter and searches the element for meeting color to be converted from the access response page, and more according to the conversion pattern
Change the pattern of the element;The browser carries out the display of the access response page according to the pattern after change.Pass through face
Color converter and conversion pattern can easily realize setting of the colour blindness mode in different web pages, improve webpage and set
The efficiency set.
Some accession page is logged in for the first time in a specific scene, such as in user, i.e., the described access response page
The first accession page of website is corresponded to for the access response page for user.Or user is to register the access page for the first time
The user in face, at this point, user the accession page for server on and not stored user whether colour blindness mode is needed
The setting of unlatching, at this point, browser and being unaware of user and whether needing to open for colour blindness mode;The application of another possibility
Scene is the setting that user modifies colour blindness mode according to actual needs.Therefore, a kind of possible implementation, the access response
It further include the mode switch of the color converter in the page;The mode switch is used to indicate whether to open color conversion function
And the color to be converted and converting colors that need to be converted;
The browser calls before the color converter, further includes:
The browser receives the instruction that user starts the mode switch.
Also mark can be set for the mode switch of color converter in the embodiment of the present invention, specifically, the mark and face
It is provided with linking relationship between the element of the mode switch of color converter, therefore the mark of the mode switch of color converter is set
Content, pattern etc. can be carried out it is customized, such as can be aobvious using the state of the mode switch of color converter as mark
Show in the element of the mode switch of color converter.
The mark being arranged in the embodiment of the present invention for the mode switch of color converter supports modification, sequence and additive color etc.
Function, in the form of the typesetting and content that are more suitable for webpage show.In addition, can also freely adjust the mode switch of color converter
Position in webpage is configured according to the position of the mode switch by color converter of the hobby of user, and to
The whole sense organ of the page can be improved, user experience is promoted, increases website viscosity.
For non-colour blindness user, the hidden function of the mode switch of color converter, a kind of possible reality can also be set
Existing mode after the mode switch for generating color converter in the embodiment of the present invention, can also set for the mode switch of color converter
Set the permission of protanopia anerythrochloropsia, specifically, in the permission being arranged in the embodiment of the present invention record have User ID (Identity,
Mark) with the corresponding relationship between the mode switch ID of color converter, the corresponding user of the User ID is with to the face
The permission that the mode switch of the corresponding color converter of mode switch ID of color converter is edited.
Permission is arranged by mode switch to color converter in the present invention, can be in different web pages, different user
The mode switch setting of the color converter of setting individually management and setting permission, so as to have no effect on other non-for colour blindness mode
The use of colour blindness crowd improves editor's flexibility, improves working efficiency so that the setting of webpage is easier to hand and maintenance.
For the efficiency of the mode switch of raising edit colors converter, a kind of possible implementation, the embodiment of the present invention
In also settable color converter mode switch historical record, the mode that color converter is recorded in the historical record opens
The history ID of pass, the current ID of the mode switch of color converter, color converter mode switch code, color converter
Mode switch creation time, create color converter mode switch terminal IP (Internet Protocol, network
Between the agreement that interconnects) address and creation color converter mode switch user information.
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 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 be expired according to the URL of webpage where the element of the mode switch of color converter in the embodiment of the present invention
The element of sufficient color switch 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.
Color can also be turned by the historical record of the mode switch of setting color converter in the embodiment of the present invention
The mode switch of parallel operation it is each setting have detailed record so that browser can be used historical record function check it is all
Operation note improves static generation bring information hardness and the low drawback of the efficiency of management.
In addition, can be also the color converter in the embodiment of the present invention after the mode switch of generation color converter
Label is arranged in mode switch;By calling the label of the mode switch of color converter, the mode of the color converter is opened
Pass is added in different webpages, in the case where needing the mode switch by color converter to be added to other webpages, then may be used
The label that the mode switch of corresponding color converter is called by duplication, is added to the page for the mode switch of color converter
The addition of the mode switch of color converter is completed in corresponding position, simple to operate;In addition, in modification different web pages
Same color converter mode switch in the case where, the mode switch of the color converter, nothing can be regenerated
It need to modify to each webpage.Such as browser can be the corresponding CSS style of mode switch of the same color converter
It being added in multiple JS scripts, position of the corresponding CSS style of the mode switch of color converter in JS script can customize,
After content in the mode switch for changing color converter, the mould of this color converter is used in each JS script at different location
The content of formula switch also can accordingly change, and realization is synchronized to the modification of CSS style in the mode switch of same color converter
The mode switch of this color converter is arbitrarily used in the different pages.
The CSS style of corresponding colour blindness mode can also can be saved in terminal and/or server in the embodiment of the present invention
Color converter mode switch element code information, the various corresponding colour blindness moulds saved in terminal and/or server
The code information of the element of the mode switch of the color converter of the CSS style of formula can increase colour blindness modes mesh in any need
It is used in page, and the mode switch element of the color converter of same pattern can repeatedly be made in the setting up procedure of webpage
With, therefore the setting method of the webpage of present invention implementation offer effectively improves the setting efficiency of webpage.
The embodiment of the present invention provides a kind of method of webpage setting, as shown in Fig. 2, executing following steps:
The operation of step 201, browser according to user to the mode switch obtains the finger for starting the mode switch
Show, accession page request is generated according to the instruction;
Step 202, browser send accession page request to web page server;
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 203, web page server receive the accession page request, and according to the accession page address in access request
Generate the access response page;It include color converter and conversion pattern in the access response page;
Step 204, web page server send the access response page to browser;
Step 205, browser call the color in the access response page to turn when determining starting color conversion function
Parallel operation, to the received modification for carrying out colour blindness mode to the access response page.
Specific modification mode may include: to search the mark for needing the element replaced, the element that above-mentioned steps are determined
The color of the corresponding element of mark be revised as converting colors.The color converter is searched full from the access response page
The element of foot color to be converted, and according to the pattern converted pattern and change the element.
Step 206, browser carry out the display of the access response page according to the pattern after change.
By the above method, user can be made according to oneself wanting to need to define colour blindness mode, and pass through webpage main document
The color converter and its pattern of middle carrying realize the conversion of colour blindness mode, without remaking web page template, so that it may hold very much
Easy realization colour blindness mode is realized in different web pages, improves the efficiency of webpage setting.
It should be noted that step serial number illustrated in the embodiment of the present invention, merely to illustrating, not
The sequencing executed is limited, explanation is needed further exist for, each step is not to need to be provided simultaneously in the embodiment of the present invention
, 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 3, comprising:
Module 301 is obtained, 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;It include color converter and conversion pattern in the access response page;
The color of the color attribute instruction converted in pattern is converting colors;
Processing module 302, for calling the color converter when determining starting color conversion function;The color
Converter searches the element for meeting color to be converted from the access response page, and according to conversion pattern change
The pattern of element;The converting colors are different from the color to be converted;The access response is carried out according to the pattern after change
The display of the page.
A kind of possible implementation further includes the mode switch of the color converter in the access response page;
The mode switch is used to indicate whether the color to be converted and converting colors opening color conversion function and need to converting;
Module 301 is obtained, is also used to receive the instruction that user starts the mode switch.
A kind of possible implementation, processing module 302 are also used to the sample of each element according to the access response page
Formula is shown, wherein including the mode switch in the page shown;
Module 301 is obtained to obtain starting the mode switch specifically for the operation according to user to the mode switch
Instruction.
A kind of possible implementation, the access response page correspond to website for the access response page for user
First accession page.
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;It include color converter and conversion pattern in the access response page;In the conversion pattern
Color attribute instruction color be converting colors;
The browser calls the color converter when determining starting color conversion function;The color converter is from institute
The element searched in the access response page and meet color to be converted is stated, and changes the sample of the element according to the conversion pattern
Formula;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 further include the color converter in the access response page
Mode switch;The mode switch is used to indicate whether to open color conversion function and the color to be converted that need to be converted and conversion
Color;
The browser calls before the color converter, further includes:
The browser receives the instruction that user starts the mode switch.
3. method according to claim 2, which is characterized in that the browser receives user and starts the mode switch
Before instruction, further includes:
The browser is shown according to the pattern of each element of the access response page, wherein including in the page shown
The mode switch;
The browser receives the instruction that user starts the mode switch, comprising:
Operation of the browser according to user to the mode switch obtains the instruction for starting the mode switch.
4. method according to claim 2, which is characterized in that the access response page is that user is directed to the access response
The page corresponds to the first accession page of website.
5. device is arranged in a kind of webpage characterized by comprising
Module is obtained, 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;It include color converter and conversion pattern in the access response page;Described turn
The color for varying the color attribute instruction in formula is converting colors;
Processing module, for calling the color converter when determining starting color conversion function;The color converter from
The element for meeting color to be converted is searched in the access response page, and the sample of the element is changed according to the conversion pattern
Formula;The converting colors are different from the color to be converted;The aobvious of the access response page is carried out according to the pattern after change
Show.
6. device as claimed in claim 5, which is characterized in that further include the color converter in the access response page
Mode switch;The mode switch is used to indicate whether to open color conversion function and the color to be converted that need to be converted and conversion
Color;
The acquisition module is also used to receive the instruction that user starts the mode switch.
7. device as claimed in claim 6, which is characterized in that the processing module is also used to according to the access response page
The pattern of each element in face is shown, wherein including the mode switch in the page shown;
The acquisition module obtains starting the mode switch specifically for the operation according to user to the mode switch
Instruction.
8. device as claimed in claim 6, which is characterized in that the access response page is that user is directed to the access response
The page corresponds to the first accession page of website.
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 |
---|---|---|---|
CN201810638528.XA CN108984632A (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 |
---|---|---|---|
CN201810638528.XA CN108984632A (en) | 2018-06-20 | 2018-06-20 | A kind of webpage setting method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108984632A true CN108984632A (en) | 2018-12-11 |
Family
ID=64541551
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810638528.XA Pending CN108984632A (en) | 2018-06-20 | 2018-06-20 | A kind of webpage setting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108984632A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110334295A (en) * | 2019-05-08 | 2019-10-15 | 北京芯盾时代科技有限公司 | The method, apparatus and system of Website page modification |
CN112256379A (en) * | 2020-10-30 | 2021-01-22 | 广东耐思智慧科技有限公司 | Method for realizing mass production of multi-industry templates |
CN112380475A (en) * | 2020-11-18 | 2021-02-19 | 北京沃东天骏信息技术有限公司 | Method and device for generating page |
CN113240776A (en) * | 2021-05-24 | 2021-08-10 | 广东好太太智能家居有限公司 | Method and device for changing picture color based on canvas and storage medium |
CN113312047A (en) * | 2020-02-27 | 2021-08-27 | 多点(深圳)数字科技有限公司 | Method for modifying application display, terminal device and computer readable medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101425062A (en) * | 2007-10-31 | 2009-05-06 | 国际商业机器公司 | Method and device for generating document content and showing configuration file |
CN103488646A (en) * | 2012-06-13 | 2014-01-01 | 腾讯科技(深圳)有限公司 | Method and device for browsing webpages with mobile terminal browser under weak light source |
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 |
CN106598533A (en) * | 2016-12-09 | 2017-04-26 | 北京奇虎科技有限公司 | Display method, device and mobile terminal |
-
2018
- 2018-06-20 CN CN201810638528.XA patent/CN108984632A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101425062A (en) * | 2007-10-31 | 2009-05-06 | 国际商业机器公司 | Method and device for generating document content and showing configuration file |
CN103488646A (en) * | 2012-06-13 | 2014-01-01 | 腾讯科技(深圳)有限公司 | Method and device for browsing webpages with mobile terminal browser under weak light source |
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 |
CN106598533A (en) * | 2016-12-09 | 2017-04-26 | 北京奇虎科技有限公司 | Display method, device and mobile terminal |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110334295A (en) * | 2019-05-08 | 2019-10-15 | 北京芯盾时代科技有限公司 | The method, apparatus and system of Website page modification |
CN113312047A (en) * | 2020-02-27 | 2021-08-27 | 多点(深圳)数字科技有限公司 | Method for modifying application display, terminal device and computer readable medium |
CN112256379A (en) * | 2020-10-30 | 2021-01-22 | 广东耐思智慧科技有限公司 | Method for realizing mass production of multi-industry templates |
CN112256379B (en) * | 2020-10-30 | 2024-05-24 | 广东耐思智慧科技有限公司 | Method for mass production of multi-industry templates |
CN112380475A (en) * | 2020-11-18 | 2021-02-19 | 北京沃东天骏信息技术有限公司 | Method and device for generating page |
WO2022105536A1 (en) * | 2020-11-18 | 2022-05-27 | 北京沃东天骏信息技术有限公司 | Method and apparatus for generating page |
CN112380475B (en) * | 2020-11-18 | 2024-04-05 | 北京沃东天骏信息技术有限公司 | Method and device for generating page |
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 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108984632A (en) | A kind of webpage setting method and device | |
CN104636139B (en) | One kind visualizes cross-platform mobile application exploitation and generation system | |
CN110442822B (en) | Method, device, equipment and storage medium for displaying small program content | |
US9244895B2 (en) | Editing web pages | |
CN105511873B (en) | User interface control display method and device | |
CN110806863A (en) | Interface document generation method and device, electronic equipment and storage medium | |
CN114035773B (en) | Configuration-based low-code form development method, system and device | |
CN107015804B (en) | Method and system for rapidly developing project by configuring API | |
CN108959475A (en) | A kind of webpage setting method and device | |
CN104321743B (en) | For developing the method and system for inquiring the application program of content and service on a communication network | |
CN108762743A (en) | Data table operation code generation method and device | |
US9646103B2 (en) | Client-side template engine and method for constructing a nested DOM module for a website | |
CN110020356A (en) | A kind of code generating method of page module, apparatus and system | |
CN109284488B (en) | Method, device and medium for modifying front-end table column data based on local storage | |
WO2016005885A2 (en) | Asynchronous initialization of document object model (dom) modules | |
WO2016005884A2 (en) | Javascript-based, client-side template driver system | |
CN105404514A (en) | JavaScript rendering method and apparatus | |
EP4246312A1 (en) | Content display method and terminal device | |
CN108920561A (en) | A kind of webpage setting method and device | |
CN113268232B (en) | Page skin generation method and device and computer readable storage medium | |
US20160012023A1 (en) | Self-Referencing of Running Script Elements in Asynchronously Loaded DOM Modules | |
CN102193789A (en) | Method and equipment for realizing configurable skip link | |
US20060074696A1 (en) | Information processing device, information processing method, information processing program and medium | |
CN104156209B (en) | Cross-platform interface modeling method and device | |
JP7014960B2 (en) | Information processing equipment, servers, their processing methods and programs |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20181211 |
|
WD01 | Invention patent application deemed withdrawn after publication |