<%@ LANGUAGE = "VBScript" %> <% Dim thisFilename thisFilename = "TrailWork_2006_06_03_Photos.asp" Dim rows, columns, index, imgCnt index = -1 rows = 2 columns = 3 imgCnt = 6 Dim imgFilename() Dim imgDirectory imgDirectory = "photos/2006_06_03_TrailWork/" ReDim imgFilename(imgCnt) imgFilename(0) = "IMG_0067.jpg" imgFilename(1) = "IMG_0068.jpg" imgFilename(2) = "IMG_0070.jpg" imgFilename(3) = "IMG_0071.jpg" imgFilename(4) = "IMG_0072.jpg" imgFilename(5) = "IMG_0073.jpg" Dim imgText() ReDim imgText(imgCnt) imgText(0) = "Rob" imgText(1) = "Sandy" imgText(2) = "Fred" imgText(3) = "Matt" imgText(4) = "Dan" imgText(5) = "Steve" If Request.QueryString("index").Count = 1 Then index = Request.QueryString("index") End If %> North Shore NEMBA Photos
<% If index = -1 Then %>
New Trail at Bradley Palmer / Willowdale Mill - June 3rd, 2006
<% Dim tableHTML Dim cellWidth cellWidth = CInt(100 / columns) tableHTML = "" For i = 0 to (rows - 1) tableHTML = tableHTML & "" & VbCrLf For j = 0 to (columns - 1) tableHTML = tableHTML & "" Next tableHTML = tableHTML & "" & VbCrLf Next Response.Write tableHTML %>
" tableHTML = tableHTML & "
<% Else %> " Response.Write prevLink %> " Response.Write nextLink %>
<% Dim prevLink Dim prevIndex prevIndex = index - 1 If prevIndex < 0 Then prevIndex = imgCnt - 1 End If prevLink = "<Prev <% Dim thumbsLink thumbsLink = "

Thumbs View

" Response.Write thumbsLink %> " %> " Response.Write imgSrc %>
<% Response.Write imgText(index) & "
<% Dim imgSrc imgSrc = "
<% Dim nextLink Dim nextIndex nextIndex = index + 1 If nextIndex >= imgCnt Then nextIndex = 0 End If nextLink = "Next>
<% End If %>