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
/
FLYHEADLINE.HTC
< prev
next >
Wrap
Text File
|
2002-08-19
|
2KB
|
48 lines
<PUBLIC:COMPONENT lightWeight=true>
<PUBLIC:METHOD NAME="reload" />
<SCRIPT LANGUAGE="JScript">
var oXML, oDL;
function reload(sParam)
{
oDL = element.document.all('dataload');
oXML = oDL.getDataAsync2('info_newsarticle', loadData, '&article_id=' + sParam);
var s = '<table width=368 class=flypane border=0 cellpadding=0 cellspacing=0>'
s += '<tr><td class=artist style="color:white" valign=top>' + L_HeadlinesTitle_Text + '</td><td valign=top align=right>' + GetFlyClose('flyheadline') + '</td></tr>';
s += '<tr><td><table border=0 cellpadding=0 cellspacing=0><tr><td class=title style="color:white" id=headlineTitleText></td><td align=right id=headlineLogo></td></tr></table></td></tr>';
s += '<tr><td colspan=2 height=20></td></tr>';
s += '<tr><td colspan=2 id=headlineData></td></tr>';
element.innerHTML = s + '</table>';
}
function loadData()
{
if (oXML)
{
if (oXML.readyState == 4)
{
var s, sTemp;
s = '<div class=text style="overflow-y: scroll; width: 368; height: expression(Math.max(180, document.body.clientHeight - 82))">';
s += '<table border=0 cellpadding=0 cellspacing=0>';
s += '<tr><td valign=top class=text style="color:white">' + fixText(oDL.getNodeText(oXML, 'Abstract')) + '</td></tr>';
s += '<tr><td height=20></td></tr>';
s += '<tr><td valign=top align=right><A ' + getHrefText(oDL.getNodeText(oXML, 'URL'), false, '', '') + ' class=text style="color:white">' + L_ReadMoreHeadlinesLink_Text + '</a></td></tr>';
s += '</table></div>';
try
{
element.document.all('headlineData').innerHTML = s;
element.document.all('headlineTitleText').innerText = oDL.getNodeText(oXML, 'Title');
element.document.all('headlineLogo').innerHTML = '<IMG border=0 src="' + oDL.getNodeText(oXML, 'SourceLogo') + '">';
} catch(e)
{
}
}
}
}
</SCRIPT>
</PUBLIC:COMPONENT>