D
David. E. Goble
Hi All;
I have N pictures defined like;
sigsImages[0]="sigs/finished1.jpg"
sigsImages[1]="sigs/foghorn.jpg"
.....
All less than 400 pixels x 150 pixels.
I want to arrange them into a table, how do I do it?
Perferrable using the windows W to determine number of columns.
I found this code snipet on the net, but not sure how to change it.
Any ideas/hints?
<table border="1" cellpadding="0" cellspacing="0">
<%
startrw = 0
endrw = HLooper1__index
numberColumns = 5
numrows = -1
while((numrows <> 0) AND (Not RsImages.EOF))
startrw = endrw + 1
endrw = endrw + numberColumns
%>
<tr align="center" valign="top">
<%
While ((startrw <= endrw) AND (Not RsImages.EOF))
%>
<td width="39" height="38"> <img
src="../images/<%=(RsImages.Fields.Item("Photo").Value)%>">
</td>
<%
startrw = startrw + 1
RsImages.MoveNext()
Wend
%>
</tr>
<%
numrows=numrows-1
Wend
%>
</table>
Regards David. E. Goble
http://www.pnc.com.au/~degoble
degoble[AT]pnc.com.au | dgoble[AT]pnc.com.au
Po Box 648 (9 Murray St), Kingscote, Kangaroo Island SA 5223
I have N pictures defined like;
sigsImages[0]="sigs/finished1.jpg"
sigsImages[1]="sigs/foghorn.jpg"
.....
All less than 400 pixels x 150 pixels.
I want to arrange them into a table, how do I do it?
Perferrable using the windows W to determine number of columns.
I found this code snipet on the net, but not sure how to change it.
Any ideas/hints?
<table border="1" cellpadding="0" cellspacing="0">
<%
startrw = 0
endrw = HLooper1__index
numberColumns = 5
numrows = -1
while((numrows <> 0) AND (Not RsImages.EOF))
startrw = endrw + 1
endrw = endrw + numberColumns
%>
<tr align="center" valign="top">
<%
While ((startrw <= endrw) AND (Not RsImages.EOF))
%>
<td width="39" height="38"> <img
src="../images/<%=(RsImages.Fields.Item("Photo").Value)%>">
</td>
<%
startrw = startrw + 1
RsImages.MoveNext()
Wend
%>
</tr>
<%
numrows=numrows-1
Wend
%>
</table>
Regards David. E. Goble
http://www.pnc.com.au/~degoble
degoble[AT]pnc.com.au | dgoble[AT]pnc.com.au
Po Box 648 (9 Murray St), Kingscote, Kangaroo Island SA 5223