home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Minami 79
/
MINAMI79.iso
/
Extra
/
MPSetup.exe
/
1033
/
RCDATA
/
CABINET
/
wmploc.DLL
/
HTML
/
FLYMOREHEADLINES.HTC
< prev
next >
Wrap
Text File
|
2002-12-14
|
3KB
|
93 lines
<PUBLIC:COMPONENT lightWeight=true>
<PUBLIC:METHOD NAME="reload" />
<PUBLIC:METHOD NAME="colorChange" />
<PUBLIC:ATTACH EVENT="onresize" ONEVENT="resize()" />
<PUBLIC:METHOD NAME="noData" />
<PUBLIC:METHOD NAME="switchFly" />
<SCRIPT LANGUAGE="JScript">
var oDL;
function reload(sParam)
{
oDL = element.document.all('dataload');
oDL.getDataAsyncHeadlineList('info_news', loadData);
var s = '<table width=90% class=flypane border=0 cellpadding=0 cellspacing=0>'
s += '<tr><td class=artist style="color:white" valign=top>' + L_MoreHeadlinesTitle_Text + '</td><td valign=top align=right>' + GetFlyClose('flymoreheadlines') + '</td></tr>';
s += '<tr><td colspan=2 height=20></td></tr>';
s += '<tr><td colspan=2 class=text style="color:white" id=headlineListData>' + GetLoading('white') + '</td></tr>';
element.innerHTML = s + '</table>';
}
function resize()
{
var el = element.document.all(uniqueID + 'resize');
if (el)
el.style.height = Math.max(element.document.body.clientHeight - getFlyElementTop('headlineListData', 10), 10);
}
function loadData(oXML)
{
var s, sHTML;
sHTML = getHeadlineList(oDL, oXML);
if (sHTML.length)
{
s = '<div class=text id="' + uniqueID + 'resize" style="overflow-y: scroll; width: 368; height: ' + (element.document.body.clientHeight - getFlyElementTop('headlineListData', 10)) + '">';
s += sHTML + '</div>';
}
else
{
oDL.setNoData(L_NoHeadlinesError_Text, 'images\\artist.gif', true);
return;
}
try
{
element.document.all('headlineListData').innerHTML = s;
} catch(e)
{
}
}
function getHeadlineList(oDL, oXML)
{
var s = '<table border=0 cellpadding=0 cellspacing=0>', i;
var aHeadlines = oXML.getElementsByTagName('Headline');
if (aHeadlines.length)
{
for (i = 0; i < aHeadlines.length; i++)
s += getOneHeadline(oDL, aHeadlines[i], i);
s += '</table>';
}
else
s = '';
return s;
}
function getOneHeadline(oDL, oHeadline, i)
{
var s = '<tr><td ><A href="X" class=text style="color:white" onclick="trackIt(\'LTT' + getClickIndex(i) + '\'); return ' + element.uniqueID + '.switchFly(\'' + fixText(oDL.getNodeText(oHeadline, 'article_id')) + '\');">' + fixText(oDL.getNodeText(oHeadline, 'Text'));
s += '</a></td></tr><tr><td height=10></td></tr>';
return s;
}
function switchFly(sID)
{
doflyout(flyheadline, sID);
return false;
}
function colorChange()
{
element.style.backgroundColor = getCurrentColor();
}
function noData()
{
element.document.all('headlineListData').innerHTML = sHTML;
}
</SCRIPT>
</PUBLIC:COMPONENT>