home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Minami 79
/
MINAMI79.iso
/
Extra
/
MPSetup.exe
/
1033
/
RCDATA
/
CABINET
/
wmploc.DLL
/
HTML
/
FLYALBUM.HTC
< prev
next >
Wrap
Text File
|
2002-12-14
|
4KB
|
105 lines
<PUBLIC:COMPONENT lightWeight=true>
<PUBLIC:METHOD NAME="reload" />
<PUBLIC:METHOD NAME="colorChange" />
<PUBLIC:ATTACH EVENT="onresize" ONEVENT="resize()" />
<PUBLIC:METHOD NAME="noData" />
<SCRIPT LANGUAGE="JScript">
var oDL;
function reload(sParam)
{
oDL = element.document.all('dataload');
oDL.getDataAsyncAlbum('info_albuminfo_ecd', loadData, sParam);
var s = '<table width=90% class=flypane border=0 cellpadding=0 cellspacing=0>'
s += '<tr><td class=artist style="color:white" id=albumInfoArtistName valign=top></td><td valign=top align=right>' + GetFlyClose('flyalbum') + '</td></tr>';
s += '<tr><td class=song style="color:white" colspan=2 id=albumInfoAlbumName valign=top></td></tr>';
s += '<tr><td colspan=2 height=20></td></tr>';
s += '<tr><td colspan=2 valign=top id=albumInfoAlbumData>' + GetLoading('white') + '</td></tr></table>'
element.innerHTML = s;
}
function resize()
{
var el = element.document.all(uniqueID + 'resize');
if (el)
el.style.height = Math.max(element.document.body.clientHeight - getElementTop('albumInfoAlbumData') + 66 + 15, 10);
}
function loadData(oXML)
{
var s = '<table border=0 cellpadding=0 cellspacing=0>', sRight;
sRight = GetRightColumn(oDL, oXML);
if (sRight.length)
s += '<tr><td width=180 valign=top>' + GetLeftColumn(oDL, oXML) + '</td><td width=8></td><td width=180 valign=top><div class=text id="' + uniqueID + 'resize" style="overflow-y: scroll; width: 210; height: ' + (element.document.body.clientHeight - getElementTop('albumInfoAlbumData') + 66) + '">' + sRight + '</div></td></tr></table>';
else
s = oDL.buildNoData(L_CantFindAlbumInfoError_Text, 'images\\album-review.gif', false);
try
{
element.document.all('albumInfoAlbumData').innerHTML = s;
element.document.all('albumInfoArtistName').innerHTML = fixText(oDL.getNodeText(oXML, 'fullName'));
element.document.all('albumInfoAlbumName').innerHTML = fixText(oDL.getNodeText(oXML, 'fulltitle'));
} catch(e)
{
}
resize();
}
function GetLeftColumn(oDL, oXML)
{
var s = '<table width=150 border=0 cellpadding=0 cellspacing=0>', sArt;
sArt = fixText(oDL.getNodeText(oXML, 'coverURL'));
if (!sArt.length)
sArt = 'images\\album-review.gif';
else
sArt = 'http://services.windowsmedia.com/cover/' + sArt;
s += '<tr><td><IMG width=150 src="' + sArt + '" border=0></td></tr>';
s += '<tr><td align=right><A href="X" onclick="trackIt(\'BNT0\'); return doBuyCD(\'' + quoteText(oDL.getNodeText(oXML, 'a_id')) + '\', \'' + fixText(oDL.getNodeText(oXML, 'msid_album')) + '\', \'\', \'\');" class=text style="color:white">' + L_BuyCDLink_Text + '</a></td></tr>';
return s + '</table>';
}
function GetRightColumn(oDL, oXML)
{
var oTracks = oXML.getElementsByTagName('Track'), sSample;
if (oTracks.length)
{
var s = '<table width=100% border=0 cellpadding=0 cellspacing=0>', sNum, sLink;
for (i = 0; i < oTracks.length; i++)
{
sNum = i + 1;
if (i < 9) sNum = '0' + sNum;
s += '<tr><td valign=top class=text style="color:white">' + sNum + '</td><td width=5></td><td valign=top width=20>';
sSample = fixText(oDL.getNodeText(oTracks[i], 'clipURL'));
if (sSample.length > 0)
{
sLink = '<a class=text style="color:white" ' + getHrefText('http://hurl.content.loudeye.com/scripts/hurl.exe?clipid=' + sSample + '&cid=600058', true, 'LTT' + getClickIndex(i)) + '>';
s += sLink;
s += '<img border=0 align=absmiddle src="images\\music.gif"></a>';
}
else
sLink = '';
s += '</td><td valign=top class=text style="color:white">' + sLink + fixText(oDL.getNodeText(oTracks[i], 'trackTitle')) + '</a></td></tr>';
}
return s + '</table>';
}
else
return '';
}
function colorChange()
{
element.style.backgroundColor = getCurrentColor();
}
function noData()
{
element.document.all('albumInfoAlbumData').innerHTML = sHTML;
}
</SCRIPT>
</PUBLIC:COMPONENT>