DwZone Forum DwZone Forum
Welcome to the DwZone-it Forum
 
  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  
    RegisterRegister -->   LoginLogin  
Other extensions  
DwZone Forum Index -> Other extensions

Moderators: AdministratorsModerators 
Hint: For improved responsiveness, use Internet Explorer 4 (or above) with Javascript enabled, choose 'Dynamic' from the View dropdown and hit 'Set Options' to save your changes.
New Topic Search for
 View     Per page     Messages Since 
Messages 441 to 450 of 483 (Total: 237) First |  Prev |  Next |  Last  
 Subject Author Date  
   Re:Dynamic table color  
View this persons public profile  [email protected]   0:52 17 Dec 2005  
   Re:Dynamic table color  
View this persons public profile  [email protected]   0:54 17 Dec 2005  
   Re:Dynamic table color  
View this persons public profile  [email protected]   0:55 17 Dec 2005  
   Re:Dynamic table color  
View this persons public profile  [email protected]   2:52 21 Dec 2005  
    Re:Dynamic table color  
View this persons public profile  [email protected]   9:48 22 Dec 2005  
 
Hi Kourosh,
There's no need for an extension to achieve this, just use a simple snippet and a bit of hand coding (a very little bit!)

In your page, in the code view, find the line similar to this (it's the beginning of the Repeat Region):<% While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF)) %>Just below you'll find the <tr> tag of the repeated row: substitute the <tr> tag with this:<tr bgcolor="<% If Repeat1__numRows Mod 2 Then Response.Write("#FFFFFF") Else Response.Write("#CCCCCC") %>">where #FFFFFF and #CCCCCC are the two repeating colors

Of course pay attention to the name of your Repeat Region and its corresponding variables! In my example it's Repeat1__numRows, but if you have more than one Repeat Region applied on the page you can have RepeatXXX__numRows

Hope this help (anyway, IMHO this is a "general DW question", not something related to problems you have with GREAT Gianluigi's extensions)
 
Reply to this current thread  View this persons public profile  Send Private Message
   Re:Dynamic table color  
View this persons public profile  [email protected]   21:36 24 Dec 2005  
   Events calendar prev/next image problem  
View this persons public profile  [email protected]   22:31 7 Aug 2005  
   Re:Events calendar prev/next image problem  
View this persons public profile  gianluigi   9:11 8 Aug 2005  
   Re:Events calendar prev/next image problem  
View this persons public profile  [email protected]   6:42 21 Aug 2005  
   Re:Events calendar prev/next image problem  
View this persons public profile  gianluigi   19:35 21 Aug 2005  
Last Visit: Sunday 22 Dec, 2024 9:12 pm First |  Prev |  Next |  Last  
 Login
Username:  Password:    
Read Message Read Message   Unread message Unread message
Read message [popular] Read message [popular]   Unread message [popular] Unread message [popular]
Read message [locked] Read message [locked]   Unread message [locked] Unread message [locked]
All times are GMT-1

Jump to: