網頁播放器全屏的方法(有點氣,少寫了)這是自己總結的,剛剛要完的時候點錯了,重新發送一次,老子好氣,該打游戲的時間,浪費了,這裡就偷工減料了!
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