在网页在播放flv格式的视频

原创
2014/11/28 15:16
阅读数 134

    不解释,直接上代码~~~

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>flv播放器</title>
</head>
<body>
<div class="all_box">
   <script type="text/javascript">
 
   var swf_width=540
   var swf_height=590
   var texts='行车记录仪'
   var files='drf.flv' 
    
   </script>
   
   <script type="text/javascript">
   
   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="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+'&&vcastr_config=1&IsAutoPlay=0">');
   document.write('<embed src="vcastr22.swf" allowFullScreen="true" FlashVars="vcastr_file='+files+'&vcastr_title='+texts+'&&vcastr_config=1&IsAutoPlay=0" 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>
   
   
</body>
</html>

展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部