<script type="text/javascript"> function PlayFlv(filename) { var videoname = filename; //视频文件名 var floder = "video"; //存放Flash视频的文件夹,注意是相对flvplayer.swf文件的位置(images/flvplayer.swf) var div = document.getElementById("flvPlayDiv"); div.innerHTML = "<img src='images/wait.gif' alt=''>"; //增加等待图片已增加用户体验; div.style.display = "none"; var result = "<table align='center'><tr><td align='center'><object type='application/x-shockwave-flash' width='470px' height='403px' "; result = "data='images/flvplayer.swf?file=" floder "/" filename "'>"; result = "<param name='movie' value='images/flvplayer.swf?file=" floder "/" filename "&showfsbutton=true&autostart=true' />"; result = "<param name='wmode' value='transparent' />"; result = "<param name='quality' value='high' />"; result = "<param name='allowfullscreen' value='true' />"; result = "</object></td></tr></table> "; div.innerHTML = result; div.style.display = "inline";//div显示方式 } </script> |
|