Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP thumbnail

Status
Not open for further replies.

jamesjames1

Technical User
Jun 18, 2004
81
0
0
GB
Can anyone see why my thumbnails are not working?

James

<html>
<body bgcolor="#C0C0C0">
<%
Set MyDirectory=Server.CreateObject("Scripting.FileSystemObject")
Set MyFiles=MyDirectory.GetFolder(Server.MapPath("/mums/mull"))
For each filefound in MyFiles.files


<%Response.Write ("<a href=""" & "/mums/mull/" & filefound.Name & """>" & "CLICK - Ann Mull Picture - " & filefound.Name ) %>
<%


<br>
<% response.write "<IMG SRC="filefound.name"></A>" %>


<% Next %>


<p><font face="Calibri" size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
</font><font face="Calibri" size="4" color="#0000FF">
<a href=" Back </a></font></p>

</body>
</html>
 
Its probably something involving a computer but we'll need more information to be sure.

Were there any error messages? It looks like maybe there is an extra [red][tt]<%[/tt][/red] inside the loop but thats just a guess.

If there is no error then what do you see when you do "View Source" in the browser?
 
For one you got all your <% and %> mixed up. Try

<%
Set MyDirectory=Server.CreateObject("Scripting.FileSystemObject")
Set MyFiles=MyDirectory.GetFolder(Server.MapPath("/mums/mull"))
For each filefound in MyFiles.files


Response.Write ("<a href=""" & "/mums/mull/" & filefound.Name & """>" & "CLICK - Ann Mull Picture - " & filefound.Name & "<br />" )


response.write ("<IMG SRC=""" & filefound.name & """></A>")


Next
%>


If you don't get an error message but the images aren't showing up, make sure the image path is correct in your <img src="PATH" />
 
Thanks guys, it was the path. I assumed I was already in the pictures directory but needed to drill in a couple of levels to /mums/mull !!!

Laters....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top