网页播放器实现全屏的方法总结

2015-08-18 14:31:52来源:作者:人点击

  网页播放器全屏的方法(有点气,少写了)这是自己总结的,刚刚要完的时候点错了,重新发送一次,老子好气,该打游戏的时间,浪费了,这里就偷工减料了!

    1、media player全屏方法

   <script language="javascript">
    <!--

    var Real;
    Real='MediaPlayer1.';
    var Mute=false;
    var CanSetPos=true;
    var SetPosStart=false;
    var SetVolStart=false;
    var loop, timer, initialised;
    var speed=50;
    var oldwidth=566,oldheight=502;


    function DoFull()
    {
        eval(Real+'DisplaySize=3');
    }


NetShowServer = "" ;

var mPath = NetShowServer + "";


function LoadVideo(c1,c2) {
 if (c1=="") return;
 video_filename = c1;

 MusicPlayer.Cancel()
 timer=window.setTimeout("video_play()",2000)
}
function video_play(fn) {
 var mName = mPath + video_filename;
 MusicPlayer.Open(mName)
}
    //-->
          </script>
          <td width="39%" height="1" bgcolor="#E0E0E0">
          <input type="button" onMouseDown="DoFull()" value="全屏显示" style="border-style: ridge; border-width: 1">
          <span lang="en-us">ESC</span>返回</td>
        </tr>
      </table>
      </td>
    </tr>
    <tr>
      <td width="100%">
      <p align="center">

            <object id=MediaPlayer1 classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95 width=468 height=358>
              <param name="filename" value=/film/play.asp>
              <param name="AutoStart" value="-1">
              <param name="Enabled" value="-1">
              <param name="ShowControls" value="-1">
              <param name="ShowGotoBar" value="0">
              <param name="ShowStatusBar" value="-1">
              <param name="EnableFullScreenControls" value="0">
              <param name="EnablePositionControls" value="0">
              <param name="Volume" value="0">
              <param name="DisplaySize" value="4">
              <param name="SendErrorEvents" value="0">
              <param name="enableContextMenu" value="0">
              <param name="EnableTracker" value="-1">
              <param name="AudioStream" value="-1">
              <param name="AutoSize" value="0">
              <param name="AnimationAtStart" value="-1">
              <param name="AllowScan" value="-1">
              <param name="AllowChangeDisplaySize" value="-1">
              <param name="AutoRewind" value="0">
              <param name="Balance" value="0">
              <param name="BaseURL" value>
              <param name="BufferingTime" value="5">
              <param name="CaptioningID" value>
              <param name="ClickToPlay" value="-1">
              <param name="CursorType" value="0">
              <param name="CurrentPosition" value="-1">
              <param name="CurrentMarker" value="0">
              <param name="DefaultFrame" value>
              <param name="DisplayBackColor" value="0">
              <param name="DisplayForeColor" value="16777215">
              <param name="DisplayMode" value="0">
              <param name="InvokeURLs" value="-1">
              <param name="Language" value="-1">
              <param name="Mute" value="0">
              <param name="PlayCount" value="1">
              <param name="PreviewMode" value="0">
              <param name="Rate" value="1">
              <param name="SAMILang" value>
              <param name="SAMIStyle" value>
              <param name="SAMIFileName" value>
              <param name="SelectionStart" value="-1">
              <param name="SelectionEnd" value="-1">
              <param name="SendOpenStateChangeEvents" value="-1">
              <param name="SendWarningEvents" value="-1">
              <param name="SendKeyboardEvents" value="0">
       &nb

最新文章

123

最新摄影

微信扫一扫

第七城市微信公众平台