PDA

View Full Version : Question:about YUI Color Picker script



fdi
12-24-2007, 04:40 AM
1) Script Title: YUI Color Picker

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex11/yuicolorpicker/

3) Describe problem: Question


Hello All

I want to change the color of an object when the color change in the color Picker, is this possible..!
becuase I want to change the background color of an image (PNG) direct when the color change in the color Picker.

thank you all in advanced.

fdi
12-24-2007, 06:44 AM
I solve it. :)


write

document.getElementById("tshirt").style.backgroundColor = "#" + hexvalue;

at the end of pickerSwatchUpdate() function in Html Page



thank you