[Skip to main content](#vessel-content)

#   Category image rollover

##

- **[gavin.evans](/forum/user/12042-gavin-evans "View gavin.evans's Profile")**
- [![gavin.evans's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12042-gavin-evans "View gavin.evans's Profile") Topic Author
- [ Offline](/forum/user/12042-gavin-evans)

Less More

- Posts: 12
- Thank you received: 1
-
-

13 years 9 months ago [\#84700](#84700) by [gavin.evans](/forum/user/12042-gavin-evans "View gavin.evans's Profile")  *[Category image rollover](/forum/2-general-talk-about-hikashop/77307-category-image-rollover#84700 "Hi,  Can some one help please, I would like the image assigned to a category to rollover to a different image on mouse over. Is this possible.  Thanks  Gavin")* was created by *[gavin.evans](/forum/user/12042-gavin-evans "View gavin.evans's Profile")*

Hi,

Can some one help please, I would like the image assigned to a category to rollover to a different image on mouse over. Is this possible.

Thanks

Gavin

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3MzA3LWNhdGVnb3J5LWltYWdlLXJvbGxvdmVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 9 months ago [\#84732](#84732) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Category image rollover](/forum/2-general-talk-about-hikashop/77307-category-image-rollover#84732 "Hi,  Can some one help please, I would like the image assigned to a category to rollover to a different image on mouse over. Is this possible.  Thanks  Gavin")*

Hi,

Yes it's possible, you have to edit the view "category / listing_img_title" (if you want the edition in this listing of categories) in HikaShop &gt; Display &gt; Views.
And add a onMouseOver on the &lt;a ..&gt; link.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3MzA3LWNhdGVnb3J5LWltYWdlLXJvbGxvdmVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[gavin.evans](/forum/user/12042-gavin-evans "View gavin.evans's Profile")**
- [![gavin.evans's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12042-gavin-evans "View gavin.evans's Profile") Topic Author
- [ Offline](/forum/user/12042-gavin-evans)

Less More

- Posts: 12
- Thank you received: 1
-
-

13 years 9 months ago -  13 years 9 months ago [\#84890](#84890) by [gavin.evans](/forum/user/12042-gavin-evans "View gavin.evans's Profile")  Replied by *[gavin.evans](/forum/user/12042-gavin-evans "View gavin.evans's Profile")* on topic *[Category image rollover](/forum/2-general-talk-about-hikashop/77307-category-image-rollover#84890 "Hi,  Can some one help please, I would like the image assigned to a category to rollover to a different image on mouse over. Is this possible.  Thanks  Gavin")*

Sorry can't see where to put the on mouse over event in the code. Can you point it out for me please

> View file content removed by a moderator.
> We do have content of the views, don't worry ![:)](/media/kunena/emoticons/3.png ":)")

Last edit: 13 years 9 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3MzA3LWNhdGVnb3J5LWltYWdlLXJvbGxvdmVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 9 months ago [\#84981](#84981) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Category image rollover](/forum/2-general-talk-about-hikashop/77307-category-image-rollover#84981 "Hi,  Can some one help please, I would like the image assigned to a category to rollover to a different image on mouse over. Is this possible.  Thanks  Gavin")*

The code to edit is: Code:

&lt;a href="&lt;?php echo $link;?&gt;" title="&lt;?php echo $this-&gt;escape($this-&gt;row-&gt;category_name); ?&gt;"&gt; &lt;?php echo $this-&gt;image-&gt;display(@$this-&gt;row-&gt;file_path,false,$this-&gt;escape($this-&gt;row-&gt;file_name), '' , '' , $this-&gt;image-&gt;main_thumbnail_x, $this-&gt;image-&gt;main_thumbnail_y); ?&gt; &lt;/a&gt;

Try to add the onMouseOver in the &lt;a ...&gt; tag, like: "&lt;a href="&lt;?php echo $link;?&gt;" onmouseover="changeImage();" title="&lt;?php echo $this-&gt;escape($this-&gt;row-&gt;category_name); ?&gt;"&gt;"
Then create the function changeImage to display one image or the other one when overred.

It require some JavaScript knowledge.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3MzA3LWNhdGVnb3J5LWltYWdlLXJvbGxvdmVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.084 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
