How to change an image based on page url in ColdFusion? -


i have header i'm calling through cfinclude. however, want able change image on header based off page url. if in index.html, use image , if not, use image b. know nothing coldfusion, appreciated. thank you.

look @ cgi variables

<cfif cgi.script_name eq 'index.cfm'>    <img scr="imga.jpg"> <cfelse>    <img src="imgb.jpg"> </cfif> 

Comments