I have an image gallery set up with album. It consists of a row of small thumbnails and a larger image. Clicking each thumbnail changes the large image (all on one page). Works great. Is there a way I can have the thumbnail of the current image display differently - for example, a border around the image - to designate that's the image you're looking at? Kind of like how we can establish a 'current' link status in Menu? Here is the code for the working album - just don't know how to implement the 'current image' element. Thanks in advance for anyone's help!
Code for large photo:
Code: Select all
<div class="boxgrid captionfull">
<img src="{$picture->picture}" alt="{$picture->name|escape:'html'}" title="{$picture->name|escape:'html'}" />
<div class="cover boxcaption">{$picture->name}{if $picture->comment}: {$picture->comment}{/if}</div>
</div>
Code: Select all
<table>
{foreach from=$pictures item=picturesrow}
<tr style="vertical-align:middle">
{foreach from=$picturesrow item=onepicture}
<td style="text-align:center">
<a href="{$onepicture->link}" style="border: 0;"><img src="{$onepicture->thumbnail}" alt="{$onepicture->thumbnail}" style="border: 0; height: 44px;" /></a>
</td>
{if ($onepicture->number==$picturenumber and !$picture)}{assign var=picture value=$onepicture}{/if}
{/foreach}
</tr>
{/foreach}
</table>
http://img269.imageshack.us/img269/7650 ... timage.jpg


