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
/
ARTIST.HTC
< prev
next >
Wrap
Text File
|
2002-08-19
|
3KB
|
86 lines
<PUBLIC:COMPONENT lightWeight=true>
<PUBLIC:METHOD NAME="reload" />
<PUBLIC:METHOD NAME="updateMedia" />
<SCRIPT LANGUAGE="JScript">
function reload() { load(); }
var oXML, oDL;
function load()
{
oDL = element.document.all('dataload');
oXML = 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=24></td></tr>';
s += '<tr><td align=right valign=top height=40><a href="X" onclick="return pageSlide(2)" alt="' + L_BiographyTitle_Text + '" style="behavior: url(button.htc)" direction=0></a></td></tr>';
s += '<tr><td id=artistInfoArea></td></tr></table>';
element.innerHTML = s;
}
function loadData()
{
if (oXML)
{
if (oXML.readyState == 4)
{
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
s += '<tr><td width=368 height=100% valign=top>' + getNoDataInfo('images\\artist.gif', L_CantFindArtistError_Text) + '</td></tr>';
try
{
element.document.all('artistInfoArea').innerHTML = s;
} catch(e)
{
}
}
}
}
function GetLeftColumn(oDL, oXML)
{
var s = '<table width=100% border=0 cellpadding=0 cellspacing=0>', sArt;
sArt = 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>';
s += '<tr><td class=textGray>' + L_ArtistNameLabel_Text + '</td></tr>';
s += '<tr><td class=text>' + element.document.all('artistNameSaved').innerText + '</td></tr><tr><td height=5></td></tr>';
s += '<tr><td class=textGray>' + L_ArtistBornLabel_Text + '</td></tr>';
s += '<tr><td class=text>' + fixText(oDL.getNodeText(oXML, 'bornDate')) + ' ' + fixText(oDL.getNodeText(oXML, 'bornPlace')) + '</td></tr><tr><td height=15></td></tr>';
var sWeb = oDL.getNodeText(oXML, 'websiteURL');
if (sWeb.length)
{
s += '<tr><td class=textGray>' + L_ArtistWebsiteLabel_Text + '</td></tr>';
s += '<tr><td><A ' + getHrefText('http://' + sWeb, false, '', '') + ' class=textGray>' + fixText(sWeb) + '</a></td></tr>';
}
return s + '</table>';
}
function updateMedia(media)
{
load();
}
</SCRIPT>
</PUBLIC:COMPONENT>