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

📄 fck_media.aspx

📁 提供给高等院校的教师用来申报国家级精品课程之用。
💻 ASPX
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--
 * Media Plugin for FCKeditor 2.5 SVN
 * Copyright (C) 2007 Riceball LEE (riceballl@hotmail.com)
 *
 * == BEGIN LICENSE ==
 *
 * Licensed under the terms of any of the following licenses at your
 * choice:
 *
 *  - GNU General Public License Version 2 or later (the "GPL")
 *    http://www.gnu.org/licenses/gpl.html
 *
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
 *    http://www.gnu.org/licenses/lgpl.html
 *
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
 *    http://www.mozilla.org/MPL/MPL-1.1.html
 *
 * == END LICENSE ==
 *
 * Media Properties dialog window.
-->
<html>
	<head>
		<title>Media Properties</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta content="noindex, nofollow" name="robots">
		<script src="../../dialog/common/fck_dialog_common.js" type="text/javascript"></script>
		<link href="../../dialog/common/fck_dialog_common.css" type="text/css" rel="stylesheet">
		<script language="javascript">

		var oEditor		= window.parent.InnerDialogLoaded() ;
		var FCK			= oEditor.FCK ;
		var FCKLang		= oEditor.FCKLang ;
		var FCKConfig	= oEditor.FCKConfig ;

		window.parent.AddTab( 'Info', oEditor.FCKLang.DlgInfoTab ) ;

		if ( FCKConfig.MediaUpload )
			window.parent.AddTab( 'Upload', FCKLang.DlgLnkUpload ) ;

		if ( !FCKConfig.MediaDlgHideAdvanced )
			window.parent.AddTab( 'Advanced', oEditor.FCKLang.DlgAdvancedTag ) ;

		// Function called when a dialog tag is selected.
		function OnDialogTabChange( tabCode )
		{
			ShowE('divInfo'		, ( tabCode == 'Info' ) ) ;
			ShowE('divUpload'	, ( tabCode == 'Upload' ) ) ;
			ShowE('divAdvanced'	, ( tabCode == 'Advanced' ) ) ;
		}

		window.onload = function()
		{
			// Translate the dialog box texts.
			oEditor.FCKLanguageManager.TranslatePage(document) ;

			// Show/Hide the "Browse Server" button.
			GetE('tdBrowse').style.display = FCKConfig.MediaBrowser	? '' : 'none' ;

			// Set the actual uploader URL.
			if ( FCKConfig.MediaUpload )
				//GetE('from1').action = FCKConfig.MediaUploadURL ;

			window.parent.SetAutoSize( true ) ;

			// Activate the "OK" button.
			window.parent.SetOkButton( true ) ;
		}
		var FCKMedia = oEditor.FCKMedia ;
		function Ok()
		{
			if ( GetE('txtUrl').value.length == 0 )
			{
				window.parent.SetSelectedTab( 'Info' ) ;
				GetE('txtUrl').focus() ;
				alert( oEditor.FCKLang.DlgAlertUrl ) ;

				return false ;
			}

			if ( GetE('MeidaPlayerType').value == 0 )
			{
				FCKMedia.SetupMediaplayer(GetE('txtUrl').value, GetE('txtWidth').value, GetE('txtHeight').value, GetE('chkAutoPlay').checked) ;
				return true ;
			}	
			if ( GetE('MeidaPlayerType').value == 1 )
			{
				FCKMedia.SetupRealMedia(GetE('txtUrl').value, GetE('txtWidth').value, GetE('txtHeight').value, GetE('chkAutoPlay').checked) ;
				return true ;
			}	

			return false ;
		}

		function BrowseServer()
		{
			OpenFileBrowser( FCKConfig.MediaBrowserURL, FCKConfig.MediaBrowserWindowWidth, FCKConfig.MediaBrowserWindowHeight ) ;
		}

		function SetUrl( url, width, height )
		{
			GetE('txtUrl').value = url ;

			if ( width )
				GetE('txtWidth').value = width ;

			if ( height )
				GetE('txtHeight').value = height ;

			//UpdatePreview() ;

			window.parent.SetSelectedTab( 'Info' ) ;
		}
		</script>
		<script language="javascript">
		function CheckUpload()
		{
			if ( GetE('file1').value.length == 0 )
			{
				alert( 'Please select a file to upload' ) ;
				return false ;
			}
			//window.parent.SetSelectedTab( 'Info' ) ;
		}	
		</script>
		<style type="text/css">
		.text span {display:none;}
		</style>
	</head>
	<body scroll="no" style="OVERFLOW: hidden">
		<div id="divInfo">
			<table cellSpacing="1" cellPadding="1" width="100%" border="0">
				<tr>
					<td>
						<table cellSpacing="0" cellPadding="0" width="100%" border="0">
							<tr>
								<td width="100%"><span fckLang="DlgMediaPlayerType">Media Player</span>
								</td>
							</tr>
							<tr>
								<td vAlign="top">
						<select id="MeidaPlayerType">
							<option value="0" fckLang="DlgMediaWindows" selected="1">Windows Media</option>
							<option value="1" fckLang="DlgMediaRealMedia">Real Media</option>
						</select>
						    </td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td>
						<table cellSpacing="0" cellPadding="0" width="100%" border="0">
							<tr>
								<td width="100%"><span fckLang="DlgImgURL">URL</span>
								</td>
								<td id="tdBrowse" style="DISPLAY: none" noWrap rowSpan="2">&nbsp; <input id="btnBrowse" onclick="BrowseServer();" type="button" value="Browse Server" fckLang="DlgBtnBrowseServer">
								</td>
							</tr>
							<tr>
								<td vAlign="top"><input id="txtUrl" style="WIDTH: 100%" type="text">
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<TR>
					<TD>
						<table cellSpacing="0" cellPadding="0" border="0">
							<TR>
								<TD nowrap>
									<span fckLang="DlgImgWidth">Width</span><br>
									<input id="txtWidth" class="FCK__FieldNumeric" type="text" size="3" value="520">
								</TD>
								<TD>&nbsp;</TD>
								<TD>
									<span fckLang="DlgImgHeight">Height</span><br>
									<input id="txtHeight" class="FCK__FieldNumeric" type="text" size="3" value="390">
								</TD>
							</TR>
						</table>
					</TD>
				</TR>
				<TR>
					<TD>
						<table cellSpacing="0" cellPadding="0" border="0">
							<TR>
								<TD>
									<label for="chkAutoPlay" nowrap fckLang="DlgFlashChkPlay">Auto Play</label><br>
									<input id="chkAutoPlay" type="checkbox">
								</TD>
							</TR>
						</table>
					</TD>
				</TR>
				<tr style="DISPLAY: none">
					<td vAlign="top">
						<table cellSpacing="0" cellPadding="0" width="100%" border="0">
							<tr>
								<td valign="top" width="100%">
									<table cellSpacing="0" cellPadding="0" width="100%">
										<tr>
											<td><span fckLang="DlgImgPreview">Preview</span></td>
										</tr>
										<tr>
											<td id="ePreviewCell" valign="top" class="FlashPreviewArea"><iframe src="js/fck_media_preview.html" frameborder="0" scrolling="no" width="100%" height="100%" marginheight="0" marginwidth="0"></iframe></td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</div>
		<div id="divUpload" style="DISPLAY: none">

		</div>
		<div id="divAdvanced" style="DISPLAY: none">
			<TABLE cellSpacing="0" cellPadding="0" border="0">
				<TR>
					<TD nowrap>
						<span fckLang="DlgFlashScale">Scale</span><BR>
						<select id="cmbScale">
							<option value="" selected></option>
							<option value="showall" fckLang="DlgFlashScaleAll">Show all</option>
							<option value="noborder" fckLang="DlgFlashScaleNoBorder">No Border</option>
							<option value="exactfit" fckLang="DlgFlashScaleFit">Exact Fit</option>
						</select></TD>
					<TD>&nbsp;&nbsp;&nbsp; &nbsp;
					</TD>
					<td valign="bottom">
						<table>
							<tr>
								<td><input id="chkLoop" type="checkbox" checked></td>
								<td><label for="chkLoop" nowrap fckLang="DlgFlashChkLoop">Loop</label>&nbsp;&nbsp;</td>
								<td><input id="chkMenu" type="checkbox" checked></td>
								<td><label for="chkMenu" nowrap fckLang="DlgFlashChkMenu">Enable Media Menu</label></td>
							</tr>
						</table>
					</td>
				</TR>
			</TABLE>
			<br>
			&nbsp;
			<table cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
				<tr>
					<td vAlign="top" width="50%"><span fckLang="DlgGenId">Id</span><br>
						<input id="txtAttId" style="WIDTH: 100%" type="text">
					</td>
					<td>&nbsp;&nbsp;</td>
					<td vAlign="top" nowrap><span fckLang="DlgGenClass">Stylesheet Classes</span><br>
						<input id="txtAttClasses" style="WIDTH: 100%" type="text">
					</td>
					<td>&nbsp;&nbsp;</td>
					<td vAlign="top" nowrap width="50%">&nbsp;<span fckLang="DlgGenTitle">Advisory Title</span><br>
						<input id="txtAttTitle" style="WIDTH: 100%" type="text">
					</td>
				</tr>
			</table>
			<span fckLang="DlgGenStyle">Style</span><br>
			<input id="txtAttStyle" style="WIDTH: 100%" type="text">
		</div>
	</body>
</html>

⌨️ 快捷键说明

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