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
/
PHOTOS.HTC
< prev
next >
Wrap
Text File
|
2002-08-19
|
2KB
|
77 lines
<PUBLIC:COMPONENT lightWeight=true>
<PUBLIC:ATTACH EVENT="oncontentready" ONEVENT="load()" />
<PUBLIC:METHOD NAME="reload" />
<PUBLIC:METHOD NAME="updateMedia" />
<PUBLIC:METHOD NAME="edit" />
<SCRIPT LANGUAGE="JScript">
function reload() { load(); }
function load()
{
var s = '<table width=368 class=pane border=0 cellpadding=0 cellspacing=0>';
s += '<tr><td class=artist>' + L_PhotographyTitle_Text + '</td></tr>';
s += '<tr><td height=16><table width=368 border=0 cellpadding=0 cellspacing=0><td>' + GetFileTOC(1) + '</td><td class=textTitle align=right onbuttonclick="return oCurrentPage.edit();" style="behavior:url(barbutton.htc)" text="' + L_EditPhotosButton_Text + '"></td></tr></table></td></tr>';
s += '<tr><td height=24></td></tr>';
s += '<tr><td valign=top height=40><a href="X" onclick="return pageSlide(14)" alt="' + L_FileInfoTitle_Text + '" style="behavior: url(button.htc)" direction=1></a></td></tr>';
s += '<tr><td width=368 height=100% valign=top><div class=text id=photoInfoText style="overflow-y: scroll; width: 368; height: expression(Math.max(144, document.body.clientHeight - 176))"></div></td></tr>';
element.innerHTML = s + '</table>';
}
function edit()
{
if (window.external.appColorLight)
window.external.AdvancedEditDialog();
updateUI();
return false;
}
function updateUI()
{
try
{
var p = element.document.all('player');
var m = p.currentMedia;
updateMedia(m);
} catch(e)
{
}
}
function GetImageLayout(o)
{
var s = '<tr><td valign=top>';
s += '<table border=0 cellpadding=0 cellspacing=0>';
s += '<tr><td valign=top><img border=0 src="' + o.URL + '"></td>'
s += '<td width=8></td>';
s += '<td valign=top class=text>' + o.description + '</td>';
s += '</tr></table></td></tr>';
return s;
}
function updateMedia(media)
{
var s = '<table border=0 cellpadding=0 cellspacing=0>', i, c, o, iMid;
if (media)
{
s += '<tr><td width=368 valign=top><table border=0 cellpadding=0 cellspacing=0>';
c = media.getAttributeCountByType('WM/Picture', '');
for (i = 0; i < c; i++)
{
o = media.getItemInfoByType('WM/Picture', '', i);
s += GetImageLayout(o);
}
s += '</table></td></tr>';
}
element.document.all('photoInfoText').innerHTML = s + '</table>';
}
</SCRIPT>
</PUBLIC:COMPONENT>