Forums

This topic is locked

Alternate colors in repeated region Dream MX

Posted 13 Nov 2002 17:24:39
1
has voted
13 Nov 2002 17:24:39 Benoit de Cuverville posted:
Hi,

Does anyone has an extension to <b>make alternate colorsin repeated </b> region in Dreamweaver MX ?

Thx in advance.

Replies

Replied 13 Nov 2002 17:53:10
13 Nov 2002 17:53:10 Owen Eastwick replied:
You don't need an extension it only needs 1 line of code.

Find the Beginning of the repeat region in the code then modify the tablle row tag as follows:

&lt;%
While ((Repeat1__numRows &lt;&gt; 0) AND (NOT RecordsetName.EOF))
%&gt;
&lt;tr &lt;% If Repeat1__numRows Mod 2 Then Response.Write("bgcolor='#F0F0F0'" Else Response.Write(" bgcolor='#FFFFFF'" End If %&gt;&gt;

Regards

Owen.

Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
Replied 13 Nov 2002 18:09:44
13 Nov 2002 18:09:44 Benoit de Cuverville replied:
thx but the code you me is asp, isn't it ? Do you have the equivalent for php please ?

Replied 13 Nov 2002 19:52:32
13 Nov 2002 19:52:32 Benoit de Cuverville replied:
Thx oeastwick (he told me privately that he doesn't speak php).

<b>Does anyone has the same code in PHP please ?</b>

Reply to this topic