ATB Source Codes

Iron ASP upload component-free (An-Upload) v9.7.9 Show index.html Source code

Return Download Iron ASP upload component-free (An-Upload) v9.7.9: download index.html Source code - Download Iron ASP upload component-free (An-Upload) v9.7.9 Source code - Type:.html
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" >
  3. <head>
  4.     <title>Ajax无刷新上传--艾恩Asp无组件上传</title>
  5.     <script type="text/javascript" src="js/anplus.js"></script>
  6.     <script type="text/javascript" src="js/AjaxUploader.js"></script>
  7. </head>
  8. <body>
  9.     <div style="line-height:17px;font-size:10pt;">
  10.         上传文件的高级示例
  11.     </div>
  12.     <hr />
  13.     文件:<input id="files" name="files" type="text" size="60" /> <input type="button" value="上传文件" onclick="showUpload(this,'files');" /><br />
  14. <!--下面的内容是你必须要做的-->
  15. <div id="upload_Box" style="position:absolute;border:1px #dddddd solid;padding:1px;width:420px;display:none;background-color:#fff;font-size:12px;">
  16.         <div id="uploader_Title" style="background-color:#eee ;padding:3px;"><span style="float:right;cursor:pointer;" onclick="this.parentNode.parentNode.style.display='none';">×</span>文件上传</div>
  17.         <div id="uploadContenter" style=""></div>
  18. </div>
  19. <iframe style="display:none;" name="AnUploader"></iframe>
  20. <script type="text/javascript">
  21. var AjaxUp=null;
  22. window.onload=function(){
  23.         _.EndragEx("uploader_Title","upload_Box",0,0);
  24.        
  25. };
  26. function showUpload(obj, inputID){
  27.         try{
  28.                 AjaxUp.reset();
  29.         }catch(ex){}
  30.         var ps=_.abs(obj);
  31.         var box=_.$("upload_Box");
  32.         box.style.left=ps.x - parseInt(box.style.width)/2 + 30 + "px";
  33.         box.style.top=ps.y +25 + "px";
  34.         box.style.display="block";
  35.         //创建Uploader,参数Contenter      字符串       上传控件的容器,程序自动给容易四面增加3px的padding
  36.         AjaxUp=new AjaxProcesser("uploadContenter");
  37.        
  38.         //设置提交到的iframe名称
  39.         AjaxUp.target="AnUploader";  
  40.        
  41.         //上传处理页面
  42.         AjaxUp.url="upload.asp";
  43.        
  44.         //保存目录
  45.         AjaxUp.savePath="_upload";  
  46.        
  47.         //上传成功时运行的程序
  48.         AjaxUp.succeed=function(files){
  49.                 //下面遍历所有的文件,files是一个数组,数组元素的数目就是上传文件的个数,每个元素包含的信息为文件名字和文件大小
  50.                 var info="";
  51.                 for(var i=0;i<files.length;i++){
  52.                         info+=files[i].name + ";";
  53.                 }
  54.                 info=info.substr(0,info.length-1);
  55.                 _.$(inputID).value=info;
  56.                 box.style.display="none";
  57.         }
  58.        
  59.         //上传失败时运行的程序
  60.         AjaxUp.faild=function(msg){
  61.                 alert("失败原因:" + msg)
  62.         }
  63. }
  64. </script>
  65. <!--你已经做完你的工作了-->
  66. </body>
  67. </html>
  68.  
downloadindex.html Source code - Download Iron ASP upload component-free (An-Upload) v9.7.9 Source code
Related Source Codes/Software:
ASP generating static pages source - In the batch build static pages, I do not know the... 40byte
ABC class website source code - A fully functional class and grade website, implem... 1.93KB
AlstraSoft Domain Sponsors Pro v2.1 - &Nbsp;    a foreign business to cre... 1.8KB
ASP certificate query system - User training and certification institutions, onli... 540byte
ASP online weather forecasts (accelerator) - ASP online weather forecasts (accelerator) 192byte
Andy message board 1 - Simple JSP wall.Extract the password: www.... 744byte
Built into the Windows animated cursor -   Established in the Windows animated cursor 28byte
Post this shadow 1 - This guest book is made complete by shadow 20,100,... 588byte
Apple blessed marriage system - Blessed marriage system is a combination of Apple ... 748byte
Match ads click counter v1.0 - Instructions for use:1, if you want to count o... 192byte
China source download System v1.0 - This 3-to beautify the program downloaded by the i... 5.26KB
Ganzhou Windows network - Cover feature:Windows Home | News vertical and... 34.61KB
Strains of strain of beautiful personal home page Build20061004 - -----------Modified part-------------1: added ... 7.7KB
Southwest agricultural information network - Southwest agricultural information network, an agr... 98.89KB
ZWMOBI 3G mobile station system - Powerful business modules, including mobile B2C mo... 3.89KB
As a campus site system v2.0 - For most school,, to built features powerful of ma... 44.88KB
Evening student seating system 7 - Evening student seating system is facilitated the ... 26.4KB
94KK be reluctant network community beautification bate3 (new year Edition) - Kernel KB 94kkBBS Forum, new landscaping, further ... 24.82KB
QQ Flash Word - 1. powerful DIY feature, which is now immeasurably... 67KB
Zoomla! Eall CMS v2.0 - Waves CMS is committed to providing our webmasters... 11.31KB

 Back to top