Now I have this dropdown menu in CSS & PHP, The trick will be to making the menu item STAY the color (based on the area you're in - somehow, it would need to know the architecture of the site - pulling from the URL to know when to KEEP the menu item highlighted.
Is there any way using PHP to determine the current page and highlight the respective menu item.
CODE
<div class="menu">
<ul>
<li><a href="<?php echo tep_href_link(FILENAME_ALL; ?>" class="hide"><?php echo ONE_OUR; ?></a>
<!--[if lte IE 6]>
<a href="<?php echo tep_href_link(FILENAME_ALL); ?>"><?php echo ONE_OUR; ?>
<table><tr><td>
<![endif]-->
<ul>
<li><a href="<?php echo tep_href_link('index.php', 'cPath=21'); ?>"><?php echo ONE_MENU; ?></a></li>
<li><a href="<?php echo tep_href_link('index.php', 'cPath=26'); ?>"><?php echo ONE_GREEN; ?></a></li>
<li><a href="<?php echo tep_href_link('index.php', 'cPath=25'); ?>"><?php echo ONE_BLACK; ?></a></li>
<li><a href="<?php echo tep_href_link('index.php', 'cPath=22'); ?>"><?php echo ONE_WHITE; ?></a></li>
<li><a href="<?php echo tep_href_link('index.php', 'cPath=24'); ?>"><?php echo ONE_FLAVOURED; ?></a></li>
<li><a href="<?php echo tep_href_link('index.php', 'cPath=23'); ?>"><?php echo ONE_BAGS; ?></a></li>
<li><a href="<?php echo tep_href_link('index.php', 'cPath=27'); ?>"><?php echo ONE_MIXED; ?></a></li>
</ul>
<!--[if lte IE 6]>
</td></tr></table>
</a>
<![endif]-->
</li>
This post has been edited by lance: 1 Feb, 2007 - 02:05 AM