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

📄 main_vhd.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 VirtualInfo = new ActiveXObject("VHDCom.VHDInterface.1");
var container1=new container("0");
var radioStyle = new UIStyle();
radioStyle.setStyle("controlimg/radiobutton.jpg",12,12,12,0);//(picture,width,height,startX,startY)
var rb_1 = new radioButton();
var rb_2 = new radioButton();
var rb_3 = new radioButton();

rb_1.applyStyle(radioStyle);
rb_1.setValue("0");
rb_1.attachMeToContainer("container1");
rb_1.setDefault();
rb_1.oncheck = function() {
}

rb_2.applyStyle(radioStyle);
rb_2.setValue("1");
rb_2.attachMeToContainer("container1");
rb_2.oncheck = function() {
	
}
rb_3.applyStyle(radioStyle);
rb_3.setValue("2");
rb_3.attachMeToContainer("container1");
rb_3.oncheck = function() {
	
}

var haveVHD = false;
function Init(){
	applyButton();
	for (i=1;i<26;i++){
		if (VirtualInfo.IsVHDDisk(i) == 0){
			haveVHD = true;
			VHDID = i;
			break;
		}
	}
	if (haveVHD){
		ico_1.alt = GS("main_vhd_alt_1");
		ico_2.alt = GS("main_vhd_alt_2");
		main_vhd_label_1.title = GS("main_vhd_alt_1");
		main_vhd_label_2.title = GS("main_vhd_alt_2");
		ico_1.src = 'img/ico_03_2.jpg';
		ico_2.src = 'img/main_ico_2.jpg';
	}else{
		ico_3.alt = GS("main_vhd_alt_3");
		ico_4.alt = GS("main_vhd_alt_4");
		ico_5.alt = GS("main_vhd_alt_5");
		main_vhd_label_3.title = GS("main_vhd_alt_3");
		main_vhd_label_4.title = GS("main_vhd_alt_4");
		main_vhd_label_5.title = GS("main_vhd_alt_5");
		ico_3.src = 'img/ico_04_2.jpg';
		ico_4.src = 'img/ico_05_2.jpg';
		ico_5.src = 'img/ico_07_2.jpg';
	}
	
	showui();
}

function showui(){
	$("main_vhd_title").innerHTML = GS("main_vhd_title");
	$("main_vhd_content").innerHTML = GS("main_vhd_content");
	$("main_vhd_label_1").innerHTML = GS("main_vhd_label_1");
	$("main_vhd_tag_1").innerHTML = GS("main_vhd_tag_1");
	$("main_vhd_label_2").innerHTML = GS("main_vhd_label_2");
	$("main_vhd_tag_2").innerHTML = GS("main_vhd_tag_2");
	$("main_vhd_label_3").innerHTML = GS("main_vhd_label_3");
	$("main_vhd_tag_3").innerHTML = GS("main_vhd_tag_3");
	$("main_vhd_label_4").innerHTML = GS("main_vhd_label_4");
	$("main_vhd_tag_4").innerHTML = GS("main_vhd_tag_4");
	$("main_vhd_label_5").innerHTML = GS("main_vhd_label_5");
	$("main_vhd_tag_5").innerHTML = GS("main_vhd_tag_5");
}
</script>

