@ cityguy:
Nou, alvast dank voor je hulp maar ik heb eerlijk gezegd geen idee wat je bedoelt. Voor het gemak zal ik de code van inc_show.asp hieronder kopieren; wellicht kun je hier wat mee of zie je een fout?
Code:
<%
Thispage = Request.ServerVariables("script_name") & "?" & replace(Request.Querystring,"&Index="&request.querystring("Index")&"&Folder="&request.querystring("Folder")&"&Time=", "")
%>
<%
NumSeconds = "" 'CInt(Request("Time"))
thisFolder = "slideshow/"&request.querystring("hs")&"/"&request.querystring("ap")&""
myFolder = server.MapPath("/")
myTextFile = "ContLink.txt"
%>
<% if request.querystring("index") = "" then
index = 1
else
index = cint(request.querystring("index"))
end if
%>
<%
dim nfs,nfo
set nfs=Server.CreateObject("Scripting.FileSystemObject")
set nfo=nfs.GetFolder(myFolder & "\slideshow\"&request.querystring("hs")&"/"&request.querystring("ap"))
myTextPath = myFolder & "\" & thisFolder & "\" & myTextFile
Set objNextLink = Server.CreateObject("MSWC.NextLink")
TotalItems = (nfo.files.count)
%>
<%
If NumSeconds <> "None" Then
If Index = TotalItems Then
Response.Write("<META HTTP-EQUIV=""Refresh"" CONTENT=""" & NumSeconds & ";URL="&Thispage&"&Folder=" & thisFolder & """>")
Else
Response.Write("<META HTTP-EQUIV=""Refresh"" CONTENT=""" & NumSeconds _
& ";URL="&Thispage&"&Index=" & Index + 1 & "&Folder=" _
& thisFolder & "&Time=" & NumSeconds & """>")
End If
End If
%>
<table border="0" cellpadding="0" cellspacing="0" class="afbeeldingframe">
<tr>
<td height="20"> </td>
<td><%
if cint(TotalItems) > 1 then
Response.Write("<p>" & Index & "/" & TotalItems & "</p>")
end if
%></td>
<td> </td>
</tr>
<tr>
<td class="frame_pijl_td"><%
If Index > 1 Then
Response.Write("<a href="""&Thispage&"&Index=" & Index - 1 & "&Folder=" _
& thisFolder & "&Time=" & NumSeconds & """>" & "<img src=""_images/pijl-links-"&request.querystring("hs")&".gif"" width=""17"" height=""21"" border=""0""></a>")
Else
Response.Write("")
End If
%></td>
<td class="kader-wit-1"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="20" height="20"> </td>
<td> </td>
<td width="20" height="20"> </td>
</tr>
<tr>
<td> </td>
<td width="281" height="181"><%
If InStr(picWholeDescription, mySeparator) Then
picPositionSeparator = InStr(1, picWholeDescription, mySeparator)
picTitle = Left(picWholeDescription, picPositionSeparator - 1)
picDescription = Mid(picWholeDescription, picPositionSeparator + 5)
Else
picTitle = picWholeDescription
picDescription = ""
End If
%>
<%
Set fsq=Server.CreateObject("Scripting.FileSystemObject")
If (fsq.FileExists(""&myFolder & "\" & thisFolder & "\"& Index &".jpg"))=false Then
Response.Write("<img src=" & thisFolder & "\"& Index &".gif width=""281"" height=""181"" >")
Set objNextLink = Nothing
Else
Response.Write("<img src=" & thisFolder & "\"& Index &".jpg width=""281"" height=""181"" >")
Set objNextLink = Nothing
End If
set fsq=nothing
%>
</td>
<td> </td>
</tr>
<tr>
<td width="20" height="20"> </td>
<td> </td>
<td width="20" height="20"> </td>
</tr>
</table></td>
<td class="frame_pijl_td"><%
If (TotalItems) > 1 or TotalItems = Index Then
If Index < TotalItems Then
Response.Write("<a href="""&Thispage&"&Index=" & Index + 1 & "&Folder=" _
& thisFolder & "&Time=" & NumSeconds & """>" & "<img src=""_images/pijl-rechts-"&request.querystring("hs")&".gif"" width=""17"" height=""21"" border=""0""></a>")
Else
Response.Write("")
End If
Else
Response.Write("<a href="""&Thispage&"&Index=" & Index + 1 & "&Folder=" _
& thisFolder & "&Time=" & NumSeconds & """>" & "<img src=""_images/pijl-rechts-"&request.querystring("hs")&".gif"" width=""17"" height=""21"" border=""0""></a>")
End If
%></td>
</tr>
</table>