Home  >  Article  >  Web Front-end  >  Filter method to turn the National Mourning Day website page into gray_Experience exchange

Filter method to turn the National Mourning Day website page into gray_Experience exchange

PHP中文网
PHP中文网Original
2016-05-16 12:05:592160browse

in order to facilitate the site to mourn, the css filter code is specially provided to express condolences. the following is the css code for the entire site.

add

body{ filter:gray; }

or

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

directly to the front of the *.css file

other html page

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

if it is a pure htm page, it 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 pages with flash still display color, or the flash flv player changes when the browser scroll bar is dragged up and down (such as jianwang 3, jianxia world official website divert page) , change flash to js output (swfobject in this example):

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>

in this way, the entire page, including the flash player all the videos in it turn gray.

the following is supplementary

the code is as follows:

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

how to use: this code can change the web page to black and white. just add the code to the top of css to achieve it. plain clothes. it is recommended that webmasters across the country take action. condolences for the compatriots who died in the earthquake.

if the website does not use css, you can insert it between the html code

and of the web page/template:

the code is as follows:

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

(after test whether the new browser can support it.)
some webmasters’ websites may use this css and it will not take effect because the website does not use the latest web standard protocol

the code is as follows:

<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" 
" 
<html xmlns="http://www.w3.org/1999/xhtml">

please replace at the top of the webpage with the above code. (this method is not recommended and may cause page deformation.)

the color of flash animations on some websites cannot be controlled by css filters. it can be inserted between and in the flash code:

the code is as follows:

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

the simplest code to turn the page into gray is to add between the heads

the code is as follows:

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

general discuz forums modify this file under your control css
/images/header/header.css
in addition, red cannot be used on all topics and theme pictures on mourning days or news about victims. title.

the above is the filter method to turn the national mourning day website page into gray_the content of experience exchange. for more related content, please pay attention to the php chinese website (www.php.cn)!


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn