📄 create_virtual_hard_drive_step_2.htm
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Create Audio CD</title>
<link href="css/main.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE1 {
color: #FF0000;
font-size: 18px;
}
-->
</style>
</head>
<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>
<script language="javascript" type="text/javascript">
var VirtualInfo = new ActiveXObject("VHDCom.VHDInterface.1");
var chars = new Array("A:","B:","C:","D:","E:","F:","G:","H:","I:","J:","K:","L:","M:","N:","O:","P:","Q:","R:","S:","T:","U:","V:","W:","X:","Y:","Z:") //̷
//for (i=1;i<26;i++){
// alert(chars[i] + " | " + VirtualInfo.IsVHDDisk(i));
//}
function Init(){
parent.menuflag_1.background = 'img/newmain_10.jpg';
parent.menuflag_2.background = 'img/newmain_12.jpg';
parent.menuflag_3.background = 'img/newmain_13.jpg';
parent.menuflag_4.background = 'img/newmain_12.jpg';
applyButton();
var nullDrive = VirtualInfo.GetNullDrive().replace(/\\/g,"").split(",");
var diskType = new downListCreator();
var arrDownList_1 = new Array();
arrDownList_1[0] = "NTFS|0";
arrDownList_1[1] = "FAT|1";
arrDownList_1[2] = "FAT32|2";
objListItem_1 = diskType.getCtrl(arrDownList_1,'obj_value_1','listObj_1','NTFS',30);
objListItem_1.onChange = function(){
}
var diskDrive = new downListCreator();
var arrDownList_2 = new Array();
//for (i=1;i<26;i++){
// arrDownList_2[i-1] = chars[i] + "|" + i;
//}
for (i=0; i<nullDrive.length-1; i++){
for (j=0; j<26; j++){
if (nullDrive[i]==chars[j]){
arrDownList_2[i] = nullDrive[i] + "|" + j;
break;
}
}
}
//alert(VirtualInfo.GetNullDrive());
objListItem_2 = diskDrive.getCtrl(arrDownList_2,'obj_value_2','listObj_2',nullDrive[0],30);
objListItem_2.onChange = function(){
}
usememory.innerHTML = (VirtualInfo.GetTotalMemory()-VirtualInfo.GetFreeMemory()) + "MB (" + parseInt(((VirtualInfo.GetTotalMemory()-VirtualInfo.GetFreeMemory())/VirtualInfo.GetTotalMemory())*100) + "%)";
freememory.innerHTML = VirtualInfo.GetFreeMemory() + "MB (" + (100 - parseInt(((VirtualInfo.GetTotalMemory()-VirtualInfo.GetFreeMemory())/VirtualInfo.GetTotalMemory())*100)) + "%)";
showui();
if (VirtualInfo.GetNullDrive() == ""){
//errPrompt.innerHTML = GS("CVHD_Step2_error");
var result=RIT_popMsg('',450,200,'tryagain',GS("CVHD_Step2_error"),'tryagain');
if(result=="yes")
{
window.location="Create_Virtual_Hard_Drive_step_2.htm";
}
$("next").dsiabled = true;
return false;
}
}
function IsDigit(){
return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
function showui(){
$("CVHD_Title").innerHTML = GS("CVHD_Title");
$("CVHD_Step2_Title").innerHTML = GS("CVHD_Step2_Title");
$("CVHD_Step2_Label_1").innerHTML = GS("CVHD_Step2_Label_1");
$("CVHD_Step2_Label_2").innerHTML = GS("CVHD_Step2_Label_2");
$("CVHD_Step2_Label_3").innerHTML = GS("CVHD_Step2_Label_3");
$("CVHD_Step2_Label_4").innerHTML = GS("CVHD_Step2_Label_4");
$("CVHD_Step2_Label_5").innerHTML = GS("CVHD_Step2_Label_5");
$("previous").setValue(GS("Button_Previous"));
$("next").setValue(GS("Button_Next"));
$("cancel").setValue(GS("Button_Cancel"));
}
</script>
<body onLoad="Init();">
<table width="540" height="495" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"><table width="509" border="0" cellspacing="0" cellpadding="0" style="margin-top:41px;">
<tr>
<td colspan="2"><span class="PageTitle" id="CVHD_Title"></span></td>
</tr>
<tr>
<td colspan="2" style="padding-top:7px;"><img src="img/CreateAudioCD_02.jpg" width="507" height="1"></td>
</tr>
<tr>
<td colspan="2" class="PageStep" style="padding-top:10px;" id="CVHD_Step2_Title"></td>
</tr>
<tr>
<td width="150" class="PageText" style="padding-top:20px; padding-bottom:5px;" id="CVHD_Step2_Label_1"></td>
<td width="430" class="PageText" style="padding-top:20px; padding-bottom:5px;"><div id="listObj_1"></div></td>
</tr>
<tr>
<td width="150" height="30" class="PageText" id="CVHD_Step2_Label_2"></td>
<td height="30" class="PageText"><div id="listObj_2"></div></td>
</tr>
<tr>
<td width="150" height="30" class="PageText" id="CVHD_Step2_Label_3"></td>
<td height="30"><div id="resizebox" style="padding-left:3px; z-index:-10;"></div>
<!--<input name="diskSize" id="diskSize" type="text" size="37" onKeyPress="event.returnValue=IsDigit();">-->
</td>
</tr>
<tr>
<td colspan="2" valign="bottom" class="PageText" style="padding-top:10px;"><span id="CVHD_Step2_Label_4"></span> <span id="usememory"></span><br>
<span id="CVHD_Step2_Label_5"></span> <span id="freememory"></span></td>
</tr>
<tr>
<td height="90" colspan="2" valign="bottom" class="PageTextshedule STYLE1" id="errPrompt"></td>
</tr>
<tr>
<td height="112" colspan="2" align="right" valign="top">
<div style="position:absolute; right:15px; bottom:25px">
<button cstyle="rit" onClick="history.back();" id="previous">Previous</button>
<button cstyle="rit" onClick="nextPage();" id="next">Next</button>
<button cstyle="rit" onClick="history.back();" id="cancel">Cancel</button>
</div>
</td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
<script language="javascript" type="text/javascript">
var ibpSpaceNumboxObj;
var defaultnum;
if(VirtualInfo.GetFreeMemory()>60)
{
defaultnum=60;
}
else
{
defaultnum=VirtualInfo.GetFreeMemory()-10;
}
ibpSpaceNumboxObj=new numBox("hgh",185,defaultnum,1,false);
ibpSpaceNumboxObj.display("resizebox");
ibpSpaceNumboxObj.maximalNum=VirtualInfo.GetEnableDiskSize();
ibpSpaceNumboxObj.minimumNum=1;
function nextPage(){
if (objListItem_1.value == 0 && parseInt(ibpSpaceNumboxObj.value) < 3){
RIT_popMsg('',264,180,'Alert',GS("CVHD_Step2_Alert_1"),'alert');
return false;
}
if (objListItem_1.value == 1 && parseInt(ibpSpaceNumboxObj.value) < 1){
RIT_popMsg('',264,180,'Alert',GS("CVHD_Step2_Alert_2"),'alert');
return false;
}
if (objListItem_1.value == 2 && parseInt(ibpSpaceNumboxObj.value) < 33){
RIT_popMsg('',264,180,'Alert',GS("CVHD_Step2_Alert_3"),'alert');
return false;
}
if (ibpSpaceNumboxObj.value == ""){
RIT_popMsg('',264,180,'Alert',GS("CVHD_Step2_Alert_4"),'alert');
return false;
}
if (parseInt(ibpSpaceNumboxObj.value) > parseInt(VirtualInfo.GetEnableDiskSize())){
RIT_popMsg('',264,180,'Alert',GS("CVHD_Step2_Alert_5"),'alert');
return false;
}
if (isNaN(ibpSpaceNumboxObj.getValue())){
RIT_popMsg('',264,180,'Alert',GS("CVHD_Step2_Alert_6"),'alert');
return false;
}
location = 'Create_Virtual_Hard_Drive_step_5.htm?FileSystem=' + escape(objListItem_1.value) + '&DriveNumber=' + escape(objListItem_2.value) + '&DiskSize=' + escape(ibpSpaceNumboxObj.getValue());
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -