var flashvars = {};
var params = {
menu: "false",
wmode: "opaque",
allowFullScreen: "true"
};
var attributes = {
id: "videoplayer",
name: "videoplayer"
};
swfobject.embedSWF("asjs3.swf", "FlashContent", "600", "600", "10.2.152","expressInstall.swf", flashvars, params, attributes);
<div id="DivOut" style="position:relative;" > //最外层
<div id="DivIn" style="position:absolute;" align="center"></div> //最上层
<div id="FlashContent" style="position:absolute;"></div> //中间层,显示SWF
</div>
最上层里面的内容无法居中,如果最上层的宽高设置和SWF一样大小,可以居中,但无法点击 SWF 里的按钮
求方法.
------解决方案--------------------------------------------------------
谢谢楼主