Kinda depends on how you build the list of links i guess. What you need is
a unique identifier. But would be more easy if you show some code.
item 1 cart.php?item=1
item 2 cart.php?item=2
Then when you make the links. Use a loop
foreach($links as $link) {
if ($link["id"] == $_GET["item"])
{
// arrow image here
}
}
Well anyway. Show some code how you build the links list. My code sucks
but it's a start. It's to early :)
Gr,
Thijs
> Hello,
>
> I am really new to all this and I am really hoping I can get some
> help PLEASE...
> I am making a website with x-cart which uses PHP and Smarty templates.
>
> I need to make an " if " statement that puts a little arrow gif in
> front of the link that is clicked on! make any sense?
>
> In other words:
>
> item 1 (not selected)
> item 2 (not selected)
> > item 3 (selected)
> item 4 (not selected)
>
> This is what I have now, but I don't know what to call my {if ?????}
>
> {if ?????}<A href="{?????}"><FONT class="buttontextonly"><IMG
> src="{$ImagesDir}/arrow.gif" width="9" height="7" border="0"
> align="abstop">{$menu_content}</FONT></A>
> {else}
> <FONT class="VertMenuTitle">{$menu_content}</FONT>
> {/if}</TD>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php