📄 conversion.htm
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Conversion</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 isMove = true;
function Init(){
applyButton();
showui();
}
function btn_select(){
var result =GetFilepath("vcd File(*.vcd;*.iso)|*.vcd;*.iso||",true);
if (result){
$("SourcePath").value=result;
if (SourcePath.value.substr(SourcePath.value.length-4,4).toLowerCase() == ".vcd"){
Destination.value = SourcePath.value.substr(0,SourcePath.value.length-4) + ".ISO";
}else if (SourcePath.value.substr(SourcePath.value.length-4,4).toLowerCase() == ".iso"){
Destination.value = SourcePath.value.substr(0,SourcePath.value.length-4) + ".VCD";
}else{
Destination.value = "";
}
}
}
function showui(){
$("Conversion_title").innerHTML = GS("Conversion_title");
$("Conversion_prompt").innerHTML = GS("Conversion_prompt");
$("Conversion_label_1").innerHTML = GS("Conversion_label_1");
$("Conversion_label_2").innerHTML = GS("Conversion_label_2");
$("convert").setValue(GS("Button_Convert"));
$("cancel").setValue(GS("Button_Cancel"));
$("selectPath").setValue(GS("Button_Browse"));
}
</script>
<body onKeydown="event.returnValue=disableBack();" onLoad="Init();">
<object classid="clsid:A56CA636-227F-4839-887E-1933386804C0" id="vcdObj" style="visibility:hidden; width:0px; height:0px;"></object>
<table width="500" height="400" border="0" cellpadding="0" cellspacing="1" bgcolor="627192">
<tr>
<td valign="top" bgcolor="#FFFFFF"><table width="498" height="398" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="43"><table width="498" height="43" border="0" cellpadding="0" cellspacing="0" onMouseDown="moveWindow();">
<tr>
<td width="10" background="img/conversion_01.jpg"> </td>
<td width="478" background="img/conversion_02.jpg"><table width="478" height="43" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="PageTitle" style="padding-left:12px;" id="Conversion_title"></td>
<td align="right"><img src="img/conversion_05.jpg" width="23" height="43" border="0" usemap="#Map"></td>
</tr>
</table></td>
<td width="10" background="img/conversion_03.jpg"> </td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="498" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10" height="342"><img src="img/conversion_06.jpg" width="10" height="342"></td>
<td align="center"><table width="430" height="300" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="20" class="PageStep" id="Conversion_prompt"></td>
</tr>
<tr>
<td height="20" class="PageText" style="padding-top:20px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="70" class="PageText" id="Conversion_label_1"></td>
<td><input name="SourcePath" id="SourcePath" type="text" size="45" readonly="readonly" onKeyDown="if(event.keyCode==13)Convert('');"></td>
<td><button cstyle="rit" onClick="btn_select();" id="selectPath">Browse...</button></td>
</tr>
</table></td>
</tr>
<tr>
<td height="20" class="PageText" style="padding-top:20px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="70" class="PageText" id="Conversion_label_2"></td>
<td><input name="Destination" id="Destination" type="text" size="45" readonly="readonly" onKeyDown="if(event.keyCode==13)Convert('');"></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="bottom" align="right" style="padding-bottom:20px;"><button cstyle="rit" onClick="Convert('');" id="convert">Convert</button> <button cstyle="rit" onClick="window.external.OnClose();" id="cancel">Cancel</button></td>
</tr>
</table></td>
<td width="10" height="342"><img src="img/conversion_07.jpg" width="10" height="342"></td>
</tr>
</table></td>
</tr>
<tr>
<td width="498" height="13"><img src="img/conversion_08.jpg" width="498" height="13"></td>
</tr>
</table></td>
</tr>
</table>
<map name="Map"><area shape="rect" coords="0,11,23,34" href="#" onClick="window.external.OnClose();return false;" onFocus="this.blur();" onMouseOver="isMove=false;" onMouseOut="isMove=true;"></map></body>
</html>
<script language="javascript" type="text/javascript">
var Status;
function Convert(pwd){
if (SourcePath.value.substr(SourcePath.value.length-4,4).toLowerCase() == ".vcd"){
var checkPassword = vcdObj.CheckPassword(SourcePath.value,pwd);
if (checkPassword){
window.external.Navigate("mainui/getPassword.htm",350, 147);
var GetP = window.external.GetStaticData();
if(GetP!=""){
Convert(GetP);
}else{
window.external.OnClose();
}
window.external.SetStaticData("");
return;
}else{
$("convert").dsiabled = true;
//alert(SourcePath.value + "|" + Destination.value);
Status = vcdObj.IsoVcdConvert(SourcePath.value,Destination.value,0);
if (Status){
if (GS(Status + "") == null){
RIT_popMsg('',264,180,'Alert',GS("Conversion_alert_2"),'alert');
}else{
RIT_popMsg('',400,200,'Alert',GS(Status + ""),'alert');
}
$("convert").dsiabled = false;
return false;
}
window.external.SetStaticData(SourcePath.value + "|out");
window.external.OnClose();
}
}else if (SourcePath.value.substr(SourcePath.value.length-4,4).toLowerCase() == ".iso"){
var checkPassword = vcdObj.CheckPassword(SourcePath.value,pwd);
if (checkPassword){
window.external.Navigate("mainui/getPassword.htm",350, 147);
var GetP = window.external.GetStaticData();
if(GetP!=""){
window.external.OnClose();
}else{
Convert(GetP);
}
window.external.SetStaticData("");
return;
}else{
$("convert").dsiabled = true;
Status = vcdObj.IsoVcdConvert(SourcePath.value,Destination.value,1);
if (Status){
if (GS(Status + "") == "null"){
RIT_popMsg('',264,180,'Alert',GS("Conversion_alert_4"),'alert');
}else{
RIT_popMsg('',264,180,'Alert',GS("ConvertErr"),'alert');
}
$("convert").dsiabled = false;
return false;
}
window.external.SetStaticData(Destination.value + "|in");
window.external.OnClose();
}
}else{
RIT_popMsg('',264,180,'Alert',GS("Conversion_alert_5"),'alert');
return;
}
setTimeout(viewStatus,1000);
}
function viewStatus(){
alert(Status);
}
function moveWindow() {
if (isMove) {
window.external.OnMoveWindow();
}
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -