home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 September (Special)
/
Chip-Special_2002-09_Digitalni-Video.bin
/
servis
/
wm9
/
mpsetupXP.exe
/
RCDATA
/
CABINET
/
wmploc.DLL
/
HTML
/
ALBUM.HTC
next >
Wrap
Text File
|
2002-08-19
|
3KB
|
86 lines
<PUBLIC:COMPONENT lightWeight=true>
<PUBLIC:METHOD NAME="reload" />
<PUBLIC:METHOD NAME="updateMedia" />
<SCRIPT LANGUAGE="JScript">
function reload() { load(); }
function updateMedia(media) { load(); }
var oXML, oDL;
function load()
{
oDL = element.document.all('dataload');
oXML = 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=24></td></tr>';
s += '<tr><td align=right valign=top height=40><a href="X" onclick="return pageSlide(9)" alt="' + L_AlbumReviewTitle_Text + '" style="behavior: url(button.htc)" direction=0></a></td></tr>';
s += '<tr><td id=albumInfo>';
s += '</td></tr></table>';
element.innerHTML = s;
}
function loadData()
{
if (oXML)
{
if (oXML.readyState == 4)
{
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 style="overflow-y: scroll; width: 210; height: expression(Math.max(144, document.body.clientHeight - 176))">' + GetRightColumn(oDL, oXML) + '</div></td></tr>';
else
s += '<tr><td width=368 height=100% valign=top>' + getNoDataInfo('images\\album-review.gif', L_CantFindAlbumError_Text) + '</td></tr>';
try
{
element.document.all('albumInfo').innerHTML = s + '</table>';
} catch(e)
{
}
}
}
}
function GetLeftColumn(oDL, oXML)
{
var s = '<table width=100% border=0 cellpadding=0 cellspacing=0>', sArt;
sArt = 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="return doflyout(flybuy, \'\');" 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>