You might have seen website where the product images changes when you move mouse on it. In this tutorial i’ll show you how to do it with Magento.
You need to create a small module to achieve this. We will add this function in the helper file of the module so it can be called globally anywhere using helper function.
If you are not familiar with module creation i’ll list the steps below:
Step 1: Create a file in “app/etc/modules” named “Greeting_Imagealt.xml”. The content of the file will be.
<?xml version="1.0"?> <config> <modules> <Greeting_Imagealt> <active>true</active> <codePool>local</codePool> </Greeting_Imagealt> </modules> </config>