📄 create_audio_cd.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 driveNumber = top.cvcd.driveNumber;
var savePath = top.cvcd.savePath;
//萁
var startTime;
var musicArray = new Array;
function Init(){
applyButton();
musicList.SetCDROM(parseInt(driveNumber));
var objDownList = new downListCreator();
var TrackNumber = top.cvcd.objectX.GetTotalAudioTrack(parseInt(driveNumber));
var arrDownList = new Array();
var tmpNumber = 0;
for (i = 0 ;i < TrackNumber;i++){
if (i+1<10){
tmpNumber = "0" + (i+1);
}else{
tmpNumber = i+1;
}
arrDownList[i] = "Track" + tmpNumber + "|" + (i+1);
}
objListItem = objDownList.getCtrl(arrDownList,'obj_value','selTrack','Track01',30);
objListItem.onChange = function(){
}
musicLength = top.cvcd.objectX.GetTckLengthInSec(driveNumber,0);
totalLength = parseInt(musicLength/60) + ":" + (musicLength%60);
musicNumber.innerHTML = objListItem.value;
playTime.innerHTML = totalLength;
updateMusicInfo();
previous.style.visibility = 'visible';
next.style.visibility = 'visible';
cancel.style.visibility = 'visible';
showui();
}
function updateMusicInfo(){
musicLength = top.cvcd.objectX.GetTckLengthInSec(driveNumber,objListItem.value);
totalLength = parseInt(musicLength/60) + ":" + (musicLength%60);
if (parseInt(objListItem.value)-1<10){
musicNumber.innerHTML = "0" + (objListItem.value);
}else{
musicNumber.innerHTML = objListItem.value;
}
playTime.innerHTML = totalLength;
moveTime.innerHTML = "00:00";
}
function controlProgress(){
var nowTime = new Date();
return function()
{
if (playStatus == 0)
{
musicProgress.setProgress(0);
return;
}
if ((nowTime-startTime)/1000/top.cvcd.objectX.GetTckLengthInSec(parseInt(driveNumber),parseInt(objListItem.value))<=1){
ProgressValue = parseInt((nowTime-startTime)/1000/top.cvcd.objectX.GetTckLengthInSec(parseInt(driveNumber),parseInt(objListItem.value))*100);
musicProgress.setProgress(ProgressValue);
moveTime.innerHTML = getTimeFormat(nowTime-startTime);
setTimeout(controlProgress(),1);
}else{
musicProgress.setProgress(100);
top.cvcd.objectX.StopTrack(parseInt(driveNumber));
music_play.src = 'img/music_play_1.jpg';
music_stop.src = 'img/music_stop_2.jpg';
playStatus = 0;
return;
}
}
}
function showui(){
$("CVCD_Title").innerHTML = GS("CVCD_Title");
$("CVCD_Audio_Title").innerHTML = GS("CVCD_Audio_Title");
$("CVCD_Audio_Label_1").innerHTML = GS("CVCD_Audio_Label_1");
$("CVCD_Audio_Label_2").innerHTML = GS("CVCD_Audio_Label_2");
$("CVCD_Audio_Label_3").innerHTML = GS("CVCD_Audio_Label_3");
$("CVCD_Audio_Label_4").innerHTML = GS("CVCD_Audio_Label_4");
$("previous").setValue(GS("Button_Previous"));
$("next").setValue(GS("Button_Next"));
$("cancel").setValue(GS("Button_Cancel"));
}
</script>
<body onKeydown="event.returnValue=disableBack();" onLoad="Init();" onUnload="stopMusic();">
<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:38px;">
<tr>
<td valign="top"><table width="509" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><span class="PageTitle" id="CVCD_Title"></span></td>
</tr>
<tr>
<td style="padding-top:7px;"><img src="img/CreateAudioCD_02.jpg" width="507" height="1"></td>
</tr>
<tr>
<td height="350" valign="top"><table width="509" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="PageStep" style="padding-top:10px;" id="CVCD_Audio_Title"></td>
</tr>
<tr>
<td style="padding-top:20px;"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="6" height="6"><img src="img/CreateAudioCD_11.jpg" width="6" height="6"></td>
<td height="6" background="img/CreateAudioCD_12.jpg"></td>
<td width="6" height="6"><img src="img/CreateAudioCD_13.jpg" width="6" height="6"></td>
</tr>
<tr>
<td width="6" background="img/CreateAudioCD_14.jpg"></td>
<td width="186" height="142"><object classid="clsid:66B2CA0D-5F15-4136-A8B9-E60043293120" style="WIDTH: 186px; HEIGHT: 142px;" id="musicList">
</object> </td>
<td width="6" background="img/CreateAudioCD_15.jpg"></td>
</tr>
<tr>
<td width="6" height="6"><img src="img/CreateAudioCD_16.jpg" width="6" height="6"></td>
<td height="6" background="img/CreateAudioCD_17.jpg"></td>
<td width="6" height="6"><img src="img/CreateAudioCD_18.jpg" width="6" height="6"></td>
</tr>
</table></td>
<td style="padding-left:20px;"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="6" height="6"><img src="img/CreateAudioCD_11.jpg" width="6" height="6"></td>
<td height="6" background="img/CreateAudioCD_12.jpg"></td>
<td width="6" height="6"><img src="img/CreateAudioCD_13.jpg" width="6" height="6"></td>
</tr>
<tr>
<td width="6" background="img/CreateAudioCD_14.jpg"></td>
<td width="270" height="142"><table border="0" cellpadding="0" cellspacing="0" style="margin-left:15px;">
<tr>
<td height="20" class="PageText" style="padding-left:8px;" id="CVCD_Audio_Label_1"></td>
</tr>
<tr>
<td><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="img/music_play_1.jpg" width="17" height="17" id="music_play" onClick="musicPlay();"><img src="img/music_next_1.jpg" width="17" height="17" id="music_next" onClick="musicNext();"><img src="img/music_stop_2.jpg" width="17" height="17" id="music_stop" onClick="musicStop();"></td>
<td style="padding-left:10px;"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="20" class="PageText" style="padding-left:8px;" id="CVCD_Audio_Label_2"></td>
</tr>
<tr>
<td><div id="selTrack" style="z-index:99;"></div></td>
</tr>
<tr>
<td height="20" class="PageText" style="padding-left:8px;" id="CVCD_Audio_Label_3"></td>
</tr>
<tr>
<td height="20" class="PageText" style="padding-left:8px;"><span id="CVCD_Audio_Label_4"></span><span id="musicNumber" style="float:none"></span> <span id="playTime" style="float:none;"></span> <span id="moveTime" style="float:none;">00:00</span></td>
</tr>
<tr>
<td height="25"><div id="musicProgress" style="z-index:-1;"></div></td>
</tr>
</table></td>
<td width="6" background="img/CreateAudioCD_15.jpg"></td>
</tr>
<tr>
<td width="6" height="6"><img src="img/CreateAudioCD_16.jpg" width="6" height="6"></td>
<td height="6" background="img/CreateAudioCD_17.jpg"></td>
<td width="6" height="6"><img src="img/CreateAudioCD_18.jpg" width="6" height="6"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td style="padding-top:20px;"> </td>
</tr>
</table></td>
</tr>
<tr>
<td align="right" valign="bottom"><button cstyle="rit" onClick="history.back();" id="previous" style="visibility:hidden;">Previous</button> <button cstyle="rit" onClick="nextPage();" id="next" style="visibility:hidden;">Next</button> <button cstyle="rit" onClick="location='Select_A_CD_DVD.htm';" id="cancel" style="visibility:hidden;">Cancel</button></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
<script language="javascript" type="text/javascript">
//植沤
var gProgress=0;
var playStatus=0;
var musicProgress=new progressControl(200,"musicProgress");
musicProgress.setProgress(0);
//始
function musicPlay(){
if (playStatus == 0){
updateMusicInfo();
music_play.src = 'img/music_play_2.jpg';
music_stop.src = 'img/music_stop_1.jpg';
playStatus = 1;
top.cvcd.objectX.playTrack(parseInt(driveNumber),parseInt(objListItem.value));
startTime = new Date();
setTimeout(controlProgress(),1);
}
}
//停止
function musicStop(){
top.cvcd.objectX.StopTrack(parseInt(driveNumber));
music_play.src = 'img/music_play_1.jpg';
music_stop.src = 'img/music_stop_2.jpg';
playStatus = 0;
}
//一
function musicNext(){
top.cvcd.objectX.StopTrack(parseInt(driveNumber));
music_play.src = 'img/music_play_1.jpg';
music_stop.src = 'img/music_stop_2.jpg';
playStatus = 0;
}
function nextPage(){
if (top.cvcd.objectX.GetVolumeInfo(driveNumber).split(",")[0] != top.cvcd.Serial){
RIT_popMsg('',264,180,'Alert',GS("CVHD_diskError") + top.cvcd.Serial,'alert');
return false;
}
top.cvcd.Tracks = musicArray;
location = 'Create_Virtual_CD_step_6.htm';
}
function stopMusic(){
top.cvcd.objectX.StopTrack(parseInt(driveNumber));
}
function getTimeFormat(timeval){
tValue = timeval;
if (tValue/60000<10){
tag_2 = '0' + parseInt(tValue/60000);
}else{
tag_2 = parseInt(tValue/60000);
}
tValue = tValue % 60000;
if (tValue/1000<10){
tag_3 = '0' + parseInt(tValue/1000);
}else{
tag_3 = parseInt(tValue/1000);
}
return tag_2 + ":" + tag_3;
}
function setMusic(iValue){
musicArray[iValue] = true;
}
function cancelMusic(iValue){
musicArray[iValue] = false;
}
</script>
<script language="vbscript">
sub musicList_SelectTrack(nTrack)
setMusic(nTrack)
end sub
sub musicList_DeleteTrack(nTrack)
cancelMusic(nTrack)
end sub
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -