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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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