<body onKeydown="event.returnValue=disableBack();" onLoad="Init();">
<table width="540" height="495" 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="220" class="PageStep" style="font-size:18px;" id="main_vhd_title"></td>
          </tr>
          <tr>
            <td style="padding-top:7px;"><img src="img/CreateAudioCD_02.jpg" width="507" height="1"></td>
          </tr>
          <tr>
            <td class="PageStep" style="padding-top:10px;">&nbsp;</td>
          </tr>
          <tr>
            <td class="PageText" style="padding-top:3px;" id="main_vhd_content"></td>
            </tr>
          
          <tr>
            <td align="center" valign="bottom" style="padding-top:10px;"><table width="500" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="100" align="center"><img src="img/ico_03.jpg" width="55" height="55" border="0" onMouseOver="changeIco('img/ico_03_1.jpg',false,this);" onMouseOut="changeIco('img/ico_03.jpg',false,this);" onClick="CreateVHD();" style="cursor:hand;" id="ico_1"></td>
                <td valign="top"><table width="400" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="20" class="PageSubTitle" style="cursor:hand; text-decoration:underline;" onClick="CreateVHD();" id="main_vhd_label_1"></td>
                    </tr>
                    <tr>
                      <td height="1" ></td>
                    </tr>
                    <tr>
                      <td height="20" class="PageText" id="main_vhd_tag_1" style="padding-right:20px;"></td>
                    </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td align="center" valign="bottom" style="padding-top:10px;"><table width="500" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="100" align="center"><img src="img/main_ico.jpg" width="54" height="54" border="0" onMouseOver="changeIco('img/main_ico_1.jpg',false,this);" onMouseOut="changeIco('img/main_ico.jpg',false,this);" onClick="LoadImage();" style="cursor:hand;" id="ico_2"></td>
                <td valign="top"><table width="400" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="20" class="PageSubTitle" style="cursor:hand; text-decoration:underline;" onClick="LoadImage();" id="main_vhd_label_2"></td>
                    </tr>
                    <tr>
                      <td height="1" ></td>
                    </tr>
                    <tr>
                      <td height="20" class="PageText" id="main_vhd_tag_2" style="padding-right:20px;"></td>
                    </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
		  <tr>
            <td align="center" valign="bottom" style="padding-top:10px;"><table width="500" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="100" align="center"><img src="img/ico_04.jpg" width="55" height="55" border="0" onMouseOver="changeIco('img/ico_04_1.jpg',true,this);" onMouseOut="changeIco('img/ico_04.jpg',true,this);" onClick="SaveVHD();" style="cursor:hand;" id="ico_3"></td>
                <td valign="top"><table width="400" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="20" class="PageSubTitle" style="cursor:hand; text-decoration:underline;" onClick="SaveVHD();" id="main_vhd_label_3"></td>
                    </tr>
                    <tr>
                      <td height="1" ></td>
                    </tr>
                    <tr>
                      <td height="20" class="PageText" id="main_vhd_tag_3" style="padding-right:20px;"></td>
                    </tr>
                </table></td>
              </tr>
            </table></td>
		  </tr>
		  <tr>
            <td align="center" valign="bottom" style="padding-top:10px;"><table width="500" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="100" align="center"><img src="img/ico_05.jpg" width="55" height="55" border="0" onMouseOver="changeIco('img/ico_05_1.jpg',true,this);" onMouseOut="changeIco('img/ico_05.jpg',true,this);" onClick="RemoveVHD();" style="cursor:hand;" id="ico_4"></td>
                <td valign="top"><table width="400" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="20" class="PageSubTitle" style="cursor:hand; text-decoration:underline;" onClick="RemoveVHD();" id="main_vhd_label_4"></td>
                    </tr>
                    <tr>
                      <td height="1" ></td>
                    </tr>
                    <tr>
                      <td height="20" class="PageText" id="main_vhd_tag_4" style="padding-right:20px;"></td>
                    </tr>
                </table></td>
              </tr>
            </table></td>
		  </tr>
		  <tr>
            <td align="center" valign="bottom" style="padding-top:10px;"><table width="500" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="100" align="center"><img src="img/ico_07.jpg" width="55" height="55" border="0" onMouseOver="changeIco('img/ico_07_1.jpg',true,this);" onMouseOut="changeIco('img/ico_07.jpg',true,this);" onClick="ViewVHD();" style="cursor:hand;" id="ico_5"></td>
                <td valign="top"><table width="400" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="20" class="PageSubTitle" style="cursor:hand; text-decoration:underline;" onClick="ViewVHD();" id="main_vhd_label_5"></td>
                    </tr>
                    <tr>
                      <td height="1" ></td>
                    </tr>
                    <tr>
                      <td height="20" class="PageText" id="main_vhd_tag_5" style="padding-right:20px;"></td>
                    </tr>
                </table></td>
              </tr>
            </table></td>
		  </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
<script language="javascript" type="text/javascript">
function changeIco(imgPath,isVHD,obj){
	if(haveVHD && isVHD || !haveVHD && !isVHD){
		obj.src = imgPath;
	}
}

function CreateVHD(){
	if (!haveVHD){
		location = 'Create_Virtual_Hard_Drive_step_2.htm';
	}else{
		return false;
	}
}

function LoadImage(){
	if (!haveVHD){
		location = 'Load_Virtual_Hard_Drive_Image.htm';
	}else{
		return false;
	}
}

function SaveVHD(){
	if (haveVHD){
		location = 'Save_Hard_Virtual_Drive_step_1.htm';
	}else{
		return false;
	}
}

function RemoveVHD(){
	if (haveVHD){
		location = 'Delete_Virtual_Hard_Drive_step_1.htm';
	}else{
		return false;
	}
}

function ViewVHD(){
	if (haveVHD){
		VirtualInfo.OpenDisk(VHDID);
	}else{
		return false;
	}
}
</script>

⌨️ 快捷键说明

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