几种在网页中播放FLV文件的代码

用方法:

方法一、js嵌入

直接copy下面代码,修改其中红色部分,即:swf_width、swf_height、texts、files 参数

<script type="text/javascript">
var swf_width=240
var swf_height=240
var texts=’幸福的脚丫预告片
var files=’http://www.ruochi.com/product/vcastr/flv/happy_feet.flv
document.write(’<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="’+ swf_width +’" height="’+ swf_height +’">’);
document.write(’<param name="movie" value="http://www.ruochi.com/product/vcastr2/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+’&vcastr_title=’+texts+’">’);
document.write(’<embed src="http://www.ruochi.com/product/vcastr2/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>

其中:zXf飞天影像[巴中]
幸福的脚丫预告片 是标题。zXf飞天影像[巴中]
http://www.ruochi.com/product/vcastr/flv/happy_feet.flv 是FLV文件地址。zXf飞天影像[巴中]
http://www.ruochi.com/product/vcastr2/vcastr22.swf 是FLV文件播放器地址(如果你不会制作,可下载别人的然后上传到自己的空间再调用)。

flv播放器 Vcastr 2.0 下载zXf飞天影像[巴中]
http://www.ruochi.com/product/vcastr2/vcastr22.zip

posted on 2011-07-25 02:01  网文随摘  阅读(257)  评论(0)    收藏  举报