如何在页面中快捷地添加翻页按钮?
发布时间:2010-06-26 12:33:00
如何在页面中快捷地添加翻页按钮?
先编写一个nextprev.inc文件,再将代码< !--#include file="nextprev.inc"-->放在每个页面,简单吧?
nextprev.inc文件的内容如下:
< %
Set Link=Server.CreateObject("MSWC.NextLink")
count=Link.GetListCount("conlink.txt")
' GetListCount(file) 统计超级链接个数
current=link.GetListIndex("conlink.txt")
' GetListIndex(file) 取得当前页的索引
If current > 1 Then
%>
< a href="< %= Link.GetPreviousURL("conlink.txt") %>">上一页< /a>
' GetPreviousURL(file) 取得上一页的URL
< %
End If
If current < count Then
%>
< a href="< %= Link.GetNextURL("conlink.txt") %>">下一页< /a>
' GetNextURL(file) 取得下一页的URL
< % End If %>
另外,Content Linking组件的用法还有:
GetPreviousDescription(file) :取得上一页的说明行;
GetNthDescription(file,n):取得第n页的说明行;
GetNextDescription(file):取得下一页的说明行;
GetNthURL(file,n):取得第n页的说明行。
猜你喜欢
- 0x01 iframe的跳出框架0x02 iframe样式设置0x03 iframe重置高度1、首先来一个,跳出iframe的好方法,直接可
- 概要 简单介绍几种用于判断numpy数组是否全
- 本文回答了如下问题:“MySQL服务器有多稳定?”,以及“在本项目中我能依靠My
- 啥也不说了,直接上代码吧!# encoding:utf-8import requests # 导入requests模块用于访问测试自己的ip
- 基本思路是使用opencv来把随机生成的字符,和随机生成的线段,放到一个随机生成的图像中去。虽然没有加复杂的形态学处理,但是目前看起来效果还
- 在matplotlib下,一个Figure对象可以包含多个子图(Axes),可以使用subplot()快速绘制,其调用形式如下:subplo
- 切片:切片指从现有列表中,获取一个子列表返回一个新列表,不影响原列表。下标以 0 开始:list = ['红','绿
- <%'asp事务处理。'测试数据库为sql server,服务器为本机,数据库名为test,表名为a,两个字段id(i
- 一个表单焦点效果javascript函数,可以用在美化表单界面,挺好看的。function validForms(){  
- Django(python)简单实现android的服务器端1. 所需工具PyCharm--python编辑工具,这里要写Django,因此
- 有时候会需要通过从保存下来的ckpt文件来观察其保存下来的训练完成的变量值。ckpt文件名列表:(一般是三个文件)xxxxx.ckpt.da
- [LeetCode] 181.Employees Earning More Than Their Managers 员工挣得比经理多The&
- 1. 首先看要设置登陆的界面 book/view.py@user_util.my_login #相当于 select_all=my_logi
- 1. Express简介express是一个基于node.js平台的极简,灵活的web应用开发框架,它提供一系列强大的特征,帮助你创建各种w
- 文章介绍了flask框架中的cookie和session。Session是在服务器端保存的一个数据结构,用来跟踪用户的状态,这个数据可以保存
- 前言最近由于换工作,开始交接工作。整理以前的工作内容,由于组内就我一个在做go和大数据。 所以开发没有规划,当时是怎么快怎么来。go也是使用
- 如下所示:a = 1b = 3print(a/b)#方法一:print(round(a/b,2))#方法二:print(format(flo
- 接触了Vue模块化开发才发现JavaScript组件化开发的演变一直在继续,以前也没有特别在意这一块内容,写着代码能调试运行不报错就可以了,
- 前言:又到每日分享Python小技巧的时光了,今天给大家分享的是Python接口常用封装函数。相信对于封装,大家都不陌生吧,今天就用四个小案
- 1. Redo日志的介绍Redo日志是物理日志,记录的是页面的变化。1.1 Redo日志的作用提升数据库写入效率保证数据库不丢数据,进行数据