dsadsadsa

<html>
 <head>
 
 <script type="text/javascript" src="jquery-1.7.2.min.js"></script>
 <script    type="text/javascript">
  $(document).ready(function(){
   
   $("#addPNG").click(
    function()
    {
     $(this).hide();
     $("#deletePNG").show();
    }
   );
   $("#deletePNG").click(
    function()
    {
     $(this).hide();
     $("#addPNG").show();
    }
   );
   
   $(window).unload( function () { alert("Bye now!"); } );
   
  });
   
 
 
 $(function(){       
          $("#uploadBtn").bind("click",function(){
             $("#uploadTB").append("<tr class=\"add_2\" style=\"display: none;\"> <td class=\"STYLE3\" align=\"center\"><span class=\"fileNum\"></span></td> <td class=\"STYLE3\" align=\"center\"><input type=\"button\" value=\"删除\" name=\"delBtn\" onclick=\"del(this)\"></td> <td class=\"STYLE3\" align=\"center\"><input type=\"file\" style=\"display: none;\" onchange=\"putFileName(this)\" id=\"files\"/><span></span></td> <td class=\"STYLE3\" align=\"center\"><div></div></td><td class=\"STYLE3\" align=\"center\">#####</td><td class=\"STYLE3\" align=\"center\">#########</td></tr>");
             var fileInput = $("tr[class='add_2']:last").find("input[type='file']");
             fileInput.click();
          });
    });
   
    function putFileName(obj){
         var fileName = obj.value; 
         var byte = obj.files[0].size;
         var fileSize = byte/1024/1024 + ' M';
         var table_tr = $("tr[class='add_2']:last");
         table_tr.find("span").text(fileName);
         table_tr.removeAttr("style");
         var tbl = document.getElementById('uploadTB');
         var lastRow = tbl.rows.length;
         $(obj).closest("tr").find("span.fileNum").text(lastRow-1);
         table_tr.find("div").text(fileSize);
         table_tr.removeAttr("style");
     
    }
  function del(obj){
        $(obj).closest("tr").remove();
        var tbl = $("#uploadTB");
        var lastRow = tbl.rows.length;
        $("#uploadTB tr").each(function (){
           $(this).find("td:nth-child(0)").find("span.fileNum").text();       
        });
    };
 </script>
 </head>
 <body>
 
 <table class="add_table">
                        <tr style="margin-bottom: 8px;">
                            <td>
                                &nbsp;
                                <input type=button value="上传附件" id="uploadBtn"
                                    class="btn-icon btn" style="width: 80px; height: 23px;">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table id="uploadTB" width="99%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce" style="margin: 5px;">
                                    <tr class="add_1">
                                        <td class="STYLE6_NUM" width="5%">
                                            <span></span>
                                        </td>
                                        <td class="STYLE3" width=20px >
                                            <div align="center">
                                                <span class="STYLE10">操作</span>
                                            </div>
                                        </td>
                                        <td class="STYLE3" width=100px>
                                            <div align="center">
                                                <span class="STYLE10">文件名</span>
                                            </div>
                                        </td>
                                        <td class="STYLE3" width=100px>
                                            <div align="center">
                                                <span class="STYLE10">文件大小</span>
                                            </div>
                                        </td>
                                        <td class="STYLE3" width=100px>
                                            <div align="center">
                                                <span class="STYLE10">上传人</span>
                                            </div>
                                        </td>
                                        <td class="STYLE3" width=100px>
                                            <div align="center">
                                                <span class="STYLE10">上传时间</span>
                                            </div>
                                        </td>
                                    </tr>
                                    
                                </table>
                            </td>
                        <tr>
                            <td colspan="6" align="right">
                                <span style="cursor:pointer;"><img width="45" height="15" title="" src="images/archiveManage_images/main_56.gif"></span>&nbsp;
                                <span style="margin-right:8px;cursor:pointer;"><img width="45" height="15" title="下一页" src="images/archiveManage_images/main_58.gif"></span>
                            </td>
                        </tr>
                        <tr height="2px"><td></td></tr>
                    </table>

 
 <table>
  <td>
            <div align="center" id ="addPNG">
                <img src="edit_add.png"
                    class="page_image" alt="还原" />还原
            </div>
   
            <div align="center" style="display: none;" id="deletePNG">
                <img src="cancel.png"
                    class="page_image" alt="删除" />删除
            </div>
       </td>
 </table>
 </body>
