Jump to content

changing color on click


sowjanya08

Recommended Posts

Hello Guys,

          I am trying to build a design/configurator kit like the one shown in the following link

http://www.customink.com/lab/?PK=04615

 

Please help me with the start up for this work. How can i start my coding.

How can we write a code such that when a user clicks on the color , the color of the shirt changes instantly(i.e., the code must be such that any change in the code must reflect as soon as a change is made).

It would be great if i can get a sample code for this scenario.

Any help would be appreciated! :D :D 

 

 

Link to comment
https://forums.phpfreaks.com/topic/197272-changing-color-on-click/
Share on other sites

[Moved topic to JavaScript forum]

 

This requires client-side code (i.e. JavaScript). For changing the color you would just need a simple image-swap function. Just google for it and I'm sure you will find plenty.

 

For the text you will need to utilize CSS layers along with the JavaScript.

 

That site has quite a bit of complexity - especially with regard to the font handling. I'd suggest just sticking to basic text for now.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.