清醒时做事,糊涂时读书,大怒时睡觉,无聊时关注图老师为大家准备的精彩内容。下面为大家推荐javascript分页,无聊中的都看过来。
【 tulaoshi.com - Web开发 】
xml id="users"
userGroup
user id="1"
useriduser 1/userid
namename 1/name
/user
user id="2"
useriduser 2/userid
namename 2/name
/user
user id="3"
useriduser 3/userid
namename 3/name
/user
user id="4"
useriduser 4/userid
namename 4/name
/user
user id="5"
useriduser 5/userid
namename 5/name
/user
user id="6"
useriduser 6/userid
namename 7/name
/user
user id="7"
useriduser 7/userid
namename 7/name
/user
user id="8"
useriduser 8/userid
namename 8/name
/user
user id="9"
useriduser 9/userid
namename 9/name
/user
/userGroup
/xml
table id="datatable" datasrc="#users" DATAPAGESIZE="3" width="400" border="1"
thead
th数据 userid/th
th数据 name/th
th属性 id/th
/thead
tr
tdspan datafld="userid"/span/td
tdspan datafld="name"/span/td
tdspan datafld="id"/span/td
/tr
/table
button onclick="document.all.datatable.previousPage()"Previous Page/button
button onclick="document.all.datatable.nextPage()"Next Page/button
直接复制成.htm就行
如果你的xml在外部,则要引用xml
如(
(本文来源于图老师网站,更多请访问http://www.tulaoshi.com/webkaifa/)xml id="users" src="user.xml"/xml如果你要添加超链接在(td)文本中,则使用
a datafld="useid" onmouseover="if(this.changged == null) { this.href =''###.aspx?''+this.href; this.changed=true}"span datafld="name"/sapn/a
(本文来源于图老师网站,更多请访问http://www.tulaoshi.com/webkaifa/)来源:http://www.tulaoshi.com/n/20160219/1610176.html
看过《javascript分页》的人还看了以下文章 更多>>