將原先的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>