国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 辦公 > Dreamweaver > 正文

下拉菜單做翻頁的通用代碼-Dreamweaver教程

2024-09-12 12:30:16
字體:
供稿:網(wǎng)友

這是一個用下拉菜單來做翻頁的通用代碼,我覺得這樣做比較省空間,蠻好的
其實這個代碼就是老外的那個翻頁插件,后來是哪位好朋友(不好意思,忘了)修改后放在論壇上的,我還做成過插件,其實光是拷貝也挺方便的。
還有最后一段是前后翻頁的按鈕,呵呵,這個還是ccjat提醒后加上的,用不用都隨便咯。

<%
記錄集名字_total = 記錄集名字.recordcount

if (記錄集名字_numrows < 0) then
記錄集名字_numrows = 記錄集名字_total
elseif (記錄集名字_numrows = 0) then
記錄集名字_numrows = 1
end if

記錄集名字_first = 1
記錄集名字_last = 記錄集名字_first 記錄集名字_numrows - 1

if (記錄集名字_total <> -1) then
if (記錄集名字_first > 記錄集名字_total) then 記錄集名字_first = 記錄集名字_total
if (記錄集名字_last > 記錄集名字_total) then 記錄集名字_last = 記錄集名字_total
if (記錄集名字_numrows > 記錄集名字_total) then 記錄集名字_numrows = 記錄集名字_total
end if
%>
<%

if (記錄集名字_total = -1) then

記錄集名字_total=0
while (not 記錄集名字.eof)
記錄集名字_total = 記錄集名字_total 1
記錄集名字.movenext
wend

if (記錄集名字.cursortype > 0) then
記錄集名字.movefirst
else
記錄集名字.requery
end if

if (記錄集名字_numrows < 0 or 記錄集名字_numrows > 記錄集名字_total) then
記錄集名字_numrows = 記錄集名字_total
end if

記錄集名字_first = 1
記錄集名字_last = 記錄集名字_first 記錄集名字_numrows - 1
if (記錄集名字_first > 記錄集名字_total) then 記錄集名字_first = 記錄集名字_total
if (記錄集名字_last > 記錄集名字_total) then 記錄集名字_last = 記錄集名字_total

end if
%>
<%
set mm_rs = 記錄集名字
mm_rscount = 記錄集名字_total
mm_size = 記錄集名字_numrows
mm_uniquecol = ""
mm_paramname = ""
mm_offset = 0
mm_attotal = false
mm_paramisdefined = false
if (mm_paramname <> "") then
mm_paramisdefined = (request.querystring(mm_paramname) <> "")
end if
%>

<%
if (not mm_paramisdefined and mm_rscount <> 0) then

r = request.querystring("index")
if r = "" then r = request.querystring("offset")
if r <> "" then mm_offset = int(r)

本新聞共3頁,當前在第11 2 3



發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 车致| 汝阳县| 繁昌县| 沙坪坝区| 定安县| 邯郸市| 阿城市| 玉山县| 新晃| 大理市| 栾城县| 明光市| 绥化市| 岗巴县| 卫辉市| 寿阳县| 安庆市| 龙岩市| 太康县| 垦利县| 曲阳县| 增城市| 三亚市| 铜陵市| 景泰县| 合江县| 永康市| 井陉县| 东明县| 固镇县| 渝中区| 泾源县| 安阳市| 新干县| 吉首市| 大港区| 南川市| 本溪| 加查县| 弋阳县| 姚安县|