home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Minami 79
/
MINAMI79.iso
/
Extra
/
MPSetup.exe
/
1033
/
RCDATA
/
CABINET
/
wmploc.DLL
/
HTML
/
BIO.HTC
< prev
next >
Wrap
Text File
|
2002-12-14
|
2KB
|
74 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) { reload(); }
var oDL;
function load()
{
oDL = element.document.all('dataload');
oDL.getDataAsync('info_artistbio', loadData);
var s = '<table width=368 class=pane border=0 cellpadding=0 cellspacing=0>';
s += '<tr><td class=artist>' + L_BiographyTitle_Text + '</td></tr>';
s += '<tr><td><table width=368 border=0 cellpadding=0 cellspacing=0><tr><td class=textTitle>' + GetArtistTOC(1) + '</td></tr></table></td></tr>';
s += '<tr><td height=14 class=text id=bioHeader></td></tr>';
s += '<tr><td height=10></td></tr>';
s += '<tr><td valign=top height=40>' + GetButtons(1, L_ArtistInfoTitle_Text, 3, L_LatestReleasesTitle_Text) + '</td></tr>';
s += '<tr><td id=artistBioArea>' + GetLoading('black');
s += '</td></tr></table>';
element.innerHTML = s;
SetArtistAlbumHeader('bioHeader', true, true, false);
}
function resize()
{
var el = element.document.all(uniqueID + 'resize');
if (el)
el.style.height = Math.max(element.document.body.clientHeight - getElementTop('artistBioArea'), 10);
}
function loadData(oXML)
{
var s = '<table border=0 cellpadding=0 cellspacing=0>';
var bio = oDL.getNodeText(oXML, 'biography');
bio = bio.replace(/<I>/g, '');
bio = bio.replace(/<\/I>/g, '');
bio = bio.replace(/<P>/g, '\r\n');
if (bio.length > 0)
s += '<tr><td width=368 height=100% valign=top><div class=text id="' + uniqueID + 'resize" style="overflow-y: scroll; width: 368; height: ' + (element.document.body.clientHeight - getElementTop('artistBioArea')) + '"></div></td></tr>';
else if (oDL.getNodeText(oXML, 'p_id').length)
{
oDL.setNoData(L_NoBioForArtistError_Text, 'images\\artist.gif', false);
return;
}
else
{
oDL.setNoData(L_CantFindArtistError_Text, 'images\\artist.gif', true);
return;
}
try
{
element.document.all('artistBioArea').innerHTML = s + '</table>';
element.document.all(uniqueID + 'resize').innerText = bio;
} catch(e)
{
}
}
function noData(sHTML)
{
element.document.all('artistBioArea').innerHTML = sHTML;
}
</SCRIPT>
</PUBLIC:COMPONENT>