📄 savevhdimgselectfile.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>
<body>
<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 colspan="2"><div id="save_vhd_title" class="PageTitle">
Save Virtual Hard Drive
</div></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="lang_1">
<span id="save_vhd_cimg">
Create an image file for the Virtual Hard Drive
</span>
</td>
</tr>
<tr>
<td colspan="2" valign="bottom" class="PageText" style="padding-top:10px;" id="lang_2">
<span id="save_vhd_help">
This help you save and restore content of Virtual Hard Drive
</span>
</td>
</tr>
<tr>
<td colspan="2" valign="bottom" style="padding-top:30px;"><!--<img src="img/button_check_1.jpg" width="11" height="11"><span class="PageText"> Create an image--></span></td>
</tr>
<tr>
<td height="25" colspan="2" class="PageText" style="padding-left:18px;" id="lang_3">
<span id="save_vhd_path">
Path:
</span>
</td>
</tr>
<tr>
<td colspan="2" valign="bottom"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input name="textfield" type="text" size="50" id="filepath"></td>
<td style="padding-left:10px;">
<button cstyle="rit" onClick="btn_select();" id="savenow">...</button>
<!-- <img src="img/CreateVirtualCD_01.jpg" width="20" height="20">--></td>
</tr>
</table></td>
</tr>
<tr>
<td height="25" colspan="2" class="PageText" style="padding-left:18px;" id="lang_4">
<span id="save_vhd_des">
Description:
</span>
</td>
</tr>
<tr>
<td colspan="2" valign="bottom"><textarea name="descript" id="descript" cols="36" rows="4"></textarea></td>
</tr>
<tr>
<td height="82" colspan="2" align="right" valign="bottom">
<div id="savebutton"><button cstyle="rit" onClick="saveimg();" id="finish">finish</button></div>
<!--<img src="img/CreateVirtualHardDrive_11.jpg" width="55" height="20">--></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<!--<object id="cbpselectlocation" style="WIDTH: 0px; HEIGHT: 0px; visibility:hidden " classid="clsid:4CA5E8A7-A2B4-4F68-BA0A-7A223368EF3E">
</object>-->
<script>
var obj = new ActiveXObject("VHDCom.VHDInterface.1");
var imgname="";
document.body.onload=function()
{
applyButton();
showui();
$("filepath").value=obj.GetDefaultImagePath();
checkLength();
}
function btn_select()
{
//var path=cbpselectlocation.BrowPathCreateNoNet("",1);
var result = GetFilepath("Image File(*.img)|*.img||",false);
if(result!="")
{
$("filepath").value=result + ".img";
}
}
function checkLength(){
if (descript.value.length>1023){
descript.value = descript.value.substr(0,1023);
}
setTimeout(checkLength,1);
}
function saveimg()
{
//$("showwaitinfo").innerHTML='<table border="0" cellspacing="0" cellpadding="0"><tr><td><img src="images/running.gif" width="21" height="21"></td><td><span class="PageStep" style="padding-top:10px;"> System is saving Virtual Hard Drive to an image file. Please wait...</span></td></tr></table>';
//$("savebutton").innerHTML=" "
if($("filepath").value!="")
{
parent.imgpath=$("filepath").value;
parent.imgdesc=$("descript").value;
document.location="Save_Hard_Virtual_Drive.htm";
}
else
{
RIT_popMsg('',264,180,'ok','please select a file.','alert');
}
//parent.maskLeftMenu();
//setTimeout("action()",1000);
}
function action()
{
//obj.SaveImage($("filepath").value);
//obj.SetCurImageDes($().value);
//parent.demaskLeftMenu();
//setTimeout("jump()",200);
}
function jump()
{
document.location="Save_Hard_Virtual_Drive_step_3.htm?imgname="+imgname;
}
function showui()
{
$("save_vhd_title").innerHTML=GS("save_vhd_title");
$("save_vhd_cimg").innerHTML=GS("save_vhd_cimg");
$("save_vhd_help").innerHTML=GS("save_vhd_help");
$("save_vhd_path").innerHTML=GS("save_vhd_path");
$("save_vhd_des").innerHTML=GS("save_vhd_des");
$("finish").setValue(GS("button_finish"));
$("savenow").setValue(GS("Button_Browse"));
}
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -