📄 create_virtual_cd_step_6.htm
字号:
function cancel(){
var isCancel = RIT_popMsg('',300,150,'',GS("CVHD_Step6_Confirm"),'confirm');
if (isCancel == "yes"){
parent.demaskLeftMenu();
top.cvcd.objectX.StopBuild();
location='Select_A_CD_DVD.htm';
}
}
function setStatus(){
if (top.cvcd.diskType == 1){
//alert(top.cvcd.objectX.GetAudioCDStatus());
buildingInfo = top.cvcd.objectX.GetAudioCDStatus().split(",");
//testStatus.innerHTML = buildingInfo;
if (buildingInfo[0] == 0){
statusInfo.innerHTML = GS("CVCD_Step6_Status_1");
}else if (buildingInfo[0] == 1){
statusInfo.innerHTML = GS("CVCD_Step6_Status_2");
}else if (buildingInfo[0] == 2){
var nowTime = new Date();
statusInfo.innerHTML = GS("CVCD_Step6_Status_3");
if (parseInt(buildingInfo[4])){
Percent = parseInt(buildingInfo[3]/buildingInfo[4]*100);
ptest.setProgress(Percent);
}else{
Percent = 0;
ptest.setProgress(Percent);
}
BuildData.innerHTML = parseInt(buildingInfo[1]);
TotalData.innerHTML = parseInt(buildingInfo[2]);
BuildSectors.innerHTML = buildingInfo[3];
Compression.innerHTML = buildingInfo[4];
ElapsedTime.innerHTML = getTimeFormat(nowTime-startTime);
CompleteTime.innerHTML = getTimeFormat(parseInt((nowTime-startTime)/(buildingInfo[3]/buildingInfo[4])-(nowTime-startTime)));
}
}else if (top.cvcd.diskType == 2 || top.cvcd.diskType == 3){
//alert(top.cvcd.objectX.GetDataCDStatus());
buildingInfo = top.cvcd.objectX.GetDataCDStatus().split(",");
//testStatus.innerHTML = buildingInfo;
if (buildingInfo[0] == 0){
statusInfo.innerHTML = GS("CVCD_Step6_Status_1");
}else if (buildingInfo[0] == 1){
var nowTime = new Date();
statusInfo.innerHTML = GS("CVCD_Step6_Status_2");
if (parseInt(buildingInfo[2])){
Percent = parseInt(buildingInfo[1]/buildingInfo[2]*100);
ptest.setProgress(Percent);
}else{
Percent = 0;
ptest.setProgress(Percent);
}
BuildData.innerHTML = parseInt(buildingInfo[1]) + "MB";
TotalData.innerHTML = parseInt(buildingInfo[2]) + "MB";
BuildSectors.innerHTML = buildingInfo[3];
Compression.innerHTML = parseInt(buildingInfo[4]*100) + "%";
ElapsedTime.innerHTML = getTimeFormat(nowTime-startTime);
CompleteTime.innerHTML = getTimeFormat((nowTime-startTime)/(buildingInfo[1]/buildingInfo[2])-(nowTime-startTime));
}else if (buildingInfo[0] == 2){
var nowTime = new Date();
statusInfo.innerHTML = GS("CVCD_Step6_Status_3");
if (parseInt(buildingInfo[2])){
Percent = parseInt(buildingInfo[1]/buildingInfo[2]*100);
ptest.setProgress(Percent);
}else{
Percent = 0;
ptest.setProgress(Percent);
}
BuildData.innerHTML = parseInt(buildingInfo[1]) + "MB";
TotalData.innerHTML = parseInt(buildingInfo[2]) + "MB";
BuildSectors.innerHTML = buildingInfo[3];
Compression.innerHTML = parseInt(buildingInfo[4]*100) + "%";
ElapsedTime.innerHTML = getTimeFormat(nowTime-startTime);
CompleteTime.innerHTML = getTimeFormat((nowTime-startTime)/(buildingInfo[1]/buildingInfo[2])-(nowTime-startTime));
}
}else if (top.cvcd.diskType == 4 || top.cvcd.diskType == 7){
//alert(top.cvcd.objectX.GetDataCDStatus());
buildingInfo = top.cvcd.objectX.GetDataCDStatus().split(",");
//testStatus.innerHTML = buildingInfo;
if (buildingInfo[0] == 0){
statusInfo.innerHTML = GS("CVCD_Step6_Status_1");
}else if (buildingInfo[0] == 1){
var nowTime = new Date();
statusInfo.innerHTML = GS("CVCD_Step6_Status_2");
if (parseInt(buildingInfo[2])){
Percent = parseInt(buildingInfo[1]/buildingInfo[2]*100);
ptest.setProgress(Percent);
}else{
Percent = 0;
ptest.setProgress(Percent);
}
BuildData.innerHTML = parseInt(buildingInfo[1]) + "MB";
TotalData.innerHTML = parseInt(buildingInfo[2]) + "MB";
BuildSectors.innerHTML = buildingInfo[3];
Compression.innerHTML = parseInt(buildingInfo[4]*100) + "%";
ElapsedTime.innerHTML = getTimeFormat(nowTime-startTime);
CompleteTime.innerHTML = getTimeFormat((nowTime-startTime)/(buildingInfo[1]/buildingInfo[2])-(nowTime-startTime));
}else if (buildingInfo[0] == 2){
var nowTime = new Date();
statusInfo.innerHTML = GS("CVCD_Step6_Status_3");
if (parseInt(buildingInfo[2])){
Percent = parseInt(buildingInfo[1]/buildingInfo[2]*100);
ptest.setProgress(Percent);
}else{
Percent = 0;
ptest.setProgress(Percent);
}
BuildData.innerHTML = parseInt(buildingInfo[1]) + "MB";
TotalData.innerHTML = parseInt(buildingInfo[2]) + "MB";
BuildSectors.innerHTML = buildingInfo[3];
Compression.innerHTML = parseInt(buildingInfo[4]*100) + "%";
ElapsedTime.innerHTML = getTimeFormat(nowTime-startTime);
CompleteTime.innerHTML = getTimeFormat((nowTime-startTime)/(buildingInfo[1]/buildingInfo[2])-(nowTime-startTime));
}
}else if (top.cvcd.diskType == 8 || top.cvcd.diskType == 5){
//alert(top.cvcd.objectX.GetMixedCDStatus());
buildingInfo = top.cvcd.objectX.GetMixedCDStatus().split(",");
//testStatus.innerHTML = buildingInfo;
if (buildingInfo[0] == 0){
statusInfo.innerHTML = GS("CVCD_Step6_Status_1");
}else if (buildingInfo[0] == 1){
var nowTime = new Date();
statusInfo.innerHTML = GS("CVCD_Step6_Status_2");
if (parseInt(buildingInfo[2])){
Percent = parseInt(buildingInfo[1]/buildingInfo[2]*100);
ptest.setProgress(Percent);
}else{
Percent = 0;
ptest.setProgress(Percent);
}
BuildData.innerHTML = parseInt(buildingInfo[1]) + "MB";
TotalData.innerHTML = parseInt(buildingInfo[2]) + "MB";
BuildSectors.innerHTML = buildingInfo[3];
Compression.innerHTML = parseInt(buildingInfo[4]) + "%";
ElapsedTime.innerHTML = getTimeFormat(nowTime-startTime);
CompleteTime.innerHTML = getTimeFormat((nowTime-startTime)/(buildingInfo[1]/buildingInfo[2])-(nowTime-startTime));
}else if (buildingInfo[0] == 2){
var nowTime = new Date();
statusInfo.innerHTML = GS("CVCD_Step6_Status_3");
if (parseInt(buildingInfo[2])){
Percent = parseInt(buildingInfo[1]/buildingInfo[2]*100);
ptest.setProgress(Percent);
}else{
Percent = 0;
ptest.setProgress(Percent);
}
BuildData.innerHTML = parseInt(buildingInfo[1]) + "MB";
TotalData.innerHTML = parseInt(buildingInfo[2]) + "MB";
BuildSectors.innerHTML = buildingInfo[3];
Compression.innerHTML = parseInt(buildingInfo[4]) + "%";
ElapsedTime.innerHTML = getTimeFormat(nowTime-startTime);
CompleteTime.innerHTML = getTimeFormat((nowTime-startTime)/(buildingInfo[1]/buildingInfo[2])-(nowTime-startTime));
}
}
if (top.cvcd.objectX.GetFinishStatus() == 1 || top.cvcd.objectX.GetFinishStatus() == 3){
ptest.setProgress(100);
if (top.cvcd.diskType == 4 || top.cvcd.diskType == 7){
BuildData.innerHTML = TotalData.innerHTML;
ElapsedTime.innerHTML = "00:00:00";
CompleteTime.innerHTML = "00:00:00";
}
setTimeout(finished,1000);
return;
}
setTimeout(setStatus,1000);
}
function getTimeFormat(timeval){
tValue = timeval;
if (tValue/3600000<10){
val_1 = '0' + parseInt(tValue/3600000);
}else{
val_1 = parseInt(tValue/3600000);
}
tValue = tValue % 3600000;
if (tValue/60000<10){
val_2 = '0' + parseInt(tValue/60000);
}else{
val_2 = parseInt(tValue/60000);
}
tValue = tValue % 60000;
if (tValue/1000<10){
val_3 = '0' + parseInt(tValue/1000);
}else{
val_3 = parseInt(tValue/1000);
}
return val_1 + ":" + val_2 + ":" + val_3;
}
function finished(){
parent.demaskLeftMenu();
top.cvcd.status = top.cvcd.objectX.GetFinishStatus();
if (top.cvcd.status == 3){
errCode = top.cvcd.objectX.GetLastErrorCode()
if (GS(errCode + "") == null){
RIT_popMsg('',264,180,'Alert',GS("unkownerror") + errCode,'alert');
}else{
RIT_popMsg('',264,180,'Alert',GS(errCode + ""),'alert');
}
}
top.jumpFlag(2);
top.VCDLibary.Do_Refresh();
location = 'main_VirtualDrive.htm';
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -