<pead> <meta http-equiv= "content-language" content= "ZH-CN" > <script> function mcreatefile (obj) {var EF var mname mfilename.innerhtml= "" if (obj.id== "File") {for (i=0;i<mfile.children.length-1;i++) { if (mfile.children[i].value== "") {Mfile.removechild (mfile.children[i])} else { Mname=mfile.children[i].value.split ("\") mfilename.innerhtml+= "<div id=namedetail title=" "+mName[mName.lengt h-1]+ "' >" +mname[mname.length-1]+ "</div>"}} mstatus.innerhtml= "Total <b>" + (MFile.children.leng th-1) + "</b> file pending Upload"} if (obj.id== "File_new") {ef=document.createelement (' <input type= ' file ' name= ' file "Size=" Id=file_new onpropertychange= "Mcreatefile (This)" > ") mfile.appendchild (EF) obj.id=" File "}} </SCR Ipt> <style> table{FILTER:progid:DXImageTransform.Microsoft.Shadow (direction=135,color= #999999, strength =3); } input{border:1px Soild #000000; Font-family:verdana,arial, song body; font-size:12px; padding:2px; } #mTD {line-height:24px} #mFile {width:203px; float:left; | #mFileName {float:right; width:182px;} #NameDetail {ove Rflow:hidden; width:176px; Color: #000000; Font-family:verdana,arial, song body; font-size:12px; Cursor:default; height:22px; } #mstatus {font-size:12px color: #ff0000;} </style> </pead> <body> <form name=frm method=post> <div align= "center" > <table border= "1" width= "420" bordercolor= "#0066cc" cellpadding= "4" bgcolor= "#D0F0FF" > <tr> <td bgcolor= "#3399FF" height= "align=" center "><font color=" #FFFFFF "size=" 3 "><b> Add Attachments </b></font></td> </tr> <tr> <td id=mtd> <div id=mfile><input type= " File "name=" file "size=" Id=file_new onpropertychange= "Mcreatefile (This)" ></div> <div Id=mfilename ></div> <div id=mstatus> A total of <b>0</b> files waiting for upload </div> </td> </tr> </table> </div> </form> </body>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]