Jump to content

Onmoseover


Recommended Posts

Bonjour à tous j'ai un petit souci , au passage de la souris mon image s'affiche bien mais reste afficher quand je déplace le curseur

voici mon bout de code

 

{if isset($product.colors) && $product.colors}

<span class="color_text">Couleurs disponibles :</span>

{foreach from=$product.colors key='id_attribute' item='color'}

<a id="{$product.id_product}-{$color.id_image}" class="color_pick" onmouseover="document.getElementById('img_{$product.id_product}').src='{$link->getImageLink($product.link_rewrite, $color.id_image, 'categorie')}'" title="{$color.name}" style="background: {$color.value};"></a>

{/foreach}

{/if}

 

Merci

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...