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
/
FLYALBUM.HTC
< prev
next >
Wrap
Text File
|
2002-08-19
|
3KB
|
81 lines
<PUBLIC:COMPONENT lightWeight=true>
<PUBLIC:METHOD NAME="reload" />
<SCRIPT LANGUAGE="JScript">
var oXML, oDL;
function reload(sParam)
{
oDL = element.document.all('dataload');
oXML = oDL.getDataAsyncAlbum('info_albuminfo_ecd', loadData, '&a_id=' + sParam);
var s = '<table width=368 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></td></tr></table>'
element.innerHTML = s;
}
function loadData()
{
if (oXML)
{
if (oXML.readyState == 4)
{
var s = '<table border=0 cellpadding=0 cellspacing=0>';
s += '<tr><td width=180 valign=top>' + GetLeftColumn(oDL, oXML) + '</td><td width=8></td><td width=180 valign=top>' + GetRightColumn(oDL, oXML) + '</td></tr>';
try
{
element.document.all('albumInfoAlbumData').innerHTML = s + '</table>';
element.document.all('albumInfoArtistName').innerHTML = fixText(oDL.getNodeText(oXML, 'fullName'));
element.document.all('albumInfoAlbumName').innerHTML = fixText(oDL.getNodeText(oXML, 'fulltitle'));
} catch(e)
{
}
}
}
}
function GetLeftColumn(oDL, oXML)
{
var s = '<table width=150 border=0 cellpadding=0 cellspacing=0>', sArt;
sArt = oDL.getNodeText(oXML, 'coverURL');
if (!sArt.length)
sArt = 'images\\buy-cd.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="return doflyout(flybuy, \'' + oDL.getNodeText(oXML, 'a_id') + '\');" class=text style="color:white">' + L_BuyCDLink_Text + '</a></td></tr>';
return s + '</table>';
}
function GetRightColumn(oDL, oXML)
{
var oTracks = oXML.getElementsByTagName('Track'), sSample;
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 = 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, '', '') + '>';
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>';
}
</SCRIPT>
</PUBLIC:COMPONENT>