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

📄 win_file.asp

📁 是个不错的文件代码,希望大家好好用,
💻 ASP
字号:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>上传附件</title>
<link rel="stylesheet" href="html_edit.css" type="text/css">
<script language="javascript">
<!--
function CheckfileInsert()
{
  var tmp_pic=win_frm.pic.value;
  if (tmp_pic=="" || tmp_pic==null || tmp_pic=="http://")
  {
    alert("请先填写附件地址或上传附件!");
    win_frm.pic.focus();
    return false;
  }
  var tmp_alt=win_frm.tmp_alt.value;
  if (tmp_alt=="" || tmp_alt==null) { tmp_alt="[点击下载]"; }
  var tmp_target=win_frm.tmp_target.value;
  var tmp_temp="<a href=\"upload/"+tmp_pic+"\"";
  if (tmp_target=="yes") { tmp_temp+=" target=_blank"; }
  tmp_temp+=">"+tmp_alt+"</a>";
  var upid=win_frm.upid.value;
  if (upid!="" || upid!=null) { window.opener.add_frm.upid.value+=upid; }
  window.opener.jk_edit_insertFile(tmp_temp,1);
  window.close();
}
//-->
</script>
</head>
<body bgcolor="menu" style="border:0;overflow:	hidden;">
<form name="win_frm" method="post">
<input type=hidden name=upid value="">
<fieldset style="padding-bottom:5px"><legend disabled>上传附件</legend>
  <table width="100%" border=0 cellpadding=0 cellspacing=0>
  <tr>
  <td align=center>
    <table width="98%" border=0 cellpadding=0 cellspacing=2>
    <tr id=tr1><td>附件地址:<input name="pic" size="40" value="http://"></td></tr>
    <tr> <td>链接文字:<input name="tmp_alt" size="20">  <input type=checkbox name=tmp_target value="yes" checked>在新窗口打开</td></tr>
    <tr id=tr1><td><iframe frameborder=0 name=upload_frame width="100%" height=30 scrolling=no src="../upload.asp?uptype=files&uppath=<%response.write trim(request.querystring())%>&upname=&uptext=pic"></iframe></td></tr>
    </table>
  </td></tr>
  </table>
</fieldset>
<table width="98%" border=0 cellpadding=0 cellspacing=0 height="35">
<tr><td align="right"><input type="button" name="OK" value=" 确定 " onclick="CheckfileInsert();">  <input type=button onclick="javascript:window.close();" value=" 取消 "></td></tr>
</table>
</form>
</body>
</html>

⌨️ 快捷键说明

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