home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOKAN 55
/
DOKAN55.ISO
/
Extra
/
MPSetup.exe
/
1033
/
RCDATA
/
CABINET
/
wmploc.DLL
/
HTML
/
LATEST.HTC
< prev
next >
Wrap
Text File
|
2002-12-14
|
2KB
|
67 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_latestreleases', loadData);
var s = '<table width=368 class=pane border=0 cellpadding=0 cellspacing=0>';
s += '<tr><td class=artist>' + L_LatestReleasesTitle_Text + '</td></tr>';
s += '<tr><td><table width=368 border=0 cellpadding=0 cellspacing=0><tr><td class=textTitle>' + GetArtistTOC(2) + '</td></tr></table></td></tr>';
s += '<tr><td height=14 class=text id=latestHeader></td></tr>';
s += '<tr><td height=10></td></tr>';
s += '<tr><td valign=top height=40>' + GetButtons(2, L_BiographyTitle_Text, 4, L_AlbumsTitle_Text) + '</td></tr>';
s += '<tr><td id=artistLatest>' + GetLoading('black');
s += '</td></tr></table>';
element.innerHTML = s;
SetArtistAlbumHeader('latestHeader', true, true, false);
}
function loadData(oXML)
{
var sHTML;
oDL.saveIDs(oXML);
var s = '<table border=0 cellpadding=0 cellspacing=0>';
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_NoLatestAlbumsError_Text, 'images\\artist.gif', false);
return;
}
}
else
{
oDL.setNoData(L_CantFindArtistError_Text, 'images\\artist.gif', true);
return;
}
try
{
element.document.all('artistLatest').innerHTML = s + '</table>';
} catch(e)
{
}
}
function noData(sHTML)
{
element.document.all('artistLatest').innerHTML = sHTML;
}
</SCRIPT>
</PUBLIC:COMPONENT>