⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 msplayerinterface.aspx

📁 javascript media player
💻 ASPX
📖 第 1 页 / 共 2 页
字号:
<%@ Page language="c#" Codebehind="MSPlayerInterface.aspx.cs" AutoEventWireup="false" Inherits="MediaPortal.MSPlayerInterface" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>MSPlayerInterface</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">	

		<SCRIPT FOR="WindowsMediaPlayer" EVENT="MarkerHit(lMarkerNum)" LANGUAGE="JScript"></SCRIPT>
		<SCRIPT FOR="WindowsMediaPlayer" EVENT="ScriptCommand(sType, sParam)" LANGUAGE="JScript"></SCRIPT>
		<script language="javascript">
		var height=0;
		var  state;
		var mstate; 
		//var WindowsMediaPlayer = document.getElementById("WindowsMediaPlayer");
		//WindowsMediaPlayer.URL=request.QueryString("mediaurl");//;
		var mediaurl="<%=micet_mediaurl%>";		
	function dolayout()
	{
		 //var maintable = document.getElementsByName("test2");
		  //WindowsMediaPlayer.height = document.body.clientHeight-80;
		  //WindowsMediaPlayer.width  = document.body.clientWidth-80;
		var tmpmyflash = document.getElementById("test2");
		if((document.body.clientHeight>88)&&(document.body.clientWidth>270))
			if(tmpmyflash!=null)
			{
				tmpmyflash.style.height=0;
				height=document.body.clientHeight-41;
				tmpmyflash.style.height = document.body.clientHeight-88;
			}
		if(foreDiv.style.width>1)
		 foreDiv.style.width=document.body.clientWidth-270;
		
	}
	
	function loadinit()
	{
		WindowsMediaPlayer.URL = mediaurl;
		WindowsMediaPlayer.SendPlayStateChangeEvents=true;
		WindowsMediaPlayer.SendOpenStateChangeEvents=true;
		WindowsMediaPlayer.controls.play(); 
		mstate=setInterval("updatetime()",100);   
	}
	
	function goto(t)
	{
		t.setCapture();
		var ox=event.clientX;
		if(WindowsMediaPlayer.URL!="")
		{
			if(WindowsMediaPlayer.currentMedia==undefined ||WindowsMediaPlayer.currentMedia==null )return;
			WindowsMediaPlayer.controls.currentPosition = WindowsMediaPlayer.currentMedia.duration * (ox-138)/(document.body.clientWidth-270);
			foreDiv.style.width = ox-138;
			
		}
		t.releaseCapture();
	}
	
	function showtime(t2)
	{	
		//t2.setCapture();
		var tx=event.clientX;
		//WindowsMediaPlayer = document.getElementById("WindowsMediaPlayer");
		time.style.display="";
		if(WindowsMediaPlayer.currentMedia==undefined ||WindowsMediaPlayer.currentMedia==null )return;
		var timeto = WindowsMediaPlayer.currentMedia.duration * (tx-138)/(document.body.clientWidth-270);
		
		if(WindowsMediaPlayer.URL!="")
		{
			
			timeto = Math.floor(timeto);
			var hour= Math.floor(timeto / 3600).toString();
			var minute=  Math.floor(timeto / 60).toString();
			var sec = Math.floor(timeto % 60).toString();
			time.style.left = tx;
			time.innerHTML = hour  + ":" + minute + ":"  + sec ;
		}
		//t2.releaseCapture();
		
	}
	
	function noshowtime()
	{
		time.style.display="none";
	}
	</script>


	</head>
	<body onresize="dolayout();" style="OVERFLOW-Y: hidden; OVERFLOW-X: hidden" bottomMargin="0"
		bgColor="#cccccc" leftMargin="0" topMargin="0" onload="dolayout();loadinit();" rightMargin="0"></SCRIPT>
		<table id="t" name="t" width="100%" height="100%">
			<tr>
				<td align="center">
					<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#003d4c">
						<tr height="40">
							<td height="40"><table border="0" width="100%" cellspacing="0" cellpadding="0">
									<tr>
										<td width="4"><img src="images/player/player_01.gif" width="4" height="20"></td>
										<td background="images/player/player_03.gif">
										<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
												<tr>
													<td width="80%"></td>
													<td width="20%" align="right"><input name="file" type="file" id="FileBtn" style="VISIBILITY:hidden" size="2"></td>
												</tr>
											</table>
										</td>
										<td width="5"><img src="images/player/player_05.gif" width="5" height="20"></td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td align="center" id="test2">
            <OBJECT id=WindowsMediaPlayer height="100%" width="100%" 
            classid=clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6 VIEWASTEXT>
	<PARAM NAME="URL" VALUE="">
	<PARAM NAME="rate" VALUE="1">
	<PARAM NAME="balance" VALUE="0">
	<PARAM NAME="currentPosition" VALUE="0">
	<PARAM NAME="defaultFrame" VALUE="">
	<PARAM NAME="playCount" VALUE="1">
	<PARAM NAME="autoStart" VALUE="1">
	<PARAM NAME="currentMarker" VALUE="0">
	<PARAM NAME="invokeURLs" VALUE="0">
	<PARAM NAME="baseURL" VALUE="">
	<PARAM NAME="volume" VALUE="100">
	<PARAM NAME="mute" VALUE="-1">
	<PARAM NAME="uiMode" VALUE="none">
	<PARAM NAME="stretchToFit" VALUE="-1">
	<PARAM NAME="windowlessVideo" VALUE="0">
	<PARAM NAME="enabled" VALUE="-1">
	<PARAM NAME="enableContextMenu" VALUE="-1">
	<PARAM NAME="fullScreen" VALUE="0">
	<PARAM NAME="SAMIStyle" VALUE="">
	<PARAM NAME="SAMILang" VALUE="">
	<PARAM NAME="SAMIFilename" VALUE="">
	<PARAM NAME="captioningID" VALUE="">
	<PARAM NAME="enableErrorDialogs" VALUE="0">
	<param name="SendPlayStateChangeEvents" value="0">
	<param name="SendOpenStateChangeEvents" value="0">
	<PARAM NAME="_cx" VALUE="5080">
	<PARAM NAME="_cy" VALUE="5080">
	</OBJECT>
							</td>
						</tr>
						<tr height="41">
							<td height="41"><table height="41" width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
								<td colspan="3">
										</td>
									</tr>
									<tr>
										<td width="4"><img src="images/player/player_09.gif" width="4" height="41"></td>
										<td background="images/player/player_10.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
												<tr>
													<td width="39" align="center"><img src="images/player/player_12.gif" width="39" height="31"></td>
													<td width="28"><img src="images/player/player_13.gif" width="28" height="31" onclick="play();"></td>
													<td width="24"><img src="images/player/player_14.gif" width="24" height="31" onclick="pause();"></td>
													<td width="30"><img src="images/player/player_15.gif" width="30" height="31" onclick="stop();"></td>
													<td width="11"><img src="images/player/player_16.gif" width="11" height="31"></td>
													<td background="images/player/player_17.gif">
													<table width="100%" border="0" cellspacing="0" cellpadding="0">
															<tr><td width="100%" align=left valign="baseline" style="cursor:hand" onmouseout="noshowtime()" onmousemove="showtime(this)" onclick="goto(this)">&nbsp;
							<div id="foreDiv" style="HEIGHT:16px; position:absolute; left:136px; bottom:13px; width:1px; z-index:1; background-image:url(images/player/2.jpg)"></div><div id="playerinfo" style="z-index:2;position:absolute; left:136px; bottom:13px; overflow:visible; font-size:small; text-align:center;" ></div>
							<div id="time" style= "DISPLAY: none; FONT-SIZE: 12px; Z-INDEX: 100;left:136px; bottom:30px; WIDTH: 20px; COLOR: white; POSITION: absolute; outset: ; hight: 10px"></div>

															</td>
															</tr>
													</table>
													<td width="1"><img src="images/player/player_19.gif" width="10" height="31"></td>
													<td width="28"><img src="images/player/player_20.gif" width="28" height="31" onclick="volup();"></td>
													<td width="25"><img src="images/player/player_21.gif" width="25" height="31" onclick="mute();"></td>
													<td width="28"><img src="images/player/player_22.gif" width="28" height="31" onclick="voldown();"></td>
													<td width="34"><img src="images/player/player_23.gif" width="34" height="31" onclick="fullScreen();"></td>
												</tr>
											</table>
										</td>
										<td width="5"><img src="images/player/player_11.gif" width="5" height="41"></td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		<script language="javascript">  

var varb;
var bufint=0;
var idI;   
var  varfullscreen=0;  

function  loop()  
{  
           WindowsMediaPlayer.playCount=2;  
}  
 
function  openfile()  
{  
           var  fstr='';
           FileBtn.click();
           if  (FileBtn.value=='')

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -