jamesjames1
Technical User
Hi,
Does anyone know how to create a thumbnail using all the files in a folder. I have written some code but the rendering process to create thumbnails from the contents of a folder times out after about 10 or so thumbnails.
It seems a bit strange does anyone know a way to get this to work properly, here is the code:
<html>
<body bgcolor="#C0C0C0">
<%
Set MyDirectory=Server.CreateObject("Scripting.FileSystemObject")
Set MyFiles=MyDirectory.GetFolder(Server.MapPath("james/hawes"))
For each filefound in MyFiles.files
response.write ("<IMG HEIGHT=50 WIDTH=50 SRC=""" & "/james/hawes/" & filefound.name & """></A>")
Response.Write ("<a href=""" & "/james/hawes/" & filefound.Name & """>" & "CLICK - J & hyperlink name " & filefound.Name & "<br />" )
Next
%>
</body>
</html>
Does anyone know how to create a thumbnail using all the files in a folder. I have written some code but the rendering process to create thumbnails from the contents of a folder times out after about 10 or so thumbnails.
It seems a bit strange does anyone know a way to get this to work properly, here is the code:
<html>
<body bgcolor="#C0C0C0">
<%
Set MyDirectory=Server.CreateObject("Scripting.FileSystemObject")
Set MyFiles=MyDirectory.GetFolder(Server.MapPath("james/hawes"))
For each filefound in MyFiles.files
response.write ("<IMG HEIGHT=50 WIDTH=50 SRC=""" & "/james/hawes/" & filefound.name & """></A>")
Response.Write ("<a href=""" & "/james/hawes/" & filefound.Name & """>" & "CLICK - J & hyperlink name " & filefound.Name & "<br />" )
Next
%>
</body>
</html>