<div>
<script type="text/javascript">
swfUrl="http://www.ndnews.cn/spnd/UploadFiles_7567/vod/news/090603/宁德市总工会慰问六一节 农民工子女.flv"
swftext="1030"
var swf_width=459
var swf_height=318
var texts=swftext
var files=swfUrl
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cabversion=6,0,0,0" width="'+ swf_width +'" height="'+ swf_height +'">');
document.write('<param name="movie" value="http://www.ndnews.cn/vcastr22.swf"><param name="quality" value="high">');
document.write('<param name="menu" value="false"><param name="allowFullScreen" value="true" />');
document.write('<param name="FlashVars" value="vcastr_file='+files+'">');
document.write('<embed src="http://www.ndnews.cn/vcastr22.swf" allowFullScreen="true" FlashVars="vcastr_file='+files+'&vcastr_title='+texts+'" menu="false" quality="high" width="'+ swf_width +'" height="'+ swf_height +'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>');
</script>
</div>
如何获取<param name="FlashVars" value="vcastr_file='+files+'">中的value,并且改变它,实现动态点播
onclick="link('新的flv文件地址')"
<param name="movie" value="<%=str%>" />
<param name="quality" value="high" />
<embed src="syflash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="904" height="243">
</embed>
</object>
或通过函数传值动态输出
document.getElementByID("").InnerHtml="";
用以下代码还是不行,视频无法播放document.getElementById("pid").value="vcastr_file=http://www.ndnews.cn/spnd/UploadFiles_7567/vod/news/090603/慰问六一节.flv";