Forum Moderators: open
====
<html>
<head>
<script language="javascript">
<!--
function showimage()
{
if (!document.images)
return
document.images.pictures.src= document.mygallery.picture.options[document.mygallery.picture.selectedIndex].value
}
//-->
</script>
</head>
<body>
<p>
<%
' Create an instance of the FileSystemObject
Set MyFileObject=Server.CreateObject("Scripting.FileSystemObject")
' Create Folder Object
Set MyFolder=MyFileObject.GetFolder(Server.MapPath("/zad-alrida/images/products/"))
%>
<%
'Loop trough the files in the folder
FOR EACH thing in MyFolder.Files
%>
<form name="mygallery">
<img src="<%=thing.name%>" name="pictures" width="99" height="100">
<select name="picture" size="1" onchange="showimage()">
<option selected
value="<%=thing.name%>"><%=thing.name%></option>
</select>
<% next %>
</form>
=========
Do you have any solution for me :(
please help me
If you say "thing.name" outside of your For...Each loop, ASP has no idea what you're talking about.
If you just want to display a specific picture, then replace that with the name of the picture you want to display.