📄 main.htm
字号:
flag_1.style.display = "none";
flag_2.style.display = "block";
setTimeout("jumpmain()",100);
window.IframeMainUI.location="VCD_Library.htm";
// Marktest.UpdateItemState(14,0,0);
// Marktest.UpdateItemState(15,0,0);
// Marktest.UpdateItemState(20,0,0);
// Marktest.UpdateItemState(23,0,0);
// Marktest.UpdateItemState(24,0,0);
}else{
flag_1.style.display = "block";
flag_2.style.display = "none";
window.IframeMainUI.location="Main_Quick_Start_1.htm";
// Marktest.UpdateItemState(14,0,1);
// Marktest.UpdateItemState(15,0,1);
// Marktest.UpdateItemState(20,0,1);
// Marktest.UpdateItemState(23,0,1);
// Marktest.UpdateItemState(24,0,1);
}
}
</script>
<script language="javascript" type="text/javascript">
//////////////////////////////////////// Globle var for top menu
var sdObj = document.createElement("div")
var menuUpObj = null;
var submenuIsOpen = false;
var currentOpenedTopMenuButton = null;
var fffa;
var globeTopMenuListArray;
fffa=getCloseTopMenuFunction(null);
//////////////////////////////////////// Globle var for top menu end
//add menu list into array
var topMenuListArr=new Array();
//topMenuListArr.push(document.getElementById("fileTopMenu"));
//topMenuListArr.push(document.getElementById("toolsTopMenu"));
//topMenuListArr.push(document.getElementById("helpTopMenuA"));
globeTopMenuListArray = topMenuListArr;
//add menu list into array finish
for (i=0;i<topMenuListArr.length;i++) {
//set every menu mouseover effect
topMenuListArr[i].onmouseover=function() {
isMove=false;
this.style.backgroundColor="#316AC5";
this.style.color="#ffffff";
if(submenuIsOpen) {
try {
currentOpenedTopMenuButton.style.backgroundColor="";
currentOpenedTopMenuButton.style.color="#000000";
currentOpenedTopMenuButton=null;
menuUpObj.style.visibility="hidden";
sdObj.style.visibility="hidden";
}
catch(e){}
iniTopMenu(this);
}
}
//set every menu mouseout effect
topMenuListArr[i].onmouseout=function() {
if (!submenuIsOpen) {
isMove=true;
this.style.backgroundColor="";
this.style.color="#000000";
}
}
}
////////////////////////////////////////////////////////////////
///////////////////////////Hot key///////////////////////////////////
var hotKeyList=new Array();
var ctrlHotKeyList=new Array();
declareAltHotKey("O",showFileMenu);
declareAltHotKey("T",showToolsMenu);
declareAltHotKey("H",showHelpMenu);
//declareCtrlHotKey("K",toBackupMainPage);
//declareCtrlHotKey("T",toRestoreMainPage);
var bodyClickAction=document.body.onclick;
document.body.onclick=getFunction(bodyClickAction);
function getFunction(clickf) {
return function() {
try { clickf(); }
catch(e){}
try {
menuUpObj.style.visibility="hidden";
sdObj.style.visibility="hidden";
}
catch(e){}
submenuIsOpen=false;
}
}
/////////////////Menu event///////////////////
//var VCDITEMVIEW = new ActiveXObject("VCDITEMVIEW.VcdItemViewCtrl.1")
function ocxMenuEvent(id)
{
var filedislog = new ActiveXObject("FileBrowse.FileBrowse1.1");
var prod = new ActiveXObject("VProdInfo.EvProdInfo.1");
switch (id)
{
case 16:window.external.OnClose();break;
case 14:
jumpFlag(2);
var result=GetFilepath("vdr File(*.vdr);vdl File(*.vdl)|*.vdr;*.vdl||",true);
if(result!="")
{
var temp=obj1.ImportVCDList(result);
//alert(temp);
}
break;
case 15:
jumpFlag(2);
var result =GetFilepath("vdr File(*.vdr);vdl File(*.vdl)|*.vdr;*.vdl||",false);
//alert(result);
if(result!="")
{
//obj1.ImportVCDList(result);
if (result.substr(result.length - 4,result.length) == ".vdl" || result.substr(result.length - 4,result.length) == ".vdr"){
var temp=obj1.ExportVCDList(result);
}else{
var temp=obj1.ExportVCDList(result+".vdr");
}
//alert(temp);
}
break;
case 23:
var handle=filedislog.PopMessageBox(GS("pleasewait"),300,50,0);
globalset.SwitchIdeCDRom(0);
VCDLibary.Do_Refresh();
filedislog.CloseMessageBox(handle);
RIT_popMsg('',264,180,'Alert',GS("Disable_finish"),'info')
//RIT_popMsg('',264,180,'Alert',"Disabling devices is successfully complete!",'info');
jumpFlag(2);
break;
case 24:
var handle=filedislog.PopMessageBox(GS("pleasewait"),300,50,0);
globalset.SwitchIdeCDRom(1);
VCDLibary.Do_Refresh();
filedislog.CloseMessageBox(handle);
RIT_popMsg('',264,180,'Alert',GS("Enable_finish"),'info')
//RIT_popMsg('',264,180,'Alert',"Enabling devices is successfully complete!",'info');
jumpFlag(2);
break;
case 20:
jumpFlag(2);
window.external.Navigate("mainui/Conversion.htm", 500,400 );
var returnVal = window.external.GetStaticData();
if (returnVal != ""){
var actionType = returnVal.split("|");
if (actionType[1] == "in"){
VCDLibary.obj1.AddVCDFile(actionType[0]);
}else if (actionType[1] == "out"){
VCDLibary.obj1.DelVcdFileFromDataFile(actionType[0]);
}
}
window.external.SetStaticData("");
//Click_Menu_Help_Homepage();
break;
case 31:
window.open("http://www.farstone.com/tools/redir.asp?id=GAMECENTER&lang=0x"+prod.GetInstallLanguage(window.external.GetProductID()).toString(16)+"&type=ESD&lefttime="+prod.GetVerLeftTime(window.external.GetProductID()));
break;
case 32:
//Click_Menu_Help_Help();
//window.external.Navigate("mainui/sn.htm", 430,300 );
langobj.StartEvalBrowse(window.external.GetProductID());
break;
case 33:
//Click_Menu_Help_Help();
window.external.Navigate("mainui/about.htm", 500,400 );
break;
case 34:
//var langobj = new ActiveXObject("VProdInfo.EvProdInfo.1");
langid=langobj.GetInstallLanguage(window.external.GetProductID());
langid="0x"+langid.toString(16);
var buyurl = "http://www.farstone.com/tools/redir.asp?id=" + window.external.GetBuyNowID(window.external.GetProductID()) + "&lang=";//;%s&lefttime=%s&type=%s&sn=%s
buyurl+=langid+"&lefttime=";
buyurl+=langobj.GetVerLeftTime(window.external.GetProductID())+"&type=SUPPORT";
window.open(buyurl);
//window.open("http://www.farstone.com/support/forms/support-ticket.asp");
break;
case 30:
//Click_Menu_Help_About();
//content
window.external.ShowUrl("$VDPro.chm");
break;
}
}
function Click_Menu_Tool_Backup()
{
//Main_Container.unCheckAll();
window.open("Backup.html","IframeMainUI");
}
function Click_Menu_Tool_Restore()
{
//Main_Container.unCheckAll();
window.open("restore.html","IframeMainUI");
}
function Click_Menu_Tool_Upgrade()
{
//Main_Container.unCheckAll();
window.open("clone.html","IframeMainUI");
}
function Click_Menu_Tool_Unmount()
{
window.external.Navigate("mainui/unmountibp.htm",530,439);
}
function Click_Menu_Help_Homepage()
{
window.open("http://www.farstone.com");
}
function Click_Menu_Help_Help()
{
}
function Click_Menu_Help_EnterSerialNumber()
{
window.external.Navigate("mainui/SetSN.htm",370, 232);
}
function Click_Menu_Help_About()
{
}
</script>
<script language="javascript">
//functions for sub page use
/////////////////// mask
function maskFunction()
{
obj=document.getElementById("maskDiv");
obj.style.width="800px";
obj.style.display="";
}
/////////////////
function demaskFunction()
{
obj=document.getElementById("maskDiv");
obj.style.width="800px";
obj.style.display="none";
}
/////////////////////
////////////////
function maskLeftMenu()
{
window.external.PendClose(true);
//$("menuflag_1").detachEvent("onclick",menuhit1);
// $("menuflag_1").style.cursor="default";
// $("menuflag_2").detachEvent("onclick",menuhit2);
// $("menuflag_2").style.cursor="default";
// $("menuflag_3").detachEvent("onclick",menuhit3);
// $("menuflag_3").style.cursor="default";
// $("menuflag_4").detachEvent("onclick",menuhit4);
// $("menuflag_4").style.cursor="default";
// $("top_vcdlibary").detachEvent("onclick",tophit2);
// $("top_flist").detachEvent("onclick",tophit1);
Layer1.style.display = 'block';
Layer2.style.display = 'block';
Marktest.UpdateItemState(14,0,1);
Marktest.UpdateItemState(15,0,1);
Marktest.UpdateItemState(16,0,1);
Marktest.UpdateItemState(20,0,1);
Marktest.UpdateItemState(23,0,1);
Marktest.UpdateItemState(24,0,1);
Marktest.UpdateItemState(30,0,1);
Marktest.UpdateItemState(31,0,1);
Marktest.UpdateItemState(32,0,1);
Marktest.UpdateItemState(33,0,1);
Marktest.UpdateItemState(34,0,1);
//Main_Container.Disable();
}
////////////////////
function demaskLeftMenu()
{
window.external.PendClose(false);
//$("menuflag_1").attachEvent("onclick",menuhit1);
// $("menuflag_2").attachEvent("onclick",menuhit2);
// $("menuflag_3").attachEvent("onclick",menuhit3);
// $("menuflag_4").attachEvent("onclick",menuhit4);
// $("menuflag_1").style.cursor="hand";
// $("menuflag_2").style.cursor="hand";
// $("menuflag_3").style.cursor="hand";
// $("menuflag_4").style.cursor="hand";
// $("top_vcdlibary").attachEvent("onclick",tophit2);
// $("top_flist").attachEvent("onclick",tophit1);
Layer1.style.display = 'none';
Layer2.style.display = 'none';
Marktest.UpdateItemState(14,0,0);
Marktest.UpdateItemState(15,0,0);
Marktest.UpdateItemState(16,0,0);
Marktest.UpdateItemState(20,0,0);
Marktest.UpdateItemState(23,0,0);
Marktest.UpdateItemState(24,0,0);
Marktest.UpdateItemState(30,0,0);
Marktest.UpdateItemState(31,0,0);
Marktest.UpdateItemState(32,0,0);
Marktest.UpdateItemState(33,0,0);
Marktest.UpdateItemState(34,0,0);
}
function tophit2()
{
jumpFlag(2);
}
function tophit1()
{
jumpFlag(1);
}
function donothing()
{
}
function menuhit1()
{
menuFocus(1);
}
function menuhit2()
{
menuFocus(2);
}
function menuhit3()
{
menuFocus(3);
}
function menuhit4()
{
menuFocus(4);
}
function nullfunction()
{}
function Updatelist(Nid)
{
//alert(Nid);
setTimeout("nullfunction()",500);
try
{
VCDLibary.update1(Nid);
}
catch(e)
{
}
}
function actionInsert(nDrive,sFilePath){
VCDLibary.obj1.InsertVcdEx(nDrive,sFilePath);
}
function ejectDrive(ndrive){
//alert(ndrive);
VCDLibary.obj1.EjectVCD(ndrive);
}
function showError(nCode){
if (GS(nCode + "") == null){
RIT_popMsg('',264,180,'Alert',GS("unkownerror") + nCode,'alert')
}else{
RIT_popMsg('',264,180,'Alert',GS(nCode + ""),'alert');
}
}
function EditDrive(strDrive,sDriveList){
var confirmValue = RIT_popMsg('',500,150,'Alert',GS("main_editDrive_confirm"),'confirm');
if (confirmValue == "yes"){
window.external.Navigate("mainui/main_changedrive.htm?now=" + strDrive + ":&select=" + sDriveList, 393, 233);
var result = window.external.GetStaticData();
if (result){
//alert(result);
obj1.SaveEditDrive(result,strDrive);
VDriverSet.SaveDriverSetting();
}
window.external.SetStaticData("");
}
}
function setAdd(nStatus){
if (nStatus >= 128){
VCDLibary.isAdd = true;
VCDLibary.b_search.background = 'img/main_054.jpg';
VCDLibary.b_add.background = 'img/main_056.jpg';
VCDLibary.b_integer.background = 'img/main_057.jpg';
VCDLibary.b_eject.background = 'img/main_053_d.jpg';
}
//閫夋嫨鐨勬帴鐐规槸"鏈
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -