View Full Version : Colorjack Script Question

04-24-2007, 05:24 PM
1) Script Title:
ColorJack DHTML color picker
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex11/colorjack/index.htm

3) Describe problem:
The color picker shows up automatically when the page loads. Is there a way to keep it closed until the person clicks on the link to open the picker?

Thank you,


PS. I love dynamicdrive.com!!!!

04-24-2007, 05:28 PM
Hide object onload:

<body onload="toggle('element')">
Link to click:

<a href="javascript:toggle('element')">My Link</a>

04-25-2007, 04:36 PM
Thank you for the quick response. Your solution worked just like I wanted it to.

Kim :)

07-03-2007, 09:05 AM
Sorry to ask but where do I put the <body onload="toggle('plugin')"> code?
In the Html code? In what section? Head? Body?

In the normal code of colorjack srcipt?


07-03-2007, 09:28 AM
Replace it with the <body> tag.

07-03-2007, 10:21 AM
Thanks for your quick help!

I replaced the <body> tag for <body onload="toggle('element')"> but it still open the color box picker when the page loads. I also replaced the word 'element' with the div id that I use.
What i'm doing wrong?

I copy the code that im using, maybe it could help.

<div id="plugin" onmousedown="HSVslide('drag','plugin',event)" style="TOP: 490px; LEFT: 675px; Z-INDEX: 20;">
<div id="plugHEX" onmousedown="stop=0; setTimeout('stop=1',100);">F1FFCC</div><div id="plugCLOSE" onmousedown="toggle('plugin')">X</div><br>

<div id="SV" onmousedown="HSVslide('SVslide','plugin',event)" title="Saturation + Value">
<div id="SVslide" style="TOP: -4px; LEFT: -4px;"><br /></div>
<form id="H" onmousedown="HSVslide('Hslide','plugin',event)" title="Hue">
<div id="Hslide" style="TOP: -7px; LEFT: -8px;"><br /></div>
<div id="Hmodel"></div>

07-04-2007, 03:44 PM
Im know im dumb in this questions but could you have patiente and help me with more detailed explanations?

I would like very much to use this script but I don't want that the color picker open by default.

I already have the link to open and close the color picker, but every time the the page loads the color picker is open by default.


07-06-2007, 08:09 AM
It didnīt work because the html page have one more script from DD.

I guess it is script conflict.:(

I tryed in a html page only with that script and work just fine.:)

I have to find another way!:cool:

I love this color picker!:)

07-09-2007, 03:01 PM
In the last days I tryed all that I remember to make this script work the way I want (closed when page loads) but I always fail.

It fails because in the html page code there is another DD Script.
That is the only reason to fail. But my problem is that I like both scripts.:)

Im posting this message only to see if someone managed to put working this colorjack script (closed when page loads) with another script in the same html code?

Itīs strange because the script works fine with another DD script in the same page, but when I put the code to avoid the initial load it's caos....

Hell:confused: Im starting to see strange things.:eek:

07-17-2007, 03:54 PM
Any sugestion is welcome...