方法:
讲下面代码复制到要显示视频的区域中,修改 var files=’http://www.wangzhanjishu.com/v/v.flv’ 中的flv地址即可。
视频的大小可以自己设置第二行和第三行分别的宽度和高度。
代码:
<script language=”JavaScript”>
var swf_width=600
var swf_height=380
var texts=”
var files=’http://www.wangzhanjishu.com/v/v.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.wangzhanjishu.com/v/v.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.wangzhanjishu.com/v/v.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>