bukiszon Posted October 11, 2016 Share Posted October 11, 2016 Hi, I have code in hook.tpl: <div id="htmlcontent_{$hook|escape:'htmlall':'UTF-8'}"{if $hook == 'footer'} class="footer-block col-xs-12 col-sm-4"{/if}> <ul class="htmlcontent-home clearfix row"> {foreach name=items from=$htmlitems item=hItem} {if $hook == 'left' || $hook == 'right'} <li class="htmlcontent-item-{$smarty.foreach.items.iteration|escape:'htmlall':'UTF-8'} col-xs-12"> {else} <li class="htmlcontent-item-{$smarty.foreach.items.iteration|escape:'htmlall':'UTF-8'} col-xs-4"> {/if} {if $hItem.url} <a href="{$hItem.url|escape:'htmlall':'UTF-8'}" class="item-link"{if $hItem.target == 1} onclick="return !window.open(this.href);"{/if} title="{$hItem.title|escape:'htmlall':'UTF-8'}" alt="test1"> {/if} {if $hItem.image} <img src="{$link->getMediaLink("`$module_dir`img/`$hItem.image`")}" class="item-img {if $hook == 'left' || $hook == 'right'}img-responsive{/if}" title="{$hItem.title|escape:'htmlall':'UTF-8'}" alt="test2" width="{if $hItem.image_w}{$hItem.image_w|intval}{else}100%{/if}" height="{if $hItem.image_h}{$hItem.image_h|intval}{else}100%{/if}"/ > {/if} {if $hItem.title && $hItem.title_use == 1} <h3 class="item-title">{$hItem.title|escape:'htmlall':'UTF-8'}</h3> {/if} {if $hItem.html} <div class="item-html"> {$hItem.html} </div> {/if} {if $hItem.url} </a> {/if} </li> {/foreach} </ul> </div> it display image inside content_top DIV like this: I'd like to add rollover image effect to both images. But first one should rollover to difrent than second one, so I can't simply add this inside img tag: onmouseover="img_1_1"onmouseout="img_1_2" Any ideas how to solve his? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now