</html>     
<html>
 <head>
 
 <script type="text/javascript" src="jquery-1.7.2.min.js"></script>
 <script    type="text/javascript">
  $(document).ready(function(){
   
   $("#addPNG").click(
    function()
    {
     $(this).hide();
     $("#deletePNG").show();
    }
   );
   $("#deletePNG").click(
    function()
    {
     $(this).hide();
     $("#addPNG").show();
    }
   );
   
   $(window).unload( function () { alert("Bye now!"); } );
   
  });
   
 
 
 $(function(){      
          $("#uploadBtn").bind("click",function(){
             $("#uploadTB").append("<tr class=\"add_2\" style=\"display: none;\"> <td class=\"STYLE3\" align=\"center\"><span class=\"fileNum\"></span></td> <td class=\"STYLE3\" align=\"center\"><input type=\"button\" value=\"删除\" name=\"delBtn\" onclick=\"del(this)\"></td> <td class=\"STYLE3\" align=\"center\"><input type=\"file\" style=\"display: none;\" onchange=\"putFileName(this)\" id=\"files\"/><span></span></td> <td class=\"STYLE3\" align=\"center\"><div></div></td><td class=\"STYLE3\" align=\"center\">#####</td><td class=\"STYLE3\" align=\"center\">#########</td></tr>");
             var fileInput = $("tr[class='add_2']:last").find("input[type='file']");
             fileInput.click();
          });
    });
  
    function putFileName(obj){
         var fileName = obj.value;
         var byte = obj.files[0].size;
         var fileSize = byte/1024/1024 + ' M';
         var table_tr = $("tr[class='add_2']:last");
         table_tr.find("span").text(fileName);
         table_tr.removeAttr("style");
         var tbl = document.getElementById('uploadTB');
         var lastRow = tbl.rows.length;
         $(obj).closest("tr").find("span.fileNum").text(lastRow-1);
         table_tr.find("div").text(fileSize);
         table_tr.removeAttr("style");
    
    }
  function del(obj){
        $(obj).closest("tr").remove();
        var tbl = $("#uploadTB");
        var lastRow = tbl.rows.length;
        $("#uploadTB tr").each(function (){
           $(this).find("td:nth-child(0)").find("span.fileNum").text();      
        });
    };
 </script>
 </head>
 <body>
 
 <table class="add_table">
                        <tr style="margin-bottom: 8px;">
                            <td>
                                &nbsp;
                                <input type=button value="上传附件" id="uploadBtn"
                                    class="btn-icon btn" style="width: 80px; height: 23px;">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table id="uploadTB" width="99%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce" style="margin: 5px;">
                                    <tr class="add_1">
                                        <td class="STYLE6_NUM" width="5%">
                                            <span></span>
                                        </td>
                                        <td class="STYLE3" width=20px >
                                            <div align="center">
                                                <span class="STYLE10">操作</span>
                                            </div>
                                        </td>
                                        <td class="STYLE3" width=100px>
                                            <div align="center">
                                                <span class="STYLE10">文件名</span>
                                            </div>
                                        </td>
                                        <td class="STYLE3" width=100px>
                                            <div align="center">
                                                <span class="STYLE10">文件大小</span>
                                            </div>
                                        </td>
                                        <td class="STYLE3" width=100px>
                                            <div align="center">
                                                <span class="STYLE10">上传人</span>
                                            </div>
                                        </td>
                                        <td class="STYLE3" width=100px>
                                            <div align="center">
                                                <span class="STYLE10">上传时间</span>
                                            </div>
                                        </td>
                                    </tr>
                                   
                                </table>
                            </td>
                        <tr>
                            <td colspan="6" align="right">
                                <span style="cursor:pointer;"><img width="45" height="15" title="" src="images/archiveManage_images/main_56.gif"></span>&nbsp;
                                <span style="margin-right:8px;cursor:pointer;"><img width="45" height="15" title="下一页" src="images/archiveManage_images/main_58.gif"></span>
                            </td>
                        </tr>
                        <tr height="2px"><td></td></tr>
                    </table>

 
 <table>
  <td>
            <div align="center" id ="addPNG">
                <img src="edit_add.png"
                    class="page_image" alt="还原" />还原
            </div>
   
            <div align="center" style="display: none;" id="deletePNG">
                <img src="cancel.png"
                    class="page_image" alt="删除" />删除
            </div>
       </td>
 </table>
 </body>
</html>    

