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
/
REVIEW.HTC
< prev
next >
Wrap
Text File
|
2002-08-19
|
2KB
|
62 lines
<PUBLIC:COMPONENT lightWeight=true>
<PUBLIC:METHOD NAME="reload" />
<PUBLIC:METHOD NAME="updateMedia" />
<SCRIPT LANGUAGE="JScript">
function reload() { load(); }
function updateMedia(media)
{
load();
if (media)
element.document.all('reviewAlbumName').innerHTML = fixText(media.getItemInfo('WM/AlbumTitle'));
}
var oXML, 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><td class=smText align=right>' + L_ProvidedByLabel_Text + ' <IMG border=0 align=absmiddle src=images\\amg-logo.gif></td></tr></table></td></tr>';
s += '<tr><td height=14><table width=368 border=0 cellpadding=0 cellspacing=0><tr><td height=14 class=textGray>' + element.document.all('artistNameSaved').innerText + ' / <span id=reviewAlbumName class=textGray></span></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><a href="X" onclick="return pageSlide(8)" alt="' + L_AlbumDetailsTitle_Text + '" style="behavior: url(button.htc)" direction=1></a></td></tr>';
s += '<tr><td id=albumReview>';
s += '</td></tr></table>';
element.innerHTML = s;
oXML = oDL.getDataAsync('info_albumreview', loadData);
}
function loadData()
{
if (oXML)
{
if (oXML.readyState == 4)
{
oDL.saveIDs(oXML);
var review = oDL.getNodeText(oXML, 'Review'), s, iRating;
if (review.length > 0)
s = '<div class=text style="overflow-y: scroll; width: 368; height: expression(Math.max(144, document.body.clientHeight - 176))">' + review + '</div>';
else
s = getNoDataInfo('images\\album-review.gif', L_NoReviewForAlbumError_Text);
try
{
element.document.all('albumReview').innerHTML = s + '</table>';
iRating = parseInt(oDL.getNodeText(oXML, 'Rating'));
iRating = Math.floor((iRating + 1) / 2);
var el = element.document.all('reviewAMGRating');
el.rating = iRating;
} catch(e)
{
}
}
}
}
</SCRIPT>
</PUBLIC:COMPONENT>