var ieObject = document.getElementById('k1');
ieObject.object.FlashVars = "100010";
上面代码是用于修改object标签的param参数,修改后发现swf没有没被初始化,所以修改后没有swf变化。
问题是:怎么用js重新加载swf?
PHP中文网2017-04-10 14:36:02
!doctype html
html
head
meta charset="utf-8"
title无标题文档title
script src="Scripts/swfobject_modified.js" type="text/javascript"
script
head
body
object id="FlashID" type="application/x-shockwave-flash" data="movie1.swf" width="300" height="200"
param name="movie" value="movie1.swf"
param name="quality" value="high"
param name="wmode" value="opaque"
param name="swfversion" value="6.0.65.0"
param name="expressinstall" value="Scripts/expressInstall.swf"
param name="loop" value="false"
object
script
x1=document.getElementById("FlashID");
x2=document.getElementsByTagName("param")[5];
x2.value=true;
alert(x2.value);
script
body
html
注意:我把<及</都删了。。。
我的,也是修改后发现swf没有没被初始化,所以修改后没有swf变化。
但我猜想是不是与这些干涉?
1、script src="Scripts/swfobject_modified.js" type="text/javascript"
script
2、script type="text/javascript"
swfobject.registerObject("FlashID");
script
事实果然如此,删除后恢复正常!希望对你有所帮助!