我正在尝试加载一个嵌入了闪存文件的<iframe>
。我不能使用object/embed
标签,因为除非闪光灯位于<iframe>
中,否则它不会在iPhone/iPad中播放。当我在IE 9中向下滚动页面时,我注意到<iframe>
浮动在页面上固定位置的水平主菜单上。有没有办法解决这个问题,强制<iframe>
内容进入主菜单?这是我的<iframe>
:代码
<iframe name="flash object" src="http://www.website.com/flash.html?>" scrolling="no" frameborder="no" height="380" width="100%">
</iframe>
添加到flash swf文件中:
wmode="透明"
这将使swf文件透明并解决问题。SWF文件中的透明背景
对于您的新问题,我为您制作了一个小脚本,您可以随时更改flash。此脚本仅用于console.log,您必须将其分配给您的flash:
<script type="text/javascript">
var swfPaths = ['swf1.swf','swf2.swf','swf3.swf','swf4.swf'];
var oSwfs = [];
for(i=0; i < swfPaths.length; i++){oSwfs[i] = swfPaths[i];}
curSwf = Math.floor(Math.random()*oSwfs.length);
window.onload=function(){
console.log(oSwfs[curSwf]);
}
</script>