View Single Post
  #8  
Old 10-22-2008, 12:34 AM
 
junaid junaid is offline
 

Advanced Member
  
Join Date: Dec 2003
Posts: 96
 

Default Re: changing link color

Quote:
Originally Posted by JWait
Can you provide a link to a page on your site that has what you are talking about? If not can you provide a snippet of the code that you think is where you need the change?
here is the code:
------------------
<div id="sort">{if $url eq '' && $navigation_script ne ''}{assign var="url" value=$navigation_script|cat:"&"}{/if}<br>
Sort Products By: {foreach from=$sort_fields key=name item=field} <a href="home.php?cat={$cat}&sort={$name}">{$field}</a>
|{/foreach}</div>

--------

sort fields = new | best sellers first | price low to high | price high to low | most viewed |


what i want is when user is on New it is highlighted and others are in black font color.
when user clicks best sellers first and page loads best seller link is highlighted other links remain black.

i hope i am able to clear you guys now.
thanks for your time.
__________________
xcart 4.18 on linux
Reply With Quote