home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Minami 79
/
MINAMI79.iso
/
Extra
/
MPSetup.exe
/
1033
/
RCDATA
/
CABINET
/
wmploc.DLL
/
HTML
/
COMPILATIONS.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: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.getDataAsyncAlbumList('info_artistdisco', loadData, '2');
var s = '<table width=368 class=pane border=0 cellpadding=0 cellspacing=0>';
s += '<tr><td class=artist>' + L_CompilationsTitle_Text + '</td></tr>';
s += '<tr><td><table width=368 border=0 cellpadding=0 cellspacing=0><tr><td class=textTitle>' + GetArtistTOC(4) + '</td></tr></table></td></tr>';
s += '<tr><td height=14 class=text id=compilationsHeader></td></tr>';
s += '<tr><td height=10></td></tr>';
s += '<tr><td valign=top height=40>' + GetButtons(4, L_AlbumsTitle_Text, 6, L_EPsAndSinglesTitle_Text) + '</td</tr>';
s += '<tr><td id=artistCompilations>' + GetLoading('black');
s += '</td></tr></table>';
element.innerHTML = s;
SetArtistAlbumHeader('compilationsHeader', true, true, false);
}
function resize()
{
var el = element.document.all(uniqueID + 'resize');
if (el)
el.style.height = Math.max(element.document.body.clientHeight - getElementTop('artistCompilations'), 10);
}
function loadData(oXML)
{
oDL.saveIDs(oXML);
var s = '<table border=0 cellpadding=0 cellspacing=0>';
if (oDL.getNodeText(oXML, 'p_id').length)
s += '<tr><td width=368 valign=top><div class=text id="' + uniqueID + 'resize" style="overflow-y: scroll; width: 368; height: ' + (element.document.body.clientHeight - getElementTop('artistCompilations')) + '">' + GetAlbumList(oDL, oXML, 'images\\compilations-boxedsets.gif', L_NoCompilationsError_Text) + '</div></td></tr>';
else
{
oDL.setNoData(L_CantFindArtistError_Text, 'images\\artist.gif', true);
return;
}
try
{
element.document.all('artistCompilations').innerHTML = s + '</table>';
} catch(e)
{
}
}
function noData(sHTML)
{
element.document.all('artistCompilations').innerHTML = sHTML;
}
</SCRIPT>
</PUBLIC:COMPONENT>