Log in

View Full Version : Dynamically changing image color and specific items on image...



Nuwanda
04-24-2013, 01:57 PM
Hello,
Is there anyone who know how the image operation in the website blow is managed? Is it css, or is it a script? Car color and rims can be changed dynamically on the fly...

Anyone who know this tecnique, would you please tell how this can be managed?

www. elektrony.cz/cs/alu-kola/konfigurator/renault/renault-laguna-t-5-114//17/#?brand=lantisi&type=lantisi-289&id=43238&color=000000

Thanks...

jscheuer1
04-28-2013, 03:52 AM
It's not anything special. They just have several different images, one of the car and one for each wheel. If you click on one thing - say to change the car color, they change the image of the car to one of that color. If you click on a different wheel type and/or color, they change the wheel type and/or color of the two wheel images.

The way they're doing it is a little more complicated, but that's really all there is to it (in simplest terms):


<a href="#" onclick="document.getElementById('carimage').src = 'redcar.jpg'; return false;">RED</a>