Home  >  Article  >  Web Front-end  >  How to use the js flv video player plug-in_javascript skills

How to use the js flv video player plug-in_javascript skills

WBOY
WBOYOriginal
2016-05-16 15:53:381339browse

It’s very simple to use. You just need to modify the corresponding parameters. I won’t talk too much here. Let’s just give an example.

<div class="txt1">
 <script type="text/javascript"> 
var swf_width=307
var swf_height=182
var texts='快乐星汉堡' 
var files='http://v.78.cn/kuailexing/sp.flv'
</script>
 <!--<script type="text/javascript" src="http://www.78.cn/style/vcast_c.js"></script>-->
 <script type="text/javascript">
  var config='0:自动播放|1:连续播放|100:默认音量|0:控制栏位置|2:控制栏显示|0x000033:主体颜色|60:主体透明度|0x66ff00:光晕颜色|0xffffff:图标颜色|0xffffff:文字颜色|:logo文字|:logo地址|end.flv:结束swf地址'
  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.78.cn/style/vcastr.swf"><param name="quality" value="high">');
  document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
  document.write('<param name="FlashVars" value="vcastr_file='+files+'&vcastr_title='+texts+'&vcastr_config='+config+'">');
  document.write('<embed src="http://www.78.cn/style/vcastr.swf" wmode="opaque" FlashVars="vcastr_file='+files+'&vcastr_title='+texts+'&vcastr_config='+config+'" 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>
 <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="307" height="182">
  <param name="movie" value="http://www.78.cn/style/vcastr.swf">
  <param name="quality" value="high">
  <param name="menu" value="false">
  <param name="wmode" value="opaque">
  <param name="FlashVars" value="vcastr_file=http://v.78.cn/kuailexing/sp.flv&vcastr_title=快乐星汉堡&vcastr_config=0:自动播放|1:连续播放|100:默认音量|0:控制栏位置|2:控制栏显示|0x000033:主体颜色|60:主体透明度|0x66ff00:光晕颜色|0xffffff:图标颜色|0xffffff:文字颜色|:logo文字|:logo地址|end.flv:结束swf地址">
  <embed src="/style/vcastr.swf" wmode="opaque" flashvars="vcastr_file=http://v.78.cn/kuailexing/sp.flv&vcastr_title=快乐星汉堡&vcastr_config=0:自动播放|1:连续播放|100:默认音量|0:控制栏位置|2:控制栏显示|0x000033:主体颜色|60:主体透明度|0x66ff00:光晕颜色|0xffffff:图标颜色|0xffffff:文字颜色|:logo文字|:logo地址|end.flv:结束swf地址" menu="false" quality="high" width="307" height="182" type="application/x-shockwave-flash" pluginspage=" http://www.macromedia.com/go/getflashplayer">
 </object>
</div>

The above is the entire content of this article, I hope you all like it.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn