This again is all XHTML validated code... I have the IF/ELSE statements all on one line so it produces clean output in the xhtml when you view source... not tons of CF produced whitespace. --- The site used in this example I did as a favor to my daughter's dance instructor... her site is Hollie's Dancin' Dream. URL: http://www.holliesdancindream.net/ CSS URL: http://www.holliesdancindream.net/css/Jacksonville-Dance.css 3 state image URL: http://www.holliesdancindream.net/css/btnnav.jpg --- What is does: The code checks the path to the page you are currently on, if the path matches the IF statement (you are on that page), it dynamically writes a class="act" to the LI tag and removes the hyperlink, if you are not on that page, then (ELSE) the anchor tag behaves with the hover event with a background image swap (actually repositions the background image via CSS)... in your CSS you set up your LI .act class to be something to indicate "you are here". In this case it is one image to represent the 3 different states... off, hover, and active (act). Using CSS you can position the image however you want... so for all of the main navigation, there is only 1 http call to load the image, yet you get 3 different backgrounds for your anchor states (off, hover, active). This is very code/load efficient. In the CSS search for btnnav to see how the image is positioned for the different states. --- CF Code:


