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

📄 create_virtual_hard_drive_step_3.htm

📁 vc-mfc编程实例 很简单的东西,以后回多传自己的东西
💻 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">
</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 FileSystem = Request("FileSystem");
//var DriveNumber = Request("DriveNumber");
//var DiskSize = Request("DiskSize");
//萁
var VirtualInfo = new ActiveXObject("VHDCom.VHDInterface.1");
function Init(){
	parent.maskLeftMenu();
	applyButton();
	chkBox_1=new checkBox("chkbox",true);
	chkBox_1.onCheck=function (){
		Path.disabled = false;
		$("selectPath").dsiabled = false;
		Description.disabled = false;
	}
	chkBox_1.onUncheck=function (){
		Path.disabled = true;
		$("selectPath").dsiabled = true;
		Description.disabled = true;
		//alert("ddd");
	}
	Path.value = VirtualInfo.GetDefaultImagePath();
	chkBox_1.apply();
	
	selectPath.style.visibility = 'visible';
	finish.style.visibility = 'visible';
	
	showui();
	checkLength();
}

function btn_select(){
	var result=GetFilepath("Image File(*.img)|*.img||",false);
	if(result!=""){
		$("Path").value=result + ".img";
	}
	
}

function chkboxAction(chkboxObj){
	if (eval(chkboxObj + ".checked")){
		eval(chkboxObj + ".setChecked(false);");
	}else{
		eval(chkboxObj + ".setChecked(true);");
	}
}

function showui(){
	$("CVHD_Title").innerHTML = GS("CVHD_Title");
	$("CVHD_Step3_Title_1").innerHTML = GS("CVHD_Step3_Title_1");
	$("CVHD_Step3_Title").innerHTML = GS("CVHD_Step3_Title");
	$("CVHD_Step3_Prompt").innerHTML = GS("CVHD_Step3_Prompt");
	$("CVHD_Step3_Label_1").innerHTML = GS("CVHD_Step3_Label_1");
	$("CVHD_Step3_Label_2").innerHTML = GS("CVHD_Step3_Label_2");
	$("finish").setValue(GS("Button_Finish"));
	$("selectPath").setValue(GS("Button_Browse"));
}

function checkLength(){
	if (Description.value.length>1023){
		Description.value = Description.value.substr(0,1023);
	}
	setTimeout(checkLength,1);
}
</script>

<body onLoad="Init();">
<table width="540" height="495" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center" valign="top"><table width="509" height="412" border="0" cellpadding="0" cellspacing="0" style="margin-top:41px;">
      <tr>
        <td valign="top"><table width="509" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><span class="PageTitle" id="CVHD_Title"></span></td>
          </tr>
          <tr>
            <td style="padding-top:7px;"><img src="img/CreateAudioCD_02.jpg" width="507" height="1"></td>
          </tr>
          <tr>
            <td class="MenuSubFont" style="padding-top:10px;"><p id="CVHD_Step3_Title_1" style="font-size:18px;"></p></td>
          </tr>
          <tr>
            <td class="PageStep" style="padding-top:10px;"><span id="chkbox" style="float:left;"></span><p id="CVHD_Step3_Title" onClick="chkboxAction('chkBox_1');"></p></td>
          </tr>
          <tr>
            <td height="40"><p class="PageText"><span style="cursor:'default';" id="CVHD_Step3_Prompt"></span></p></td>
          </tr>
          <tr>
            <td height="25" class="PageText" id="CVHD_Step3_Label_1"></td>
          </tr>
          <tr>
            <td valign="bottom"><table border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td><input name="Path" id="Path" type="text" size="50" onKeyDown="if(event.keyCode==13)Finish();"></td>
                  <td style="padding-left:10px;"><button cstyle="rit" onClick="btn_select();" id="selectPath" style="visibility:hidden;">...</button></td>
                </tr>
              </table></td>
          </tr>
          <tr>
            <td height="25" class="PageText" id="CVHD_Step3_Label_2"></td>
          </tr>
          <tr>
            <td valign="bottom"><textarea name="Description" id="Description" cols="36" rows="4"></textarea></td>
          </tr>
          <tr>
            <td height="82" align="right" valign="bottom"><button cstyle="rit" onClick="Finish();" id="finish" style="visibility:hidden;">Finish</button></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
<script language="javascript" type="text/javascript">
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:")					//谭
var haveVHD = 0;
function Finish(){
	if (Path.value == "" && chkBox_1.checked){
		RIT_popMsg('',264,180,'Alert',GS("CVHD_Step3_Alert"),'alert');
		return false;
	}
	for (i=1;i<26;i++){
		if (VirtualInfo.IsVHDDisk(i) == 0){
			haveVHD = i;
			break;
		}
	}
	if (Path.value.substr(0,2).toUpperCase() == chars[haveVHD]){
		RIT_popMsg('',264,180,'Alert',GS("CVHD_Step3_Alert_2"),'alert');
		return false;
	}
	if (VirtualInfo.IsFilePath(Path.value) != 0 && chkBox_1.checked){
		RIT_popMsg('',264,180,'Alert',GS(VirtualInfo.IsFilePath(Path.value) + ""),'alert');
		return false;
	}
	parent.demaskLeftMenu();
	if (chkBox_1.checked){
		top.vhd.saveImagePath = Path.value;
		top.vhd.saveImageDescription = Description.value;
		location = 'Create_Virtual_Hard_Drive_step_6.htm';
	}else{
		location = 'Create_Virtual_Hard_Drive_step_7.htm';
	}
}
</script>

⌨️ 快捷键说明

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