Jump to content

How to change image while changing attribute


balrajmalai

Recommended Posts

Use onclick event on your radio buttons.

 

For example how PS does a picture change see

themes<your theme folder>/product.tpl

and

themes<your theme folder>/js/product.js

 

Search for onclick and see how they use it to call functions that change the colour of a product when clicking a colour in the colour list

 

About the onclick event itself, see for example here:

http://www.w3schools.com/jsref/event_onclick.asp

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...