实现视频全屏播放代码

xml 代码
  1. <html>  
  2. <head>  
  3. <script language=javascript>  
  4. Real='document.NSPlay.';   
  5. function DoFull()   
  6. {   
  7. //alert("ddd");   
  8. eval(Real+'DisplaySize=3');   
  9. }   
  10. script>  
  11. head>  
  12. <body>  
  13.   
  14. <object classid=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95    
  15.             codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701    
  16.             height=180 id=NSPlay type=application/x-oleobject width=240    
  17.             VIEWASTEXT standby="加载 Microsoft Windows Media Player 组件...">  
  18.         <param name="FileName" value="http://61.152.221.81/upfile9648/20061113_102221_156_980.wmv">  
  19.         <param name="AutoStart" value="true">  
  20.         <param name="AutoRewind" value="-1">  
  21.         <param name="AnimationAtStart" value="false">  
  22.         <param name="ShowControls" value="false">  
  23.         <param name="ClickToPlay" value="false">  
  24.         <param name="EnableContextMenu" value="true">   
  25.         <param name="EnablePositionControls" value="false">  
  26.         <param name="Balance" value="0">  
  27.         <param name="ShowStatusBar" value="false">  
  28.         <param name="AutoSize" value="0">     
  29.   <param name="PlayCount" value="0">  
  30.         <embed    
  31.             type="application/x-mplayer2"    
  32.             pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"    
  33.             filename src  autostart="false"    
  34.    enablecontextmenu="false"    
  35.    clicktoplay="false"      
  36.    enablepositioncontrols="false"                   
  37.             showcontrols="0" showstatusbar="1"                   
  38.             showdisplay="0"                width="240" height="180">  
  39.         embed>    
  40.       object>  
  41.   
  42.     <input type="button" onMouseDown="DoFull()" value="全屏显示" style="border-style: ridge; border-width: 1">  
  43.   
  44.    body>  
  45.    html>  
  46.    <script language=javascript>  
  47.   setTimeout("DoFull()",1000)   
  48.   script>  
  49.   

你可能感兴趣的:(实现视频全屏播放代码)