Layout of Dynamic Images in a table?

  • Thread starter David. E. Goble
  • Start date
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
 
Z

Zifud

David. E. Goble said:
Hi All;

I have N pictures defined like;
[...]

This is a JavaScript newsgroup. The code you posted is not
JavaScript. If you want help with it, find out what language it
is and what environment it needs to run it, then post to an
appropriate group.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top