<strong><font color=#008000>代码如下: <br _fckxhtmljob="1"></font></strong><textarea id=Angelia onmouseover=this.select(); style="WIDTH: 90%" rows=12 _fckxhtmljob="1"><?xml version="1.0" encoding="gb2312" ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>xml分页显示</TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<style type="text/css">
</style>
<link rel="stylesheet" type="text/css" href=".css">
<SCRIPT LANGUAGE="JavaScript">
<!--
function view(direction){
//var recordset = blueidea.recordset;
switch(direction){
case "next":
blueidea.nextPage();//如果是创建ADO对象,此处为recordset.moveNext();
break;
case "last":
blueidea.lastPage();//如果是创建ADO对象,此处为recordset.moveLast();
break;
case "previous":
blueidea.previousPage();//如果是创建ADO对象,此处为recordset.movePrevious();
break;
case "first":
blueidea.firstPage();//如果是创建ADO对象,此处为recordset.moveFirst();
break;
}
//if (recordset.eof){
//recordset.movePrevious();
//alert ("这是该文档的最后一条记录了")
//}
//if (recordset.bof){
//recordset.moveNext();
//alert ("这是该文档的头一条纪录,不能再向前了")
//}
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<xml id="list">
<BlueIdea>
<team>
<blue_ID>1</blue_ID>
<blue_name>车仔</blue_name>
<blue_text>一个简单的排序</blue_text>
<blue_time>2002-1-11 17:35:33</blue_time>
<blue_class>XML专题</blue_class>
</team>
<team>
<blue_ID>2</blue_ID>
<blue_name>flyingbird</blue_name>
<blue_text>嫁给你,是要你疼的</blue_text>
<blue_time>2001-09-06 12:45:51</blue_time>
<blue_class>灌水精华</blue_class>
</team>
<team>
<blue_ID>3</blue_ID>
<blue_name>苛子</blue_name>
<blue_text>正则表达式在UBB论坛中的应用</blue_text>
<blue_time>2001-11-23 21:02:16</blue_time>
<blue_class>Web 编程精华</blue_class>
</team>
<team>
<blue_ID>4</blue_ID>
<blue_name>太乙郎</blue_name>
<blue_text>年末经典分舵聚会完全手册 v0.1</blue_text>
<blue_time>2000-12-08 10:22:48</blue_time>
<blue_class>论坛灌水区</blue_class>
</team>
<team>
<blue_ID>5</blue_ID>
<blue_name>mmkk</blue_name>
<blue_text>Asp错误信息总汇</blue_text>
<blue_time>2001-10-13 16:39:05</blue_time>
<blue_class>javascript脚本</blue_class>
</team>
</BlueIdea>
</xml>
<p><br><br>
<TABLE width="98%" align=center cellpadding="3" cellspacing="1" bgcolor="#333333" DATASRC="#list" DATAPAGESIZE="2" ID="blueidea">
<THEAD bgcolor="#FF6347">
<TH>编号</TH>
<TH>姓名</TH>
<TH>主题</TH>
<TH>发表时间</TH>
<TH>归类</TH>
</THEAD>
<TR BGCOLOR="#FFFFFF">
<TD align="center"><div DATAFLD="blue_ID"></div></TD>
<TD align="center"><div DATAFLD="blue_name"></div></TD>
<TD align="center"><div DATAFLD="blue_text"></div></TD>
<TD align="center"><div DATAFLD="blue_time"></div></TD>
<TD align="center"><div DATAFLD="blue_class"></div></TD>
</TR>
</TABLE>
<p><a href="#" onclick="view('first')">首页</a>&nbsp;<a href="#" onclick="view('previous')">上一页</a>&nbsp;
<a href="#" onclick="view('next')">下一页</a>&nbsp;<a href="#" onclick="view('last')">尾页</a></p>
</BODY>
</HTML>
</textarea><br _fckxhtmljob="1"><input onclick="runEx('Angelia')" type=button value=运行代码 _fckxhtmljob="1"> <input onclick="CopyCode(FindObj('Angelia'));" type=button value=拷贝代码 _fckxhtmljob="1"> <input onclick=SaveCode(Angelia); type=button value=保存代码 _fckxhtmljob="1">[Ctrl+A 全选 提示:你可先修改部分代码,再点运行代码]