arwvisions Posted January 5, 2009 Share Posted January 5, 2009 let me start by saying Im pretty much a n00b and any help is greatly appreciated. I am using xcart which allows for the admin to assign dynamic speed bar menu items. I want the menu tab for the current page to be a different color that the other links. similar to the menu on this site. I figured I could use some javascript to store which link was clicked then match that to the code outputted by the smarty below. My question is how do I capture which link was clicked then recall and compare it to the links outputted later. the smarty code is below. {if $speed_bar} <td valign="middle" align="right"> <table cellpadding="0" cellspacing="0" align="right"> <tr> {section name=sb loop=$speed_bar} {if $speed_bar[sb].active eq "Y"} <td valign="middle" height="25px"><div>{include file="customer/tab.tpl" tab_title="<a href=\"`$speed_bar[sb].link`\">`$speed_bar[sb].title`</a>"}</div></td> {/if} {/section} </tr> </table> </td> {/if} Link to comment https://forums.phpfreaks.com/topic/139536-highlighted-tab-for-dynamic-menu-xcart/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.