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
/
RELATEDARTISTS.HTC
< prev
next >
Wrap
Text File
|
2002-08-19
|
3KB
|
82 lines
<PUBLIC:COMPONENT lightWeight=true>
<PUBLIC:METHOD NAME="reload" />
<PUBLIC:METHOD NAME="updateMedia" />
<SCRIPT LANGUAGE="JScript">
function reload() { load(); }
function updateMedia(media) { load(); }
var oDL, oXML;
function load()
{
oDL = element.document.all('dataload');
oXML = oDL.getDataAsync('info_relatedartists', loadData);
var s = '<table width=368 class=pane border=0 cellpadding=0 cellspacing=0>';
s += '<tr><td class=artist>' + L_RelatedArtistsTitle_Text + '</td></tr>';
s += '<tr><td>' + GetRelatedTOC(1) + '</td></tr>';
s += '<tr><td height=24></td></tr>';
s += '<tr><td valign=top height=40><table width=368 border=0 cellpadding=0 cellspacing=0><tr><td align=left><a href="X" onclick="return pageSlide(11)" alt="' + L_RelatedAlbumsTitle_Text + '" style="behavior: url(button.htc)" direction=1></a></td>';
s += '<td align=right><a href="X" onclick="return pageSlide(13)" alt="' + L_RelatedRadioTitle_Text + '" style="behavior: url(button.htc)" direction=0></a></td></tr></table></td></tr>';
s += '<tr><td id=relatedArtistsData width=368 height=100% valign=top>';
element.innerHTML = s + '</td></tr></table>';
}
function loadData()
{
if (oXML)
{
if (oXML.readyState == 4)
{
oDL.saveIDs(oXML);
var s;
if (oDL.getNodeText(oXML, 'p_id').length)
{
s = '<div class=text style="overflow-y: scroll; width: 368; height: expression(Math.max(144, document.body.clientHeight - 176))">';
s += '<table border=0 cellpadding=0 cellspacing=0>';
s += '<tr><td width=180 valign=top>' + GetArtists(oDL, oXML, 'Similar Artists', L_SimilarArtistsListHeader_Text) + '</td><td width=8></td>';
s += '<td width=180 valign=top><table border=0 cellpadding=0 cellspacing=0><tr><td valign=top>' + GetArtists(oDL, oXML, 'Collaborators', L_CollaboratorsListHeader_Text);
s += '</td></tr><tr><td valign=top>' + GetArtists(oDL, oXML, 'Roots and Influences', L_InfluencedByListHeader_Text) + '</td></tr></table></td></tr>';
s += '</td></tr></table></div>';
}
else
s = getNoDataInfo('images\\artist.gif', L_CantFindArtistError_Text);
try
{
element.document.all('relatedArtistsData').innerHTML = s;
} catch(e)
{
}
}
}
}
function GetArtists(oDL, oXML, sType, sHeader)
{
var s = '<table border=0 cellpadding=0 cellspacing=0>', i, iDone = 0;
var oArtists = oXML.getElementsByTagName('Artist');
s += '<tr><td class=textBold>' + sHeader + '</td></tr>';
for (i = 0; i < oArtists.length; i++)
{
if (oArtists[i].getAttribute('relation') == sType)
{
s += '<tr><td valign=top class=text><A href="' + getMediaGuideUrl('artistprofile') + 'p_id=' + oDL.getNodeText(oArtists[i], 'p_id') + '&name=' + fixText(oDL.getNodeText(oArtists[i], 'Name')) + '" class=text target=wmc>' + fixText(oDL.getNodeText(oArtists[i], 'Name')) + '</a></td></tr>';
iDone++;
}
}
if (iDone)
return s + '<tr><td height=15></td></tr></table>';
else
return '';
}
</SCRIPT>
</PUBLIC:COMPONENT>