RE: IE tr bgcolor... question

2000-05-23 Thread Clint Tredway

Try this

trcfif search.recordcount gt 2 bgcolor="deded7"/cfif

-Original Message-
From: Ricq Pattay [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 23, 2000 10:08 AM
To: [EMAIL PROTECTED]
Subject: OT: IE tr bgcolor... question


I'm trying to format CF output so that the query table rows are shaded grey
and clear alternately.

The below code works in Netscape, but in IE I get rows that are grey and
black alternately. Of course, if I put something within the quotes of the
2nd DE, it works fine in IE. But I'd prefer to have the clear row so as not
to conflict with my background image pattern. Any ideas (besides requiring
my users to only use Netscape...)?

table border=0 cellspacing=0
cfoutput query="search_catalog"

!--- start grey shading of alternate rows ---
 cfif #search_catalog.recordcount# gt 2
tr bgcolor="###Iif(((CurrentRow MOD 2) is 0),de('e0e0e0'),de(''))#"
cfelse
tr
/cfif

[etc.]


Ricq Pattay [EMAIL PROTECTED]
Univ of MN College of Veterinary Medicine




--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: IE tr bgcolor... question

2000-05-23 Thread Philip Arnold - ASP

 I'm trying to format CF output so that the query table rows are
 shaded grey
 and clear alternately.

 The below code works in Netscape, but in IE I get rows that are grey and
 black alternately. Of course, if I put something within the quotes of the
 2nd DE, it works fine in IE. But I'd prefer to have the clear row
 so as not
 to conflict with my background image pattern. Any ideas (besides requiring
 my users to only use Netscape...)?

 table border=0 cellspacing=0
 cfoutput query="search_catalog"

 !--- start grey shading of alternate rows ---
  cfif #search_catalog.recordcount# gt 2
 tr bgcolor="###Iif(((CurrentRow MOD 2) is 0),de('e0e0e0'),de(''))#"
 cfelse
 tr
 /cfif

I'd put the whole of the bgcolor="..." into the iif;
tr #Iif(((CurrentRow MOD 2) is 0),de('bgcolor="##e0e0e0"'),de(''))#"

HTH

Philip Arnold
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.