|
|
 |
 |
<%
photosPerPage=9
page=request("page")
if page="" then page=1
'set up the image array
dim photoArray()
imgCount=1
photoPath=server.MapPath("photos")
set filesys=server.CreateObject("scripting.filesystemobject")
set photoFolder=filesys.GetFolder(photoPath)
set fileColl=photoFolder.files
for each fil in fileColl
fileName=fil.name
if left(fileName,3)="th_" then
redim preserve photoArray(imgCount)
photoArray(imgCount-1)=right(fileName,len(fileName)-3)
imgCount=imgCount+(1)
end if
next
%>
<% call photoGallery() %>
|
|
|