home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Minami 40
/
MINAMI40.ISO
/
Extra
/
MPSetup.exe
/
1033
/
RCDATA
/
CABINET
/
wmploc.DLL
/
HTML
/
ALBUM.HTC
next >
Wrap
Text File
|
2002-12-14
|
4KB
|
99 lines
<PUBLIC:COMPONENT lightWeight=true>
<PUBLIC:METHOD NAME="reload" />
<PUBLIC:METHOD NAME="updateMedia" />
<PUBLIC:ATTACH EVENT="onresize" ONEVENT="resize()" />
<PUBLIC:METHOD NAME="noData" />
<SCRIPT LANGUAGE="JScript">
function reload() { load(); }
function updateMedia(media) { load(); }
var oDL;
function load()
{
oDL = element.document.all('dataload');
oDL.getDataAsync('info_albuminfo_bcd', loadData);
var s = '<table width=368 class=pane border=0 cellpadding=0 cellspacing=0>';
s += '<tr><td class=artist>' + L_AlbumDetailsTitle_Text + '</td></tr>';
s += '<tr><td>' + GetAlbumTOC(0) + '</td></tr>';
s += '<tr><td height=14 class=text id=albumHeader></td></tr>';
s += '<tr><td height=10></td></tr>';
s += '<tr><td valign=top height=40>' + GetButtons(-1, '', 9, L_AlbumReviewTitle_Text) + '</td></tr>';
s += '<tr><td id=albumInfo>' + GetLoading('black');
s += '</td></tr></table>';
element.innerHTML = s;
SetArtistAlbumHeader('albumHeader', true, true, false);
}
function resize()
{
var el = element.document.all(uniqueID + 'resize');
if (el)
el.style.height = Math.max(element.document.body.clientHeight - getElementTop('albumInfo'), 10);
}
function loadData(oXML)
{
oDL.saveIDs(oXML);
var s = '<table border=0 cellpadding=0 cellspacing=0>';
if (oDL.getNodeText(oXML, 'msid_album').length)
{
s += '<tr><td width=150 valign=top>' + GetLeftColumn(oDL, oXML) + '</td><td width=8></td><td width=210 valign=top><div class=text id="' + uniqueID + 'resize" style="overflow-y: scroll; width: 210; height: ' + (element.document.body.clientHeight - getElementTop('albumInfo')) + '">' + GetRightColumn(oDL, oXML) + '</div></td></tr>';
try
{
element.document.all('albumInfo').innerHTML = s + '</table>';
} catch(e)
{
}
}
else
oDL.setNoData(L_CantFindAlbumError_Text, 'images\\album-review.gif', true);
element.onresize = resize;
}
function noData(sHTML)
{
element.document.all('albumInfo').innerHTML = sHTML;
}
function GetLeftColumn(oDL, oXML)
{
var s = '<table width=100% border=0 cellpadding=0 cellspacing=0>', sArt;
sArt = fixText(oDL.getNodeText(oXML, 'coverURLSmall'));
if (!sArt.length)
sArt = 'images\\small-cd.gif';
else
sArt = 'http://services.windowsmedia.com/cover/' + sArt;
s += '<tr><td><IMG src="' + sArt + '" border=0 id=albumArt></td></tr>';
s += '<tr><td height=5></td></tr>';
s += '<tr><td class=textBold>' + fixText(oDL.getNodeText(oXML, 'fullName')) + '</td></tr>';
s += '<tr><td class=textBold>' + fixText(oDL.getNodeText(oXML, 'fulltitle')) + '</td></tr>';
s += '<tr><td height=5></td></tr>';
s += '<tr><td class=text>' + fixText(oDL.getNodeText(oXML, 'label')) + '</td></tr>';
s += '<tr><td class=text>' + fixText(oDL.getNodeText(oXML, 'releaseDate')) + '</td></tr>';
s += '<tr><td height=10></td></tr>';
s += '<tr><td class=text><A href="X" onclick="trackIt(\'BNT0\'); return doBuyCD(\'' + quoteText(oDL.AID) + '\', \'' + fixText(oDL.MSIDAlbum) + '\', \'' + fixText(element.document.all('toc').innerText) + '\', \'' + fixText(element.document.all('contentid').innerText) + '\');" class=text>' + L_BuyCDLink_Text + '</a></td></tr>';
return s + '</table>';
}
function GetRightColumn(oDL, oXML)
{
var oTracks = oXML.getElementsByTagName('Track');
var s = '<table width=100% border=0 cellpadding=0 cellspacing=0>', sNum;
for (i = 0; i < oTracks.length; i++)
{
sNum = i + 1;
if (i < 9) sNum = '0' + sNum;
s += '<tr><td valign=top class=text>' + sNum + '</td><td width=5></td><td valign=top class=text>' + fixText(oDL.getNodeText(oTracks[i], 'trackTitle')) + '</td></tr>';
}
return s + '</table>';
}
</SCRIPT>
</PUBLIC:COMPONENT>