![]() |
variabalize a function ?
Good day to you all,
I'm working on a color picker in javascript and css. I have found a script that works, but my problem it is made to choose only 1 color, how can I make my code to work for 5. I know that php is a server-side language, but I think I could be able to modify my code in that sense. Here is my code : PHP Code:
|
A color picker in javascript has nothing to do with php and ajax, just to clear that up.
What is loadSV and updateH, and $S? Whats all this? If it comes down to this, I would pick jQuery, just write an extension or use the color picker plugin @ http://www.eyecon.ro/colorpicker/ / http://acko.net/dev/farbtastic and just modify that to support the amount of optional colors you want. UPDATE I checked out, http://www.eyecon.ro/colorpicker/, it looks perfect for what you need, just modify anything visually and that's all you need. Building a color picker by yourself, looks like a big challenge to do ( requires quite a bit of math to allocate every hex code out there ), speciously if you're trying to select optional colors. |
| All times are GMT. The time now is 01:45 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0