Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 5th, 2004, 12:08 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 141
Thanks: 1
Thanked 0 Times in 0 Posts
Default Alternative color for every other line

Hi All,

I am trying to create a phone book style grid and
change the background color for every other line.

For example, background color for every other line will be gray.
Then, it will be easier to read the lines.

It will be very helpful, if you can provide some samples.

Thanks for your help,

mcinar

__________________
MCinar

Love all the creatures because of the creator.
 
Old December 5th, 2004, 07:58 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Something like:

----------------------cut n paste--------------
<table>
<% dim count
   count = 0
   do while count < 2 %>
      <tr>
       <td <% if ((count/2)=0) then
                 response.write " bgColor='#cccccc' "
              else
                 response.write " bgColor='#999999' "
              end if %>>someText</td>
      </tr>
<% count = count + 1
   loop %>
</table>


Wind is your friend
Matt
 
Old December 5th, 2004, 11:49 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 141
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thank you, Matt.

Mcinar






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to draw indicator line in owc line chart AlexOo General .NET 0 July 9th, 2007 10:32 PM
Reading line by line from a .txt file x_ray VB.NET 2002/2003 Basics 5 February 10th, 2006 01:55 PM
Change Series Color in Stacked Line Markers chart Jell Pro VB.NET 2002/2003 0 July 13th, 2005 06:42 AM
To edit Series Color in Stacked Line Marker chart Jell General .NET 0 July 12th, 2005 05:20 AM
line-height -n- background-color with <DIV> block anshul HTML Code Clinic 11 September 5th, 2004 02:15 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.