Re: [Dave] CSS Current page
I've responded by email but here's how I did. It's a little hard because this site is a bit more complicated with it's structure but here they are:
You can see the green highlighting on the secondary menu for this page:
http://www.straloch.com/newsite/secondary.php?8&theCategory=Straloch+Estate
I edited secondarynav.php, added this code to get the current record number:
$num = getNumberFromEndOfUrl();
And this code to display the class in the foreach loop
<?php if ($num == $record['num']): ?>greenbuttons<?php endif; ?>
For headernav.php I added this code:
<?php if (@$_GET['theCategory'] == $pagesRecord['title']): ?>greenbuttons<?php endif; ?>
Hope that helps!
Dave Edis - Senior Developer
interactivetools.com