加载flash的时候页面背景会闪下黑色什么状况

2015-08-18 15:10:19来源:作者:人点击

第七城市

将原先的direct wmode改成opaque即可

代码如下

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>test</title>
<meta name="description" content="" />

<script src="js/swfobject.js"></script>
<script>
var flashvars = {sw:140,sh:400
};
var params = {
menu: "false",
scale: "noScale",
allowFullscreen: "true",
allowScriptAccess: "always",
bgcolor: "",
wmode: "opaque"//"direct" // can cause issues with FP settings & webcam
};
var attributes = {
id:"test"
};
swfobject.embedSWF(
"f1.swf",
"altContent", "140", "400", "11.0.0",
"expressInstall.swf",
flashvars, params, attributes);
</script>

</head>
<body>
<div id="altContent">
<h1>test</h1>
<p><a href="http://www.adobe.com/go/getflashplayer">Get Adobe Flash player</a></p>
</div>
</body>
</html>

第七城市

最新文章

123

最新摄影

微信扫一扫

第七城市微信公众平台