主题:  数字面包请进来!

沙漠之舟

职务:普通成员
等级:1
金币:0.0
发贴:55
注册:2001/8/14 11:19:02
#12001/11/16 14:00:16
我用你的插件如下:
插件应用解析5-链接列表
插件应用解析6-链接列表

页面很久都不出来,源文件如下:

<%@LANGUAGE="VBSCRIPT"%>

<%
set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_cy_STRING
Recordset1.Source = "SELECT * FROM ad ORDER BY addate DESC"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 3
Recordset1.Open()
Recordset1_numRows = 0
%>
<%
' *** Recordset Stats, Move To Record, and Go To Record: declare stats variables

' set the record count
Recordset1_total = Recordset1.RecordCount

' set the number of rows displayed on this page
If (Recordset1_numRows < 0) Then
Recordset1_numRows = Recordset1_total
Elseif (Recordset1_numRows = 0) Then
Recordset1_numRows = 1
End If

' set the first and last displayed record
Recordset1_first = 1
Recordset1_last = Recordset1_first + Recordset1_numRows - 1

' if we have the correct record count, check the other stats
If (Recordset1_total <> -1) Then
If (Recordset1_first > Recordset1_total) Then Recordset1_first = Recordset1_total
If (Recordset1_last > Recordset1_total) Then Recordset1_last = Recordset1_total
If (Recordset1_numRows > Recordset1_total) Then Recordset1_numRows = Recordset1_total
End If
%>
<%
' *** Recordset Stats: if we don't know the record count, manually count them

If (Recordset1_total = -1) Then

' count the total records by iterating through the recordset
Recordset1_total=0
While (Not Recordset1.EOF)
Recordset1_total = Recordset1_total + 1
Recordset1.MoveNext
Wend

' reset the cursor to the beginning
If (Recordset1.CursorType > 0) Then
Recordset1.MoveFirst
Else
Recordset1.Requery
End If

' set the number of rows displayed on this page
If (Recordset1_numRows < 0 Or Recordset1_numRows > Recordset1_total) Then
Recordset1_numRows = Recordset1_total
End If

' set the first and last displayed record
Recordset1_first = 1
Recordset1_last = Recordset1_first + Recordset1_numRows - 1
If (Recordset1_first > Recordset1_total) Then Recordset1_first = Recordset1_total
If (Recordset1_last > Recordset1_total) Then Recordset1_last = Recordset1_total

End If
%>


Untitled Document



<%=(Recordset1.Fields.Item("adtitle").value)%>


<%=(Recordset1.Fields.Item("adcontent").value)%>


 
<%
For i = 1 to Recordset1_total Step MM_size
TM_counter = TM_counter + 1
TM_PageEndCount = i + MM_size - 1
if TM_PageEndCount > Recordset1_total Then TM_PageEndCount = Recordset1_total
if i <> MM_offset + 1 then
Response.Write("")
Response.Write(TM_counter & "
")
else
Response.Write("" & TM_counter & "")
End if
if(TM_PageEndCount <> Recordset1_total) then Response.Write("/")
next
%>




<%
Recordset1.Close()
%>

帮忙看看吧!



5D荣誉斑竹

职务:普通成员
等级:2
金币:2.0
发贴:654
注册:2000/12/19 10:59:22
#22001/11/16 15:44:21
确实,插件有BUG,具体在哪里我没有找过。那些插件后来有新的版本,可惜我有过后忘了在哪里。