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

📄 insert_file.htm

📁 Dos 以功能个性化和人性化为基础
💻 HTM
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>上传文件</title>

<STYLE >
body {
	FONT-SIZE: 9pt; FONT-FAMILY: "宋体"; 
}
BUTTON {
	FONT-SIZE: 9pt; FONT-FAMILY: "宋体"; 
}
DIV {
	FONT-SIZE: 9pt; FONT-FAMILY: "宋体"; 
}
INPUT {
	FONT-SIZE: 9pt; FONT-FAMILY: "宋体";
}
SELECT {
	FONT-SIZE: 9pt; FONT-FAMILY: "宋体";
}
IFRAME {
	FONT-SIZE: 9pt; FONT-FAMILY: "宋体"; 
}
</STYLE>
</head>

<body style="BACKGROUND: buttonface; COLOR: windowtext" scroll=no onresize="windowclose()">

<table width="400" height="200" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top" bgcolor="#D4D0C8"><table width="400" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="83" height="30" align="center">文件地址</td>
        <td width="317" height="30" colspan="2">
		<div style="float:left" id="InputDiv">
		<input type="text" name="selFile" style="width:220px;" value="" /> 
		</div>
		<div style="float:left;display:none; width:226px; height:24px;" id="UploadDiv">
		<IFRAME 
style=" WIDTH: 100%; HEIGHT: 100%" 
src="../../UserUploadFile.aspx" frameBorder=0 scrolling=no id="InsertFileIframe" name="InsertFileIframe"></IFRAME>
		</div>
		<input type="checkbox" name="selCheckBox" value="checkbox" onclick="JsCheckBox()"/>
          本地文件</td>
      </tr>
      <tr>
        <td height="30" align="center">文件名称</td>
        <td height="30" colspan="2"><input type="text" name="selTitle" style="width:220px;" /></td>
      </tr>
      <tr>
        <td height="108" colspan="3" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td align="center"><FIELDSET id=fldLayout 
	style="LEFT: 10px; WIDTH: 170px; TOP: 10px; HEIGHT: 110px"><LEGEND 
id=lgdLayout>格式</LEGEND>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="35%" height="40">文件格式</td>
    <td width="65%" align="left"><SELECT 
id=selFileType 
style="LEFT: 10.36em; WIDTH: 6.72em; TOP: 8.82em; HEIGHT: 1.21em" > 
 <option value="" selected="selected">一般文件</option>
                    <option  
  value="left">音乐文件</option>
                    <option  value="right">视频文件</option>
                    <option 
   value="textTop">Flash文件</option>
    </SELECT> 
  </td>
  </tr>
  <tr>
    <td height="40">自动播放</td>
    <td align="left">
      <input name="radioAuto" type="radio" value="radiobutton" checked="checked" value="1" />
                    <input type="radio" name="radioAuto" value="radiobutton" value="0" />否</td>
  </tr>
</table>

            </FIELDSET> </td>
            <td align="center"><FIELDSET id=fldLayouts 
style="LEFT: 10px; WIDTH: 170px; TOP: 10px; HEIGHT: 110px"><LEGEND 
id=LEGEND1>大小</LEGEND>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="35%" height="40">文件高度</td>
                    <td width="65%" align="left"><input type="text" name="selWidth" style="width:40px;" /> px</td>
                  </tr>
                  <tr>
                    <td height="40">文件宽度</td>
                    <td align="left"><input type="text" name="selHeight" style="width:40px;" /> px</td>
                  </tr>
                </table>
            </FIELDSET> </td>
          </tr>
        </table></td>
        </tr>
      
      <tr>
        <td height="30" colspan="3" align="center">
		
		<BUTTON 
style="LEFT: 31.36em; WIDTH: 7em; TOP: 1.06em; HEIGHT: 2.2em" id="btnOK"
type=button onclick="Upload('InsertFileIframe');">确 定</BUTTON>&nbsp;<BUTTON 
style="LEFT: 31.36em; WIDTH: 7em; TOP: 1.06em; HEIGHT: 2.2em" tabIndex=40 
type=button onclick="windowclose();">取 消</BUTTON>

</td>
        </tr>
    </table></td>
  </tr>
</table>

