📄 live_update3.htm
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Live Update</title>
<link href="css/main.css" rel="stylesheet" type="text/css">
<script language="javascript" src="js/comm.js" type="text/javascript"></script>
<script language="javascript">
// import js document
_import("function");
//_import("main_only");
_import("language");
_import("langSet");
_import("webmenuevent");
_import("control");
</script>
</head>
<body onKeydown="event.returnValue=disableBack();" >
<table width="569" height="522" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><table width="509" height="412" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top"><table width="509" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="509"><img src="img/LiveUpdate_01.jpg" width="91" height="17"></td>
</tr>
<tr>
<td style="padding-top:7px;"><img src="img/CreateAudioCD_02.jpg" width="507" height="1"></td>
</tr>
<tr>
<td class="PageText" style="padding-top:15px;" id="lang_1">Welcome to Live Update<br>
LiveUpdate Status</td>
</tr>
<tr>
<td align="center" style="padding-top:20px; padding-bottom:20px;"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="6" height="10"><img src="img/CreateAudioCD_03.jpg" width="9" height="10"></td>
<td height="10" background="img/CreateAudioCD_04.jpg"></td>
<td width="6" height="10"><img src="img/CreateAudioCD_05.jpg" width="10" height="10"></td>
</tr>
<tr>
<td width="6" background="img/CreateAudioCD_06.jpg"></td>
<td width="463" height="128"><textarea name="Liveinfo" id="Liveinfo" style="width:100%;" rows="9" class="PageText">The following componets are installed on your computer.
> LiveUpdate
Initalizing...
Connecting to LiveUpdate Server</textarea></td>
<td width="6" background="img/CreateAudioCD_07.jpg"></td>
</tr>
<tr>
<td width="6" height="8"><img src="img/CreateAudioCD_08.jpg" width="9" height="8"></td>
<td height="8" background="img/CreateAudioCD_09.jpg"></td>
<td width="6" height="8"><img src="img/CreateAudioCD_10.jpg" width="10" height="8"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="bottom" class="PageText" id="lang_1">LiveUpdate will search for updates to your installed products and components.<br>
Click Cancel to quit LiveUpdate</td>
</tr>
<tr>
<td height="130" align="right" valign="bottom">
<span id="Control1" style="display:none;"><button cstyle="rit" onClick="top.menuFocus(1);location='Main_Quick_Start_1.htm';" id="savenow">Return to VirtualDrive Pro Main</button></span>
<span id="Control2"><button cstyle="rit" onClick="btn_Cancel();" id="Cancel1">Cancel</button></span>
<script>
var the_timeout;
document.body.onload=function()
{
applyButton();
setTimeout("Update()",5000);
}
var Liveobj = new ActiveXObject("Update.LiveUpdate.1");
function Update()
{
var proName="";
var Version=window.external.IsProVersion();
if(Version==0)
proName="/VDrive";
else if (Version==1)
proName="/VDProBS";
else
alert("Internal error! ");
var ifup=Liveobj.Init(proName);
switch(ifup)
{
case 0:
$("Liveinfo").value="This version is the latest,You needn't to update!";
$("Liveinfo").style.color="#FF0000";
break;
case 1:
$("Liveinfo").value="Download remote file nowing...\n";
Liveobj.DownLoadFiles();
var down_stu=Liveobj.GetFinishStatus();
//ChkStu();
if(down_stu==0)
{
//$("Liveinfo").value="Download remote file Success,Update local file nowing...";
//Liveobj.Update();
//var up_stu=Liveobj.GetFinishStatus();
$("Liveinfo").value="Update local file Success!";show1();clearTimeout(the_timeout);
}
else if(down_stu==1)
{
clearTimeout(the_timeout);
$("Liveinfo").value="Download remote file fail,please try again...";Liveobj.DownLoadFiles();
$("Liveinfo").value="Live Update fail,please try again...";
var msg=Liveobj.GetLastErrorMsg();
RIT_popMsg('msg',265,147,'ok',msg,'alert');
}
else if(down_stu==2)
{
GetStu();
}
break;
case 2:
$("Liveinfo").value="Download remote file Success,Update local file nowing...";
break;
}
}
function GetStu()
{
if(down_stu==2)
{
$("Liveinfo").value+=(Liveobj.GetStatus()+"\n");
}
//the_timeout = setTimeout("GetStu();",1000);
}
function ChkStu()
{
if(down_stu==2)
{
GetStu();
}
}
function show1()
{
$("Liveinfo").value="Live Update Success...";
$("Control1").style.display="";
$("Control2").style.display="none";
}
function btn_Cancel()
{
$("Liveinfo").value="Cancel Live Update Now...";
//RIT_popMsg('wqw',264,180,'ok','set ok.','alert');
setTimeout("jump()",2000);
}
function jump()
{
location="Main_Quick_Start_1.htm";
}
</script></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -