Hi guys,

I have a set of tabs for site navigation. When a tab is clicked I wish for
it to stay in the on position. I have the following code, but as you can see
it is really messy with the additional listcontains...

<!--- home --->
        <cfif listContainsNoCase(CGI.SCRIPT_NAME, "index.cfm") OR
listContainsNoCase(CGI.SCRIPT_NAME, "contact.cfm") OR
listContainsNoCase(CGI.SCRIPT_NAME, "terms_of_use.cfm") OR
listContainsNoCase(CGI.SCRIPT_NAME, "conditions_of_sale.cfm") OR
listContainsNoCase(CGI.SCRIPT_NAME, "frequently_asked_questions.cfm")>
                <cfset tab_status = "on">
        <cfelse>
                <cfset tab_status = "off">
        </cfif>
        <table width="100" border="0" cellspacing="0" cellpadding="0"
background="images/layout/tab_#tab_status#_bg.gif">
      <tr>
        <td width="5"><img src="images/layout/tab_#tab_status#_left.gif"
/></td>
                <td class="menu_item_#tab_status#"><a
href="index.cfm">HOME</a></td>
                <td width="5"><img
src="images/layout/tab_#tab_status#_right.gif" /></td>
      </tr>
    </table>
        <!--- end home --->

Is there another way is set up the cfif statement?

Regards
mike



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277214
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to