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

推荐订阅源

V
Visual Studio Blog
Google DeepMind News
Google DeepMind News
V
V2EX
B
Blog RSS Feed
有赞技术团队
有赞技术团队
博客园 - Franky
美团技术团队
月光博客
月光博客
酷 壳 – CoolShell
酷 壳 – CoolShell
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
腾讯CDC
云风的 BLOG
云风的 BLOG
L
LangChain Blog
GbyAI
GbyAI
The Cloudflare Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
C
Check Point Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Stack Overflow Blog
Stack Overflow Blog
博客园 - 【当耐特】
The Register - Security
The Register - Security
大猫的无限游戏
大猫的无限游戏
D
Docker
Vercel News
Vercel News
Blog — PlanetScale
Blog — PlanetScale
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 司徒正美
人人都是产品经理
人人都是产品经理
雷峰网
雷峰网
阮一峰的网络日志
阮一峰的网络日志
P
Proofpoint News Feed
N
Netflix TechBlog - Medium
博客园_首页
A
About on SuperTechFans
J
Java Code Geeks
量子位
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
MongoDB | Blog
MongoDB | Blog
Recent Announcements
Recent Announcements
G
Google Developers Blog
小众软件
小众软件
博客园 - 叶小钗
WordPress大学
WordPress大学
博客园 - 聂微东
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Martin Fowler
Martin Fowler
S
SegmentFault 最新的问题
F
Full Disclosure
Jina AI
Jina AI
H
Help Net Security

博客园 - 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>