National Day of Mourning website page turns gray filter method _ Experience Exchange

Source: Internet
Author: User
For the convenience of the site to mourn, provide CSS filter code, to table mourning. The following is the full-site CSS code.

Join directly at the front of the *.css file

body{Filter:gray;}

Or

HTML {filter:progid:DXImageTransform.Microsoft.BasicImage (grayscale=1);}

are available

Other HTML pages

HTML {filter:progid:DXImageTransform.Microsoft.BasicImage (grayscale=1);}

If it is a pure HTM page can be added in the middle of the body of header.htm

The code is as follows:

<style>html{filter:progidximagetransform.microsoft.basicimage (grayscale=1);} </style>

3, if some of the pages with flash still display color, or browser scroll bar drag when the Flash FLV player to change the flower (for example, sword Net 3, swordsman the World Web page), the Flash to JS output (this example is SWFObject):

The code is as follows:

<script type= "Text/javascript" src= "/js/swf.js" ></script><div id= "Video_content" ></div> <script type= "Text/javascript" ><!--var video_player_so = new SWFObject ("video-542.swf", "Sotester", "439", " 246 "," 7 "); Video_player_so.addparam (" wmode "," opaque "); Video_player_so.addparam (" allowFullScreen "," true "); Video_ Player_so.addparam ("allowScriptAccess", "Always"), Video_player_so.write ("video_content");//--></script >

This way, the entire page, including the video in the Flash Player, becomes grayed out.

The following is a supplement

The code is as follows:

HTML {filter:progid:DXImageTransform.Microsoft.BasicImage (grayscale=1);}

How to use: This code can change the page to black and white, add the code to the top of the CSS to achieve goose. Advised the national webmaster to move up. Mourn for the people who died in the earthquake.

If the site does not use CSS, you can insert it between the HTML code of the page/template

The code is as follows:

<style>html{filter:progid:dximagetransform.microsoft.basicimage (grayscale=1);} </style>

(The new browser can be tested for support.) )
Some webmaster sites may use this CSS to not take effect because the site is not using the latest standard protocol for Web pages

The code is as follows:

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "

Replace the

There are some Web site Flash animation colors can not be controlled by the CSS filter, in the Flash code <object ...> and </object> inserted between:

The code is as follows:

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

The simplest code that turns the page gray is the one between the head and the

The code is as follows:

<style type= "text/css" > HTML {filter:gray}</style>

General Discuz Forum under your control CSS file to modify
/images/header/header.css This file
In the news of mourning or distress, the red title cannot be used on all themes and themes.

The above is the national day of Mourning Web page turned gray filter method _ Experience Exchange content, more relevant content please pay attention to topic.alibabacloud.com (www.php.cn)!

  • 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.