ITeye博客

javascript 进度条

microapple · 2011-04-11 11:09 · 编程语言 · Markdown

1.js


function daoJiShi() {
		document.getElementById('thebar').innerHTML = '<div class="progressbar_3" id="thebar1">'+'<div class="text">'+hhhh+'%</div>'
				+'<div class="bar" style="width:'+hhhh+'%;"></div>'+'</div>'+'<br/><div>&nbsp;&nbsp;制品正在上传...</div>';
		hhhh = hhhh + 1;
		if(hhhh>100){
			window.location.href='${path}/check/analyMusic.jsp';
		}
		setTimeout('daoJiShi()', 100);
		
	}

2.html

<div class=".wrap" align="center" id="thebar">

								<DIV class=putin_con>
									<P align="center">
										上传制品:
										<input type="file" name="image" id="file1" size="50"
											style="HEIGHT: 20px">
									</P>
									<br>
									<br>
									<P align="center">
										<INPUT id=Button class=input2 name=Button value=提交
											type="button" onclick=LimitAttach();>
										<INPUT id=Button class=input2 name=Button value=取消
											type="reset">
									</P>

									<DIV style="DISPLAY: none; COLOR: red" id=VS></DIV>

								</DIV>
							</div>

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。