shanuragu
10-28-2003, 11:10 PM
Hi
I am just generating a color pallette, by storing color codes in an array & displaying then in a td with in a for loop. Here is the code ... (for the time being I have taken only six colors)
<%
Dim colorArr, colorName, i, l, j
colorArr = Array("#FFB6C1", "#DB7093", "#D8BFD8", "#DA70D6", "#FFF0F5", "#DDA0DD")
l = UBound(colorArr)
%>
<table width="300px" border="1" cellpadding="0" cellspacing="0">
<tr>
<%
For i = 0 to l
%>
<td bgcolor="<%=colorArr(i)%>"><a href="cssgenerator2.asp?ccode="+<%=colorArr(i)%>><%=colorArr(i)%><a></td>
<%
Next
%>
</tr>
</table>
Which is working fine. I just want to display 5 columns per row using the same for loop. How can I do that???
shara
I am just generating a color pallette, by storing color codes in an array & displaying then in a td with in a for loop. Here is the code ... (for the time being I have taken only six colors)
<%
Dim colorArr, colorName, i, l, j
colorArr = Array("#FFB6C1", "#DB7093", "#D8BFD8", "#DA70D6", "#FFF0F5", "#DDA0DD")
l = UBound(colorArr)
%>
<table width="300px" border="1" cellpadding="0" cellspacing="0">
<tr>
<%
For i = 0 to l
%>
<td bgcolor="<%=colorArr(i)%>"><a href="cssgenerator2.asp?ccode="+<%=colorArr(i)%>><%=colorArr(i)%><a></td>
<%
Next
%>
</tr>
</table>
Which is working fine. I just want to display 5 columns per row using the same for loop. How can I do that???
shara