-- 作者:math_xiaoxin
-- 发布时间:7/9/2004 10:54:00 AM
-- 紧急求助, 关于显示数据。
完整代码如下: <html> <head> <title>data island</title> <script language = "vbscript"> <!--判断当前的指标--> sub button1_onclick() if dataisland.recordset.absoluteposition = dataisland.recordset.recordcount then dataisland.recordset.movefirst() else dataisland.recordset.movenext() end if end sub <!--判断当前的指标位置--> sub button2_onclick() if dataisland.recordset.absoluteposition = 1 then dataisland.recordset.movelast() else dataisland.recordset.moveprevious() end if end sub </script> </head> <body> <div> 书名:<span datasrc = "#dataisland" datafld = "bookname"></span> <br> 作者: <span datasrc = "#dataisland" datafld = "author"></span> <br> 人气:<span datasrc = "#dataisland" datafld = "grade"></span> <br> 链接: <span datasrc = "#dataisland" datafld = "link"></span> <br> </div> <xml id = "dataisland"> <comicbook > <book> <bookname >非常家庭</bookname> <author>被条子</author> <grade> 3 </grade> <link>link2</link> </book1> <book> <bookname>棒球小子</bookname> <author>安达充</author> <grade> 7</grade> <link>link3</link> </book> <book> <bookname >朗克建新</bookname> <author>合约深红</author> <grade> 9</grade> <link>2</link> </book> </comicbook> </xml> <input type = "button" name = "button1" value = "next" > <input type = "button" name = "button2" value = "previous"> </body> </html> 运行结果如下:
此主题相关图片如下:
|