home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Minami 79
/
MINAMI79.iso
/
Extra
/
MPSetup.exe
/
1033
/
RCDATA
/
CABINET
/
wmploc.DLL
/
HTML
/
REVIEW.HTC
< prev
next >
Wrap
Text File
|
2002-12-14
|
3KB
|
78 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)
{
load();
if (media)
element.document.all('reviewAlbumName').innerText = element.document.all('albumNameSaved').innerText;
}
var oDL;
function load()
{
oDL = element.document.all('dataload');
var s = '<table width=368 class=pane border=0 cellpadding=0 cellspacing=0>';
s += '<tr><td class=artist>' + L_AlbumReviewTitle_Text + '</td></tr>';
s += '<tr><td><table width=368 border=0 cellpadding=0 cellspacing=0><tr><td class=textTitle>' + GetAlbumTOC(1) + '</td></tr></table></td></tr>';
s += '<tr><td height=14><table width=368 border=0 cellpadding=0 cellspacing=0><tr><td height=14 class=text id=reviewHeader></td><td width=10></td>';
s += '<td align=right valign=top><span id=reviewAMGRating allowChange=0 style="behavior:url(rating.htc)" rating="0" emptyImage="images\\outline_star_amg.gif" fullImage="images\\full_star_amg.gif"></span></td></tr></table></td></tr>';
s += '<tr><td height=10></td></tr>';
s += '<tr><td valign=top height=40>' + GetButtons(8, L_AlbumDetailsTitle_Text, -1, '') + '</td></tr>';
s += '<tr><td id=albumReview>' + GetLoading('black');
s += '</td></tr></table>';
element.innerHTML = s;
oDL.getDataAsync('info_albumreview', loadData);
SetArtistAlbumHeader('reviewHeader', true, true, false);
}
function resize()
{
var el = element.document.all(uniqueID + 'resize');
if (el)
el.style.height = Math.max(element.document.body.clientHeight - getElementTop('albumReview'), 10);
}
function loadData(oXML)
{
oDL.saveIDs(oXML);
var review = oDL.getNodeText(oXML, 'Review'), s, iRating;
review = review.replace(/<I>/g, '');
review = review.replace(/<\/I>/g, '');
review = review.replace(/<P>/g, '\r\n');
if (review.length > 0)
s = '<div class=text id="' + uniqueID + 'resize" style="overflow-y: scroll; width: 368; height: ' + (element.document.body.clientHeight - getElementTop('albumReview')) + '"></div>';
else
{
oDL.setNoData(L_NoReviewForAlbumError_Text, 'images\\album-review.gif', true);
return;
}
try
{
element.document.all('albumReview').innerHTML = s + '</table>';
element.document.all(uniqueID + 'resize').innerText = review;
iRating = parseInt(oDL.getNodeText(oXML, 'Rating'));
iRating = Math.floor((iRating + 1) / 2);
var el = element.document.all('reviewAMGRating');
el.rating = iRating;
} catch(e)
{
}
}
function noData(sHTML)
{
element.document.all('albumReview').innerHTML = sHTML;
}
</SCRIPT>
</PUBLIC:COMPONENT>