摘要 |
A method and apparatus for automatic page graying. The method comprises: obtaining the source program codes of a page; from the source program codes of the page, identifying and obtaining the name and storage path information of a picture in the page and a color value corresponding to a color variable; obtaining the picture according to the name and storage path information of the picture, converting the picture to a gray-level picture, and correspondingly setting the storage information of the gray-level picture and the storage information of the picture in the source program codes of the page; converting the color value corresponding to the color variable to a gray-level value, and by virtue of the gray-level value, updating the color value corresponding to the color variable in the source program codes of the page. The updated source program codes of the page are used for a website server which sends a message carrying corresponding page content to a browser client according to a page request from the browser client. |