Web Layout
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsWeb DesignWeb Layout

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old April 21st, 2005, 11:47 PM
Systemdownnn Systemdownnn is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 334 Systemdownnn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 Days 12 h 37 m 42 sec
Reputation Power: 5
Question Form CSS

Hello everyone.

Ok now i am not sure if what i am trying to achive is done by css or asp code.
what i am trying to do is when data is outputed on a page that has a repeat region set to a table. How
do i get the rows to show in diffrent colours, eg. 1st row the baground is blue than second is green than third is blue again and so on

Please help..thanx

Reply With Quote
  #2  
Old April 22nd, 2005, 05:14 AM
Phoenix's Avatar
Phoenix Phoenix is offline
Web-Standards Evangelist
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Posts: 1,522 Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 23 h 48 m 4 sec
Reputation Power: 8
ASP3.0 / XHTML1.1

Code:
 <table>
 <% Dim booOdd
 booOdd = True
 Do Until rsWhatever.EOF Or rsWhatever.BOF
 If booOdd Then %>
 <tr class="odd">
 <% booOdd = False
 Else If booOdd = False Then %>
 <tr class="even">
 <% booOdd = True
 End If %>
 <td><%= rswhatever("fieldnamegoeshere") %></td><td><%= rswhatever("anotherfieldnamegoeshere") %></td>
 </tr>
 <% rsWhatever.Movenext
 Loop %>
 </table>


CSS
Code:
tr.odd { background: blue; }
 tr.even { background: green; }

Reply With Quote
  #3  
Old April 22nd, 2005, 06:46 AM
Systemdownnn Systemdownnn is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 334 Systemdownnn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 Days 12 h 37 m 42 sec
Reputation Power: 5
Thumbs up THanx

wow that is an intresting method , you learn something new everyday..
Thanx allot, i appreciate your effort and time!!, Nothing but love..

Reply With Quote
  #4  
Old April 22nd, 2005, 08:15 AM
Phoenix's Avatar
Phoenix Phoenix is offline
Web-Standards Evangelist
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Posts: 1,522 Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 23 h 48 m 4 sec
Reputation Power: 8
Quote:
Originally Posted by Systemdownnn
wow that is an intresting method , you learn something new everyday..[/quoite]

Not really, its more of a "standard procedure" thesedays. What else did you have in mind?

[quote=Systemdownnn]Thanx allot, i appreciate your effort and time!!, Nothing but love..


Ooookay, even though it only took me 30 seconds.

Reply With Quote
Reply

Viewing: ASP Free ForumsWeb DesignWeb Layout > Form CSS


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT