您的位置:首页 > 网络编程 > XML

使用JS+XML(数据岛)实现分页)

日期:2006-07-06 12:33:22 点击: 来自: 作者:
<xml id="users">
<userGroup>
  <user>
    <userid>user 1</userid>
    <name>name 1</name>
  </user>
  <user>
    <userid>user 2</userid>
    <name>name 2</name>
  </user>
  <user>
    <userid>user 3</userid>
    <name>name 3</name>
  </user>
  <user>
    <userid>user 4</userid>
    <name>name 4</name>
  </user>
  <user>
    <userid>user 5</userid>
    <name>name 5</name>
  </user>
  <user>
    <userid>user 6</userid>
    <name>name 7</name>
  </user>
  <user>
    <userid>user 7</userid>
    <name>name 7</name>
  </user>
  <user>
    <userid>user 8</userid>
    <name>name 8</name>
  </user>
  <user>
    <userid>user 9</userid>
    <name>name 9</name>
  </user>
</userGroup>
</xml>
<table id="datatable" datasrc="#users" DATAPAGESIZE="3" width="400" border="1">
<tr>
    <td><span datafld="userid"></span></td>
    <td><span datafld="name"></span></td>
</tr>
</table>
<button onclick="document.all.datatable.previousPage()">Previous Page</button>
<button onclick="document.all.datatable.nextPage()">Next Page</button>
More..素材图片 Picture Navigation
相关链接 Correlation Link
XML热门 Class Hot
XML推荐 Class Commend
版权所有:中国网站资源 2005- 未经授权禁止复制或建立镜像 This Site Tech:XHTML+DIV+CSS+Javascript
CopyRight ® 2005- www.chinaddv.com online services. all rights reserved. ICP06016627
Optimized to 1024x768 to Firefox,Netscape,Opera,MS-IE6+.