home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Minami 79
/
MINAMI79.iso
/
Extra
/
MPSetup.exe
/
1033
/
RCDATA
/
CABINET
/
wmploc.DLL
/
HTML
/
ALBUMS.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, '1');
var s = '<table width=368 class=pane border=0 cellpadding=0 cellspacing=0>';
s += '<tr><td class=artist>' + L_AlbumsTitle_Text + '</td></tr>';
s += '<tr><td><table width=368 border=0 cellpadding=0 cellspacing=0><tr><td class=textTitle>' + GetArtistTOC(3) + '</td></tr></table></td></tr>';
s += '<tr><td height=14 class=text id=albumsHeader></td></tr>';
s += '<tr><td height=10></td></tr>';
s += '<tr><td valign=top height=40>' + GetButtons(3, L_LatestReleasesTitle_Text, 5, L_CompilationsTitle_Text) + '</td></tr>';
s += '<tr><td id=artistAlbums>' + GetLoading('black');
s += '</td></tr></table>';
element.innerHTML = s;
SetArtistAlbumHeader('albumsHeader', true, true, false);
}
function resize()
{
var el = element.document.all(uniqueID + 'resize');
if (el)
el.style.height = Math.max(element.document.body.clientHeight - getElementTop('artistAlbums'), 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('artistAlbums')) + '">' + GetAlbumList(oDL, oXML, 'images\\album-review.gif', L_NoAlbumListError_Text) + '</div></td></tr>';
else
{
oDL.setNoData(L_CantFindArtistError_Text, 'images\\artist.gif', true);
return;
}
try
{
element.document.all('artistAlbums').innerHTML = s + '</table>';
} catch(e)
{
}
}
function noData(sHTML)
{
element.document.all('artistAlbums').innerHTML = sHTML;
}
</SCRIPT>
</PUBLIC:COMPONENT>