home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Minami 79
/
MINAMI79.iso
/
Extra
/
MPSetup.exe
/
1033
/
RCDATA
/
CABINET
/
wmploc.DLL
/
HTML
/
RELATED.HTC
< prev
next >
Wrap
Text File
|
2002-12-14
|
2KB
|
65 lines
<PUBLIC:COMPONENT lightWeight=true>
<PUBLIC:METHOD NAME="reload" />
<PUBLIC:METHOD NAME="updateMedia" />
<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_relatedalbums', loadData);
var s = '<table width=368 class=pane border=0 cellpadding=0 cellspacing=0>';
s += '<tr><td class=artist>' + L_RelatedAlbumsTitle_Text + '</td></tr>';
s += '<tr><td>' + GetRelatedTOC(0) + '</td></tr>';
s += '<tr><td height=14 class=text id=relatedHeader></td></tr>';
s += '<tr><td height=10></td></tr>';
s += '<tr><td valign=top height=40>' + GetButtons(-1, '', 12, L_RelatedArtistsTitle_Text) + '</td></tr>';
s += '<tr><td id=relatedAlbumsList>' + GetLoading('black');
s += '</td></tr></table>';
element.innerHTML = s;
SetArtistAlbumHeader('relatedHeader', true, true, false);
}
function loadData(oXML)
{
var s = '<table border=0 cellpadding=0 cellspacing=0>', sHTML;
if (oDL.getNodeText(oXML, 'p_id').length)
{
sHTML = GetImageAlbumList(oDL, oXML);
if (sHTML.length)
s += '<tr><td width=368 valign=top>' + sHTML + '</td></tr>';
else
{
oDL.setNoData(L_NoRelatedAlbumsError_Text, 'images\\artist.gif', false);
return;
}
}
else
{
oDL.setNoData(L_CantFindArtistError_Text, 'images\\artist.gif', true);
return;
}
try
{
element.document.all('relatedAlbumsList').innerHTML = s + '</table>';
} catch(e)
{
}
}
function noData(sHTML)
{
element.document.all('relatedAlbumsList').innerHTML = sHTML;
}
</SCRIPT>
</PUBLIC:COMPONENT>