<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文件地址')"

解决方案 »

  1.   

    <parmar id="xx" value="fasf"></parmar>var aa = document.getElementById("xx").value;这样应该行吧
      

  2.   

    <object  classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"   codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cabversion=6,0,0,0" width="904"  height="243">   
    <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="";
      

  3.   

    谢谢,我不通过后台,可否直接用javascript?
    用以下代码还是不行,视频无法播放document.getElementById("pid").value="vcastr_file=http://www.ndnews.cn/spnd/UploadFiles_7567/vod/news/090603/慰问六一节.flv";          
      

  4.   

    document.getElementById 获得选中的值,赋值给这个ActiveX控件播放方法