Filter: Gray; Network silence

Source: Internet
Author: User

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:


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.