• XML分页


    <strong><font color=#008000>代码如下: <br _fckxhtmljob="1"></font></strong><textarea id=Angelia onmouseover=this.select(); style="WIDTH: 90%" rows=12 _fckxhtmljob="1">&lt;?xml version="1.0" encoding="gb2312" ?&gt;
    &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt;
    &lt;HTML&gt;
    &lt;HEAD&gt;
    &lt;TITLE&gt;xml分页显示&lt;/TITLE&gt;
    &lt;META NAME="Generator" CONTENT="EditPlus"&gt;
    &lt;META NAME="Author" CONTENT=""&gt;
    &lt;META NAME="Keywords" CONTENT=""&gt;
    &lt;META NAME="Description" CONTENT=""&gt;
    &lt;META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312"&gt;
    &lt;style type="text/css"&gt;
    &lt;/style&gt;
    &lt;link rel="stylesheet" type="text/css" href=".css"&gt;
    &lt;SCRIPT LANGUAGE="JavaScript"&gt;
    &lt;!--
    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 ("这是该文档的头一条纪录,不能再向前了")
    //}
    }
    //--&gt;
    &lt;/SCRIPT&gt;
    &lt;/HEAD&gt;
    &lt;BODY&gt;
    &lt;xml id="list"&gt;
    &lt;BlueIdea&gt;
    &lt;team&gt;
    &lt;blue_ID&gt;1&lt;/blue_ID&gt;
    &lt;blue_name&gt;车仔&lt;/blue_name&gt;
    &lt;blue_text&gt;一个简单的排序&lt;/blue_text&gt;
    &lt;blue_time&gt;2002-1-11 17:35:33&lt;/blue_time&gt;
    &lt;blue_class&gt;XML专题&lt;/blue_class&gt;
    &lt;/team&gt;
    &lt;team&gt;
    &lt;blue_ID&gt;2&lt;/blue_ID&gt;
    &lt;blue_name&gt;flyingbird&lt;/blue_name&gt;
    &lt;blue_text&gt;嫁给你,是要你疼的&lt;/blue_text&gt;
    &lt;blue_time&gt;2001-09-06 12:45:51&lt;/blue_time&gt;
    &lt;blue_class&gt;灌水精华&lt;/blue_class&gt;
    &lt;/team&gt;
    &lt;team&gt;
    &lt;blue_ID&gt;3&lt;/blue_ID&gt;
    &lt;blue_name&gt;苛子&lt;/blue_name&gt;
    &lt;blue_text&gt;正则表达式在UBB论坛中的应用&lt;/blue_text&gt;
    &lt;blue_time&gt;2001-11-23 21:02:16&lt;/blue_time&gt;
    &lt;blue_class&gt;Web 编程精华&lt;/blue_class&gt;
    &lt;/team&gt;
    &lt;team&gt;
    &lt;blue_ID&gt;4&lt;/blue_ID&gt;
    &lt;blue_name&gt;太乙郎&lt;/blue_name&gt;
    &lt;blue_text&gt;年末经典分舵聚会完全手册 v0.1&lt;/blue_text&gt;
    &lt;blue_time&gt;2000-12-08 10:22:48&lt;/blue_time&gt;
    &lt;blue_class&gt;论坛灌水区&lt;/blue_class&gt;
    &lt;/team&gt;
    &lt;team&gt;
    &lt;blue_ID&gt;5&lt;/blue_ID&gt;
    &lt;blue_name&gt;mmkk&lt;/blue_name&gt;
    &lt;blue_text&gt;Asp错误信息总汇&lt;/blue_text&gt;
    &lt;blue_time&gt;2001-10-13 16:39:05&lt;/blue_time&gt;
    &lt;blue_class&gt;javascript脚本&lt;/blue_class&gt;
    &lt;/team&gt;
    &lt;/BlueIdea&gt;
    &lt;/xml&gt;
    &lt;p&gt;&lt;br&gt;&lt;br&gt;
    &lt;TABLE width="98%" align=center cellpadding="3" cellspacing="1" bgcolor="#333333" DATASRC="#list" DATAPAGESIZE="2" ID="blueidea"&gt;
    &lt;THEAD bgcolor="#FF6347"&gt;
    &lt;TH&gt;编号&lt;/TH&gt;
    &lt;TH&gt;姓名&lt;/TH&gt;
    &lt;TH&gt;主题&lt;/TH&gt;
    &lt;TH&gt;发表时间&lt;/TH&gt;
    &lt;TH&gt;归类&lt;/TH&gt;
    &lt;/THEAD&gt;
    &lt;TR BGCOLOR="#FFFFFF"&gt;
    &lt;TD align="center"&gt;&lt;div  DATAFLD="blue_ID"&gt;&lt;/div&gt;&lt;/TD&gt;
    &lt;TD align="center"&gt;&lt;div  DATAFLD="blue_name"&gt;&lt;/div&gt;&lt;/TD&gt;
    &lt;TD align="center"&gt;&lt;div  DATAFLD="blue_text"&gt;&lt;/div&gt;&lt;/TD&gt;
    &lt;TD align="center"&gt;&lt;div  DATAFLD="blue_time"&gt;&lt;/div&gt;&lt;/TD&gt;
    &lt;TD align="center"&gt;&lt;div  DATAFLD="blue_class"&gt;&lt;/div&gt;&lt;/TD&gt;
    &lt;/TR&gt;
    &lt;/TABLE&gt;
    &lt;p&gt;&lt;a href="#" onclick="view('first')"&gt;首页&lt;/a&gt;&amp;nbsp;&lt;a href="#" onclick="view('previous')"&gt;上一页&lt;/a&gt;&amp;nbsp;
    &lt;a href="#" onclick="view('next')"&gt;下一页&lt;/a&gt;&amp;nbsp;&lt;a href="#" onclick="view('last')"&gt;尾页&lt;/a&gt;&lt;/p&gt;
    &lt;/BODY&gt;
    &lt;/HTML&gt;
    </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 全选 提示:你可先修改部分代码,再点运行代码]&nbsp;&nbsp;
  • 相关阅读:
    Notes on <High Performance MySQL> Ch5: Advanced MySQL Feature
    Differences between DATA_OBJECT_ID and OBJECT_ID
    [转载]Oracle Character set – Everything a New oracle DBA needs to know
    Write CLOB into HTML file
    Windows bat RMDIR command
    ORA01795: maximum number of expressions in a list is 1000
    Preliminary MySQL Study Notes
    Notes on <High Performance MySQL> Ch13: MySQL Server Status
    How To Convert Number into Words using Oracle SQL Query
    "Execute Immediate" in Java
  • 原文地址:https://www.cnblogs.com/winner/p/602342.html
Copyright © 2020-2023  润新知