我在我的页面中导入一个Flex对象,如下所示:
<div id="defaultObj" class="flexobj" style="display:block;">
<object id="FlexJsApp" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
<param name="movie" value="http://www.rthXXXXX.com/flexPlugin_testing/ECGAdater_temp.swf" />
<param name="wmode" value="opaque"/>
<param name="allowScriptAccess" value="always" />
<embed src="http://www.rthXXXXX.com/flexPlugin_testing/ECGAdater_temp.swf?rid=101000&csv=ecg_asc1011100000318g_20120202184835564.csv" quality="high" bgcolor="#869ca7"
name="FlexJsApp"play="true" loop="false" quality="high" wmode="opaque"
allowScriptAccess="always" type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/go/getflashplayer">
</embed>
</object>
现在是这一行:
<param name="movie" value="http://www.rthXXXXX.com/flexPlugin_testing/ECGAdater_temp.swf" />
我想修改
这一行通过JQuery而不是js,我可以在js中控制它但在JQuery中失败,我试过这样
$('#FlexJsApp param[name=movie]').attr('value','new value');
但它在IE中不起作用...... 任何人都可以给我一些提示吗?
使用Javascript控制如下:
var obj = document.getElementById("FlexJsApp");
obj.movie = "new value";
这非常有效,或者有人可以切换到Jquery的版本? 最诚挚的问候