页面变灰 样式
页面中加入
<style type="text/css">html {filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); }</style>
如果还有部分flash没有变灰,可以尝试以下操作(仅以SWFObject为例)
var so = new SWFObject("sgph/amcolumn/amcolumn.swf", "amcolumn", "190", "70", "8", "#FFFFFF");
so.addVariable("path", "sgph/amcolumn/");
so.addVariable("settings_file", encodeURIComponent("sgph/examples/floating_chart/amcolumn_settings.xml"));
so.addVariable("data_file", encodeURIComponent("sgph/examples/floating_chart/amcolumn_data.xml"));
so.addVariable("preloader_color", "#999999");
//变灰代码
so.addParam("wmode", "opaque");
so.addParam("allowfullscreen","true");
so.addParam("allowscriptaccess","always");
//变灰代码
so.write("flashcontent")