COLOR PICKER FOR YOU!!
You'll want this on your Portal, very handy tool indeed!
Demo (http://www.cripcan.com/tst/index.php?page=6)
Unzip, upload all files, folders in order to your Forum Root!
Create a New Article: -
add in an IFrame -
<iframe src="demo.htm" width="!00%" height="850" border="0"></iframe>
You'll never go looking for a color chart again...
<h3>Customization</h3>
<p align="justify">While this script references multiple .js files, to integrate the color picker with your form in the fashion above, you do not need to be bothered with modifying any of these files. Instead, there are only two changes you need to make to the code of "demo.htm" to integrate the color picker into your page:</p>
1) Locate the code:
<p align="justify">ddcolorposter.fillcolorbox("colorfield1", "colorbox1") //PREFILL "colorbox1" with hex value from "colorfield1"</p>
<p align="justify">ddcolorposter.fillcolorbox("colorfield2", "colorbox2") //PREFILL "colorbox1" with hex value from "colorfield1"</p>
<p align="justify">These two lines are used to prefill the color boxes to the right of the form fields in question with the color currently inside the field when the page first loads. Without this code, when your page loads, the color boxes will not be initially filled with the color values inside the form fields.</p>
<p align="justify">There are two fields in the demo, hence two lines. The first parameter of fillcolorbox(), "colorfield1", should be the ID of the form field, while the second parameter, the ID of the matching color box.</p>
<p>See below for more information.</p>
2) Locate the code:
<form>
# <input type="text" id="colorfield1" onFocus="ddcolorposter.echocolor(this, 'colorbox1')"> <span id="colorbox1" class="colorbox">____</span>
# <input type="text" id="colorfield2" onFocus="ddcolorposter.echocolor(this, 'colorbox2')"> <span id="colorbox2" class="colorbox">____</span>
</form>
<p align="justify">This code demonstrates how to integrate the color picker with any form field on your page.</p>
<p align="justify">The key is the add the code:</p>
<p align="justify">onFocus="ddcolorposter.echocolor(this, 'colorbox1')" inside the desired form fields, where "colorbox1" is the ID of color box.</p>
<h2>That's it!</h2>
Nice Crip, thank you :)
What have happend to your theme header ? all squashed to gether ???
it upshrinked is all..?
The shrink doesent work for me on the article page, it stays down ???
For some reason, it doesn't go to the width of the page even though the code says 100%.
Oh I see the problem, your 100% is !00% :o
If you view it on the Forum it's a tad bit wider.. Forum width is set on 82% ! @ RR
thanks for the useful script......and the new smiley. ;)
Quote from: crip on October 11, 2006, 07:58:02 PM
If you view it on the Forum it's a tad bit wider.. Forum width is set on 82% ! @ RR
I left mine at 100% and disabled the left and right blocks when viewing the article. :up:
I just noticed something with this script, you can click and drag the color box anywhere within the Article.. :)
Hi
thats a great piece of work is that
This would be real handy for me but there's no download link anymore?
No download, and demo page no longer exists...
Perhaps you should consider the date it was posted?
« on: 10/10/06: 03 »
yep, that is 2 years ago...