惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
V
Visual Studio Blog
P
Privacy International News Feed
月光博客
月光博客
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
L
Lohrmann on Cybersecurity
N
News and Events Feed by Topic
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Apple Machine Learning Research
Apple Machine Learning Research
阮一峰的网络日志
阮一峰的网络日志
Webroot Blog
Webroot Blog
T
Threatpost
宝玉的分享
宝玉的分享
The Last Watchdog
The Last Watchdog
小众软件
小众软件
L
LINUX DO - 最新话题
C
Cisco Blogs
T
Troy Hunt's Blog
Schneier on Security
Schneier on Security
酷 壳 – CoolShell
酷 壳 – CoolShell
www.infosecurity-magazine.com
www.infosecurity-magazine.com
雷峰网
雷峰网
G
GRAHAM CLULEY
有赞技术团队
有赞技术团队
Know Your Adversary
Know Your Adversary
博客园 - 叶小钗
罗磊的独立博客
V
V2EX
博客园 - Franky
P
Proofpoint News Feed
SecWiki News
SecWiki News
腾讯CDC
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Jina AI
Jina AI
博客园 - 三生石上(FineUI控件)
S
Secure Thoughts
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Google DeepMind News
Google DeepMind News
Attack and Defense Labs
Attack and Defense Labs
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
PCI Perspectives
PCI Perspectives
V2EX - 技术
V2EX - 技术
Google DeepMind News
Google DeepMind News
Last Week in AI
Last Week in AI
aimingoo的专栏
aimingoo的专栏
Cisco Talos Blog
Cisco Talos Blog
N
News and Events Feed by Topic
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
S
SegmentFault 最新的问题

博客园 - BigKiteasdasd

招聘软件开发 javascript常用验证(转载) 人生很重要的一个开始 NStarfaiNet框架类关系简图 NStarfaiNet框架性能测试结果 NStarfaiNet框架代码生成器Version1。1 NStarfaiNet框架代码生成器 NstarfaiNet框架日志 NStarfaiNet 框架的使用示例(三) NStarfaiNet 框架的使用示例(二) NStarfaiNet 框架的使用示例(一) NStarfaiNet的SQL Map文件示范(maps/sample.xml) NStarfaiNet 的配置(dao_maps_config.config) NStarfaiNet 框架 iBatis.Net ParameterMap 怎样在C#中实现confirm() 常用javascript脚本 链接处变换色彩 学习配置篇1
动态添加附件上传按钮
BigKiteasdasd · 2006-06-11 · via 博客园 - BigKiteasdasd

 <table id="tbAccessory" height="0" cellSpacing="0" cellPadding="0" width="663" align="center"
        bgColor="#ccccff" border="0">
        <tr>
         <td>
          <p id="MyFile"></p>
         </td>
        </tr>
       </table>

<script>
var iFileCount=0;
function add()
{
 iFileCount=iFileCount+1;
 var addCell = new Array();
 
 if(iFileCount<4)
 {
  if(iFileCount==1)
  {
   document.all.btAccessory.value='继续粘贴附件';
  }
  if(iFileCount==3)
   document.all.btAccessory.value='粘贴附件';
   var str = '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<INPUT type="file" size="50" NAME="File">&nbsp;&nbsp;<input type=button name=del value=删除 onclick=delFile('+iFileCount+')><br>';
  addCell[0]=str;
  runRowInsert(tbAccessory, addCell);
  //document.getElementById('MyFile').insertAdjacentHTML("beforeEnd",str);
  //document.getElementById('tbAccessory').insertAdjacentHTML("beforeEnd",str);
 }
 
}
function delFile(index)
{
 if(iFileCount==1 && index>0)
  tbAccessory.deleteRow(1);
 else
  tbAccessory.deleteRow(index);
 iFileCount=iFileCount-1;
 //alert(iFileCount.toString());
}
function runRowInsert(TableHandle, GetCells, RowIndex){
 var oRow = null;
 var oCel = null;

 if (typeof(GetCells) != 'object' || GetCells.length == 0){
  alert('错误信息:\n* 没有任何数据需添加!');
 }else{
  if (typeof(RowIndex) != 'number'|| RowIndex < 0){
   oRow = TableHandle.insertRow();

  }else{
   if (RowIndex < TableHandle.length){
    oRow = TableHandle.insertRow(RowIndex);
   }else{
    oRow = TableHandle.insertRow();
   }
  }
  for (var i = 0; i < GetCells.length; i++){
   oCel = oRow.insertCell();
   oCel.innerHTML = GetCells[i];
  }
 }
 return oRow;

}
  </script>