<IFRAME id="IframeTarGet" name="IframeTarGet" marginWidth="0" marginHeight="0" src="about:blank" frameBorder="0" width="0" scrolling="no" height="0"></IFRAME>
</body>
</html>
<script>
function JsCheckBox()
{
	if (document.all.UploadDiv.style.display=='none')
	{
		document.all.UploadDiv.style.display='';
		document.all.InputDiv.style.display='none';
		document.all.selCheckBox.checked=true;
	}
	else
	{
		document.all.InputDiv.style.display='';
		document.all.UploadDiv.style.display='none';
		document.all.selCheckBox.checked=null;
	}
}//
function Upload(n1)
{
	var globalDoc = (window.dialogArguments).window;
	globalDoc.ScreenConvert();
	document.all.btnOK.disabled=true;
	if (!document.all.selCheckBox.checked)
	{
	    if (document.all.selFile.value=='')
	        {
	            alert("请先输入文件地址");
	            	document.all.btnOK.disabled=false;
	            globalDoc.ScreenClear();
                return;
	        }
	        JsSettingImages(document.all.selFile.value);
	}
	else
	{
	var framsForm=document.frames[n1].document.forms[0];
	    if (framsForm.UploadFile.value=='')
	        {
	            alert("请先输入文件地址");
	            	document.all.btnOK.disabled=false;
	            globalDoc.ScreenClear();
                return;
	        }
	        //var action=framsForm.action;
            framsForm.target='IframeTarGet';
            //framsForm.action+="?n2="+n2+"&n3="+n3+"&n4="+n4+"&n5="+n5+"&n6="+n6+"&n7="+n7+"&n8="+n8
            framsForm.submit();
            //framsForm.action=action;
	}
    //document.frames[n1].document.forms[0].target='InsertFileIframe';
   // document.frames[n1].document.forms[0].submit();
}
function DosJavaScriptUpLoadFileOk(n1,n2,n3,n4,n5,n6,n7)
{
var globalDoc = (window.dialogArguments).window;
globalDoc.ScreenClear();

    JsSettingImages(''+n1+'');
}
function JsSettingImages(n1)
{
var globalDoc = (window.dialogArguments).window;
var html="";
if (document.all.selFileType.value=='')
{
    if (document.all.selTitle.value=='')
    {
    html="<img title=\"点击下载\" src=\"/images/link.gif\" /> <a href=\""+n1+"\" target=\"_blank\"><font color=\"#FF0000\">"+n1+"</font></a></br>";
    }
    else
    {
    html="<img title=\"点击下载"+document.all.selTitle.value+"\" src=\"/images/link.gif\" /> <a href=\""+n1+"\" target=\"_blank\"><font color=\"#FF0000\">"+document.all.selTitle.value+"</font></a></br>";
    }
}
else
{
        html="<object classid=\"clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6\" ";
        if (document.all.selWidth.value=='')
        {
        html+=" width=\"400\"";
        }
        else
        {
        html+=" width=\""+document.all.selWidth.value+"\"";
        }
        if (document.all.selHeight.value=='')
        {
        html+=" height=\"300\"";
        }
        else
        {
        html+=" height=\""+document.all.selHeight.value+"\"";
        }
        if (document.all.radioAuto.value=='0')
        {
        html+=" <param name=\"autoStart\" value=\"false\">";
        }
        else
        {
        html+=" <param name=\"autoStart\" value=\"true\">";
        }
        html+=" <param name=\"enableContextMenu\" value=\"true\">";
        html+=" <param name=\"enableErrorDialogs\" value=\"true\">";
        html+=" <param name=\"playCount\" value=\"1\">";
        html+=" <param name=\"windowlessVideo\" value=\"0\">";
        html+=" <param name=\"fullScreen\" value=\"0\">";
        html+=" <param name=\"rate\" value=\"1\">";
        html+=" <param name=\"uiMode\" value=\"none\">";
        html+=" <param name=\"volume\" value=\"50\">";
        html+=" <param name=\"url\" value=\""+n1+"\">";
        html+=" </object>";
}//
globalDoc.editor_insertHTML("PostBodyHtml",html,null,null);
windowclose();
}//
function windowclose()
{
var globalDoc = (window.dialogArguments).window;
globalDoc.ScreenClear();
window.close();
}//
</script>

⌨️ 快捷键说明

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