View Single Post
Old 09-16-2007, 07:39 AM  
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
try
Code:
$links['index.php'] = 'home';
$links['how.php'] = 'how it works';
$links['about'] = 'about us blah blah';

foreach($links as $link => $textLink) echo '<a href="'.$link.'"'.(($_SERVER['REQUEST_URI']==$link)?' class="active"':'').'>'.$textLink.'</a>'
Obviously you can tweak the array to waht you need, and also the output line, but it's simple as.
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote