1、testUpload.htm添加附件类 upload - Download removeUpload.css.uploadTable font-size:12px;.uploadTable input width:300px;Common.js/ JavaScript Document for public functionsfunction $(id) /return HTML object by object idvar obj = false;obj = document.getElementById(id);if(obj = null)obj = parent.document.get
2、ElementById(id);return obj ? obj : undefined;function $V(id) /return HTML objects valueif($(id) != undefined)return $(id).value;elsereturn null;function $Len(id)if($(id) != undefined)return $(id).options.length;elsereturn null;function $Rows(id)if($(id) != undefined)return $(id).rows.length;elseretu
3、rn null;/-ajax-var Ajax = getTransport: function() return Try.these(function() return new XMLHttpRequest(),function() return new ActiveXObject(“Msxml2.XMLHTTP“),function() return new ActiveXObject(“Microsoft.XMLHTTP“) | false;,activeRequestCount: 0var Try = these: function() var returnValue;for (var
4、 i = 0, length = arguments.length; i “+ “remove“;td.innerHTML = html;tr.appendChild(td);tbody.appendChild(tr);var tchild = tableObj.getElementsByTagName(“tbody“);var childNum = tchild.length;if(childNum = maxNum)/tableObj.insertBefore(tbody,tableObj.firstChild);tableObj.appendChild(tbody); /add filesetValue(counterId, counter); /set counter+elsereturn false;function ocRemoveFile(tableId, node)var tableObj = $(tableId);tableObj.removeChild(node);