Results 1 to 2 of 2
Jul 13, 2006, 07:50 #1
- Join Date
- Mar 2006
- Stockholm, Sweden
- 0 Post(s)
- 0 Thread(s)
I'm currently working on tweaking a colorpicker. The original colorpicker was made by Bjorge Dijkstra (http://www.sqweek.com), all credits belong to him
Here is the colorpicker: http://www.airabove.com/examples/test.html
Click on the box next to the field to open the colorpicker. As you can see it wont position at all.
As the source is 500 lines+ I wont paste it here, it can be found here instead: http://www.airabove.com/examples/rgbcp/rgbcp.js
The functions for positioning are marked.
Hope that someone can bring some light on this issue!
Aug 3, 2006, 00:19 #2
u can set the position of window i'll let u know how?
go to function name function cp_show(event, obj, pal) in ur js file
then in this function there are some parameter u can move the window according to ur need u can move window x/y axis.
change these lines
cp.style.left = ax + sx + 40;
cp.style.top = ay + sy;
to this line
cp.style.left = ax + sx + 0;
cp.style.top = ay + sy + 100;