//JavaScript
function binNew(index)
{
var List = new Array();
목록 = showPage(index);
var listul = "
"
for( var i=0 ; i < List.length ; i )
{
//document.getElementById("listTb").innerHTML = List[i] "" ;
listul = "- " 목록[i] "
";
}
listul = "
";
document.getElementById("listTb").innerHTML = listul;
document.getElementById("refer").innerHTML = "";
var tc = rtnPageCount();
for( var i=1 ; i<=tc ; i )
{
//
document.getElementById("refer").innerHTML = "
" 나는 "
";
}
}
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async = false;
xmlDoc.resolveExternals = false;
xmlDoc.load("News.xml");
// 返回固 정 ID 적신
function findNew(newid)
{
var Domelement = xmlDoc.documentElement;
경고(Domelement);
}
// 返回分页后의 새로운 闻标题连接
var pageSize = 40;
function showPage(pageIndex)
{
var Alltt = new Array();
Alltt = AlltitleLink();
var rtLinks = new Array();
/*未完成分*/
try
{
for( var i=0 ; i{
titles[j] = "< a herf="../News.html?id=" (i 1) "">" allNews[i].getArrtibute("name") "";
j ;
}
}
타이틀 반환;
}
//发回所有新闻 标题的超连接
function AlltitleLink()
{
var allttLink = new Array();
var NewRoot = xmlDoc.documentElement ;
var allNews = NewRoot.childNodes;
for( var i=0 ; i
{
var context = allNews[i];
allttLink[i] = "" context.getAttribute("time") " : " context.getAttribute("name") "";
}
모두ttLink 반환;
}