National Mourning Day website gray-black CSS Filter code

Source: Internet
Author: User
According to the State Council's documents, 5.19-5.21 is the national day of mourning. During this period, the National and overseas institutions will mourn and stop public entertainment activities. The Ministry of Foreign Affairs and the embassies and consulates abroad will set up a condolence book. At on July 22, May 19, people throughout the country were in silence for three minutes. At that time, cars, trains, and ships were in the whistle and air defense alarms were sounded. Many grass-roots websites replace the whole site with a hardware package. We recommend that you replace all Chinese sites with plain files. The State Council decided to set May 19-21 as the national day of mourning

--------------------------
CSS Filter codes are provided to facilitate site mourning. The following is the full-site CSS code.

Copy content to clipboard

Code:

html { filter:progidXImageTransform.Microsoft.BasicImage(grayscale=1); }

Usage: This code changes the webpage to black and white. You can add the code to the top of CSS to implement the installation. It is recommended that the Chinese webmaster be moved up. Mourn for the victims of the earthquake.

If the website does not use CSS, you can insert the following code between the HTML code Copy content to clipboard

Code:

<style>
html{filter:progidXImageTransform.Microsoft.BasicImage(grayscale=1);}
</style>

Some webmasters may not be able to use this CSS because the website does not use the latest standard webpage protocol.

Copy content to clipboard

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Replace <HTML> at the top of the webpage with the above Code.

Some website Flash Animation colors cannot be controlled by CSS filters. You can <object…> And </Object>:

Copy content to clipboard

Code:

<param value="false" name="menu"/>
<param value="opaque" name="wmode"/>

The simplest code for turning pages into gray is to add

Copy content to clipboard

Code:

<style type="text/css">
html {
    FILTER: gray
}
</style>

In addition, the red title cannot be used on all topics and theme pictures in the news of mourning day or death.

Related Article

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.