hello, just letting you know i got it working via another forum. here is the solution, i just rename my images carpic1, carpic2 etc and it loops through them
Code:
if ((Session("ListAttributes")) && (Session("ListAttributes").length > 0))
{
ImageID = 1
for (var j = 0; j < Session("ListAttributes").length; j++)
{
var aa = String(Session("ListAttributes")[j][0]);
%>
<table>
<tr>
<td width="400"><p style="font-family:arial;font-size:10pt;color:#666666;margin-bottom:10px;margin-left:20px;"><% Response.Write(aa + "\n"); %></p>
<img style="margin-left:20px;margin-bottom:25px;" src="/images/carpic<%=ImageID%>.JPG" width="150" height="90" />
</td>
<td align="left"><% Response.Write(Price(aa)); %></td>
</tr>
</table>
<%
ImageID = ImageID +1
}
}
}
else
{
Response.Write(Price(V));
}
Response.End();
}
Bookmarks