sowjanya08 Posted April 17, 2010 Share Posted April 17, 2010 Hello Guys! I have used the image swap function to change the color of the whole tshirt on click. But I need to change the color of each part of the tshirt like sleeves, collar etc. which seems to be more complicated. How could this be done? Any help would be appreciated! Quote Link to comment Share on other sites More sharing options...
seventheyejosh Posted April 17, 2010 Share Posted April 17, 2010 Why not just precreate the images you need, then use javascript triggers to change the image src attr? Quote Link to comment Share on other sites More sharing options...
sowjanya08 Posted April 17, 2010 Author Share Posted April 17, 2010 Letme explain with the following image... I am planning for the user to be able to change the color of the t-shirt ( body, collar and sleeve ) so initially i ll be having a plain white tshirt.. using javascript i am able to change the color of the t-shirt entirely by using the swap... pre creating the images for various colors of the shirt... now apart from that,,if i want to change the color of the sleeve, i shud change only the sleeve part alone..not the entire shirt.. which i dono how to do... how can i id or attribute the sleeve or the collar part alone .... [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.