as I said it would work!
----- Original Message ----- 
From: "Paul Johnston" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 25, 2003 4:13 PM
Subject: RE: [ cf-dev ] Select box class


> Well this works:
> 
> ------------code------------
> 
> <html>
> <head>
> <title>Different Coloured Select Boxes</title>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> <style type="text/css">
> <!--
> .blah {
> background-color: #009999;
> }
> .blah2 {
> background-color: #cccc99;
> }
> -->
> </style>
> </head>
> 
> <body>
> 
> <form>
> <select name="test" size="1">
> <cfset a = 1>
> <cfloop list="a,b,c,d,e,f,g" index="i">
> <cfoutput>
> <cfif a MOD 2 eq 0>
> <option class="blah" value="#i#">#i#</option>
> <cfelse>
> <option class="blah2" value="#i#">#i#</option>
> </cfif>
> </cfoutput>
> <cfset a = a + 1>
> </cfloop>
> </select>
> </form>
> 
> </body>
> </html>
> 
> ------------/code------------
> 
> At least on IE6 it does!
> 
> Paul
> -------------------------------------------
> Paul Johnston
> PJ Net Solutions Ltd
> http://www.pjnetsolutions.com
> [EMAIL PROTECTED]
> +44 (0)7866 573013
> 
> 
> 
> -- 
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to