<html>
 <head>
 
 <script type="text/javascript" src="jquery-1.7.2.min.js"></script>
 <script    type="text/javascript">
  $(document).ready(function(){
   
   $("#addPNG").click(
    function()
    {
     $(this).hide();
     $("#deletePNG").show();
    }
   );
   $("#deletePNG").click(
    function()
    {
     $(this).hide();
     $("#addPNG").show();
    }
   );
   
   $(window).unload( function () { alert("Bye now!"); } );
   
  });
   
 
 
 $(function(){      
          $("#uploadBtn").bind("click",function(){
             $("#uploadTB").append("<tr class=\"add_2\" style=\"display: none;\"> <td class=\"STYLE3\" align=\"center\"><span class=\"fileNum\"></span></td> <td class=\"STYLE3\" align=\"center\"><input type=\"button\" value=\"删除\" name=\"delBtn\" onclick=\"del(this)\"></td> <td class=\"STYLE3\" align=\"center\"><input type=\"file\" style=\"display: none;\" onchange=\"putFileName(this)\" id=\"files\"/><span></span></td> <td class=\"STYLE3\" align=\"center\"><div></div></td><td class=\"STYLE3\" align=\"center\">#####</td><td class=\"STYLE3\" align=\"center\">#########</td></tr>");
             var fileInput = $("tr[class='add_2']:last").find("input[type='file']");
             fileInput.click();
          });
    });
  
    function putFileName(obj){
         var fileName = obj.value;
         var byte = obj.files[0].size;
         var fileSize = byte/1024/1024 + ' M';
         var table_tr = $("tr[class='add_2']:last");
         table_tr.find("span").text(fileName);
         table_tr.removeAttr("style");
         var tbl = document.getElementById('uploadTB');
         var lastRow = tbl.rows.length;
         $(obj).closest("tr").find("span.fileNum").text(lastRow-1);
         table_tr.find("div").text(fileSize);
         table_tr.removeAttr("style");
    
    }
  function del(obj){
        $(obj).closest("tr").remove();
        var tbl = $("#uploadTB");
        var lastRow = tbl.rows.length;
        $("#uploadTB tr").each(function (){
           $(this).find("td:nth-child(0)").find("span.fileNum").text();      
        });
    };

 </script>
 </head>
 <body>
 
 <table class="add_table">
                        <tr style="margin-bottom: 8px;">
                            <td>
                                &nbsp;
                                <input type=button value="上传附件" id="uploadBtn"
                                    class="btn-icon btn" style="width: 80px; height: 23px;">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table id="uploadTB" width="99%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce" style="margin: 5px;">
                                    <tr class="add_1">
                                        <td class="STYLE6_NUM" width="5%">
                                            <span></span>
                                        </td>

                                        <td class="STYLE3" width=20px >
                                            <div align="center">
                                                <span class="STYLE10">操作</span>
                                            </div>
                                        </td>
                                        <td class="STYLE3" width=100px>
                                            <div align="center">
                                                <span class="STYLE10">文件名</span>
                                            </div>
                                        </td>
                                        <td class="STYLE3" width=100px>
                                            <div align="center">
                                                <span class="STYLE10">文件大小</span>
                                            </div>
                                        </td>
                                        <td class="STYLE3" width=100px>
                                            <div align="center">
                                                <span class="STYLE10">上传人</span>
                                            </div>
                                        </td>
                                        <td class="STYLE3" width=100px>
                                            <div align="center">
                                                <span class="STYLE10">上传时间</span>
                                            </div>
                                        </td>

                                    </tr>
                                   
                                </table>
                            </td>
                        <tr>
                            <td colspan="6" align="right">
                                <span style="cursor:pointer;"><img width="45" height="15" title="" src="images/archiveManage_images/main_56.gif"></span>&nbsp;
                                <span style="margin-right:8px;cursor:pointer;"><img width="45" height="15" title="下一页" src="images/archiveManage_images/main_58.gif"></span>
                            </td>
                        </tr>
                        <tr height="2px"><td></td></tr>
                    </table>


 
 <table>
  <td>
            <div align="center" id ="addPNG">
                <img src="edit_add.png"
                    class="page_image" alt="还原" />还原
            </div>
   
            <div align="center" style="display: none;" id="deletePNG">
                <img src="cancel.png"
                    class="page_image" alt="删除" />删除
            </div>
       </td>
 </table>

 </body>
</html>    

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值