home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOKAN 55
/
DOKAN55.ISO
/
Extra
/
MPSetup.exe
/
1033
/
RCDATA
/
CABINET
/
wmploc.DLL
/
HTML
/
ARTIST.HTC
< prev
next >
Wrap
Text File
|
2002-12-14
|
3KB
|
95 lines
<PUBLIC:COMPONENT lightWeight=true>
<PUBLIC:METHOD NAME="reload" />
<PUBLIC:METHOD NAME="updateMedia" />
<PUBLIC:METHOD NAME="noData" />
<SCRIPT LANGUAGE="JScript">
function reload() { load(); }
var oDL;
function load()
{
oDL = element.document.all('dataload');
oDL.getDataAsync('info_artistinfo', loadData);
var s = '<table width=368 class=pane border=0 cellpadding=0 cellspacing=0>';
s += '<tr><td class=artist>' + L_ArtistInfoTitle_Text + '</td></tr>';
s += '<tr><td>' + GetArtistTOC(0) + '</td></tr>';
s += '<tr><td height=14 class=text id=artistHeader></td></tr>';
s += '<tr><td height=10></td></tr>';
s += '<tr><td valign=top height=40>' + GetButtons(-1, '', 2, L_BiographyTitle_Text) + '</td></tr>';
s += '<tr><td id=artistInfoArea>' + GetLoading('black') + '</td></tr></table>';
element.innerHTML = s;
SetArtistAlbumHeader('artistHeader', true, true, false);
}
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=180 valign=top>' + GetLeftColumn(oDL, oXML) + '</td><td width=8></td><td width=180 valign=top>' + GetRightColumn(oDL, oXML) + '</td></tr>';
else
{
oDL.setNoData(L_CantFindArtistError_Text, 'images\\artist.gif', true);
return;
}
try
{
element.document.all('artistInfoArea').innerHTML = s;
element.document.all('artistArtistName').innerText = element.document.all('artistNameSaved').innerText;
} catch(e)
{
}
}
function noData(sHTML)
{
element.document.all('artistInfoArea').innerHTML = sHTML;
}
function GetLeftColumn(oDL, oXML)
{
var s = '<table width=100% border=0 cellpadding=0 cellspacing=0>', sArt;
sArt = fixText(oDL.getNodeText(oXML, 'Art'));
if (!sArt.length)
sArt = 'images\\artist.gif';
else
sArt = 'http://services.windowsmedia.com/artistpic/' + sArt + '.jpg';
s += '<tr><td valign=top><img width=150 border=0 src="' + sArt + '"></td></tr>';
return s + '</table>';
}
function GetRightColumn(oDL, oXML)
{
var s = '<table width=100% border=0 cellpadding=0 cellspacing=0>', sBornInfo;
s += '<tr><td class=textGray>' + L_ArtistNameLabel_Text + '</td></tr>';
s += '<tr><td id=artistArtistName class=text></td></tr>';
sBornInfo = fixText(oDL.getNodeText(oXML, 'bornDate')) + ' ' + fixText(oDL.getNodeText(oXML, 'bornPlace'));
if (sBornInfo.length > 1)
{
s += '<tr><td height=5></td></tr>';
s += '<tr><td class=textGray>' + L_ArtistBornLabel_Text + '</td></tr>';
s += '<tr><td class=text>' + sBornInfo + '</td></tr>';
}
s += '<tr><td height=15></td></tr>';
var sWeb = oDL.getUrl(oXML);
if (sWeb.length)
s += '<tr><td>' + getArtistWebsite(sWeb) + '</td></tr>';
return s + '</table>';
}
function updateMedia(media)
{
load();
}
</SCRIPT>
</PUBLIC:COMPONENT>