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

📄 update2.ascx

📁 NET源码 极速网店是以网络营销与推广为切入点的专业网上购物系统
💻 ASCX
字号:
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="Update2.ascx.cs" Inherits="JiSuShop.Update.Ascx.Update2" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<table width="499" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
		<td class="top">&nbsp;</td>
	</tr>
	<tr>
		<td class="middlebg">
			<table width="50%" border="0" align="center" cellpadding="0" cellspacing="0" class="SubUpdate">
				<tr>
					<td>
						<div id="status"></div>
						<br>
						当前进度:[<span id="files">0</span>/<span id="countFiles">0</span>]个文件已经下载
						<br />
						<table width="100%">
							<tr>
								<td>
									<span id="p" style="width:307px; background:url(images/bg.gif) no-repeat 1px 1px; height:21px;padding:3px 0px 3px 4px;"></span>
								</td>
								<td><span id="baiFen"></span>
								</td>
							</tr>
						</table>
						<br />
						<div id="dld" style="display:none"><a href="updatee.aspx?op=16"><img src="images/icon_up.gif" border="0" /></a></div>
						<iframe id="line1" src="" width="0" height="0"></iframe>
						<script>
function init0(err)
{
	if(err == "" || err == null)
	{
		addSta("有" + fileCount + "个文件需要更新...<br>")
		countFiles.innerHTML = fileCount
	}
	else
	{
		alert("错误:" + err + "!");
	}
}
function addSta(str)
{
	sta.insertAdjacentHTML("afterEnd",str)
}
function changeIndex()
{
	if(currentIndex == -1)
	{
		currentIndex = fileCount;
	}
	fi.innerHTML = "<font color=red>" + currentIndex + "</font>";
	baiFen.innerHTML =(" <font color=red>" + Math.round((currentIndex / fileCount) * 100)) + "%</font>";
	var width = 0;
	width = (currentIndex / fileCount) * 295;
	width = Math.round(width / 9 + 0.5);
	var we = "";
	for(var w = 0; w <= width  ;w++)
	{
		var blank ,wi0 = " width=3 ",wi1 = " width=6 ";// 白 绿
		if(w == width)
		{
			wi1 = " width=3 ";
			wi0 = " width=1 style='display:none'";
		}
		blank = "<img src='images/p1.gif' " + wi0 + " height=15/>";//
		we += "<img src='images/p.gif' " + wi1 + " height=15/>" + blank;//绿
	}
	p.innerHTML = we;
	if(currentIndex == fileCount)
	{
		dld.style.display = "";
		//alert("下载完毕!");
	}
}
var fileCount = 0;
var currentIndex = 0;
var sta = document.getElementById("status");
var line = document.getElementById("line1");
var fi = document.getElementById("files");
var p = document.getElementById("p");
var dld = document.getElementById("dld");
var baiFen = document.getElementById("baiFen");
var countFiles = document.getElementById("countFiles");
addSta("正在获取更新文件列表...<br>")
setTimeout("setIntit()","100")
function setIntit()
{
	line.src = "updatee.aspx?op=13";
}
						</script>
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td class="bottom">&nbsp;</td>
	</tr>
</table>

⌨️ 快捷键说明

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