It has been a week before the 5-2 Wenchuan earthquake, and the week is gray for the whole of China. However, strong Chinese people will survive, and strong people in the disaster area will survive. 5.19-5.21 represents the national day of mourning, that is, starting today, almost all well-known portal websites have changed to a gray-black plain state to mourn the loss of compatriots in the disaster, they pay homage to the spirit of heaven. The patriotic enthusiasm of the whole Chinese people has also reached an unprecedented state. We are moving with tears.
If you want to add your website to the mourning list, change all the colored pictures on your website to a gray-black tone, let's sacrifice the dead who died in the disaster together. Let's pay homage to them through the Internet in the three days from 5.19 to 5.21.
You only need to add such simple lines of words to your website CSS style file to fulfill your wish.
1. The simplest method: add it to the CSS style.Code
HTML {
Filter: Gray;
}
You can also directly add the code between
<Style type = "text/CSS">
HTML {
Filter: Gray;
}
</Style>
The above code filters all colored images on your website into gray.
2. Method 2: Add the following code to the CSS code:
HTML {filter: progidximagetransform. Microsoft. basicimage (grayscale = 1) ;}< br>
or add the following code between :
3, neither of the above filter methods can affect the flash on the page, so you can Add the following code between and to implement the gray change of FLASH: