⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 example_progress.htm

📁 大文件上传大文件上传大文件上传大文件上传大文件上传大文件上传大文件上传大文件上传
💻 HTM
字号:
<html>
<head><title>带进度条</title></head>
<script language="javascript">
<!--
function ShowProgress() {
	var ProgressID = (new Date()).getTime() % 1000000000;
	var Form = document.MyForm;
	Form.action = "Example_Progress.asp?ProgressID=" + ProgressID;
	if (Form.File1.value != "" || Form.File2.value != "" || Form.File3.value != "") {
		var Ver = navigator.appVersion;
		if (Ver.indexOf("MSIE") > -1 && Ver.substr(Ver.indexOf("MSIE") + 5, 1) > 4) {
			window.showModelessDialog("Progress.asp?Count=0&ProgressID=" + ProgressID, null, "dialogWidth=360px; dialogHeight:180px; help:no; status:no");
		} 
		else 
		{
			window.open("Progress.asp?Count=0&ProgressID=" + ProgressID, "_blank", "left=240,top=240,width=360,height=160");
		}
		return true;
	} 
	else
	{
		return false;
	}
}
//-->
</script>
<body>
<form onsubmit="return ShowProgress();" action="Example_Progress.asp" enctype="multipart/form-data" method="post" name="MyForm">
    附件:<br>
    <input type="file" name="File1"><br>
    <input type="file" name="File2"><br>
    <input type="file" name="File3"><br>
	<input type="submit" name="Submit" value="Upload">
</form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -