Control/editor/upapi/Upload.html

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<!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>
    <title>上传图片</title>
<style type="text/css">
 body {font:12px Tahoma;font-family:"宋体";margin:0px;background:#f3f8fb;}
 body,form,ul,li,p,dl,dd,dt,h,td,th,h3{padding:0;font-size:12px;color:#444;}
 .button {border:#7F9DB9 1px solid;}
 .input  {border:#7F9DB9 1px solid;}
 .table  {width:250px;}
</style>
</head>
<body>
    <iframe name="uploadFrame_100" style="display: none;" ></iframe>
    <form id="uploadForm" action="File.ashx" method="post" enctype="multipart/form-data" target="uploadFrame_100" >
    <input type="hidden" id="Urls" name="Urls" />
        <a href="javascript:void(0);" class="files" id="idFile"></a>
        <input type="file" id="upFile" name="upFile" class="input" />
        <input type="button" value="上ff传" id="idBtnupload" onclick="tj()" />
        <input type="hidden" id="fileType" name="fileType" value=".gif.jpg.bmp" />
        <input type="hidden" id="HiddUserIDs" name="HiddUserIDs" />       
        <input type="hidden" id="Type" name="Type" />
    </form>
</body>
</html>
<script type="text/javascript" language="JavaScript">
var isIE = (document.all) ? true : false;
//var $ = function (id) {
//    return "string" == typeof id ? document.getElementById(id) : id;
//};

var $ = function (id) {
    return  document.getElementById(id) ;
};
//文件上传前
//$("idBtnupload").onclick = function  tj(){
//document.getElementById(id).onclick = 
function  tj(){
   var uploadFlg = false;	
   if (uploadFlg) 
   {
      alert("正在上传图片,请稍侯……");
      return false;
   }  
   var file = document.getElementById('upFile');
   var filespec=file.value; 
   var fileType=document.getElementById('fileType').value; 
   if (file.value == null || file.value.length == 0){
      alert("上传图片路径不能为空!");
      return false; 
   }
   if ((!checkSuffix(file.value, document.getElementById('fileType').value))) 
   {
      alert("上传图片格式不对\n格式只能为:'"+fileType+"'");
      return false;
   }    
   uploadFlg = true;	
   document.getElementById("uploadForm").submit();
}

后面还有 19 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。