Go Back   Dynamic Drive Forums > DD Scripts > Dynamic Drive scripts help
Search Dynamic Drive Forums:

Reply
 
Thread Tools Search this Thread
  #1  
Old 04-24-2007, 06:24 PM
kimadamson1 kimadamson1 is offline
New Comer (less than 5 posts)
 
Join Date: Apr 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Colorjack Script Question

1) Script Title:
ColorJack DHTML color picker
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...jack/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,

Kim

PS. I love dynamicdrive.com!!!!
Reply With Quote
  #2  
Old 04-24-2007, 06:28 PM
mburt's Avatar
mburt mburt is offline
Elite Coders
 
Join Date: Jul 2006
Location: Canada
Posts: 2,507
Thanks: 5
Thanked 22 Times in 22 Posts
Default

Hide object onload:
Code:
<body onload="toggle('element')">
Link to click:
Code:
<a href="javascript:toggle('element')">My Link</a>
Reply With Quote
  #3  
Old 04-25-2007, 05:36 PM
kimadamson1 kimadamson1 is offline
New Comer (less than 5 posts)
 
Join Date: Apr 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Thank you

Thank you for the quick response. Your solution worked just like I wanted it to.

Kim
Reply With Quote
  #4  
Old 07-03-2007, 10:05 AM
toniomorais toniomorais is offline
Junior Coders
 
Join Date: Jun 2007
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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?

Thanks!
Reply With Quote
  #5  
Old 07-03-2007, 10:28 AM
tech_support's Avatar
tech_support tech_support is offline
Modarator Man.
 
Join Date: May 2006
Location: Sydney, Australia - Near the coast.
Posts: 2,011
Thanks: 0
Thanked 8 Times in 7 Posts
Default

Replace it with the <body> tag.
__________________
Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
Currently: enjoying the early holidays :)
Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide
Reply With Quote
  #6  
Old 07-03-2007, 11:21 AM
toniomorais toniomorais is offline
Junior Coders
 
Join Date: Jun 2007
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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>
</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>
</form>
</div>
Reply With Quote
  #7  
Old 07-04-2007, 04:44 PM
toniomorais toniomorais is offline
Junior Coders
 
Join Date: Jun 2007
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help

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.

Thanks!
Reply With Quote
  #8  
Old 07-06-2007, 09:09 AM
toniomorais toniomorais is offline
Junior Coders
 
Join Date: Jun 2007
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default sorry for my mistake

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!

I love this color picker!
Reply With Quote
  #9  
Old 07-09-2007, 04:01 PM
toniomorais toniomorais is offline
Junior Coders
 
Join Date: Jun 2007
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help!

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 Im starting to see strange things.
Reply With Quote
  #10  
Old 07-17-2007, 04:54 PM
toniomorais toniomorais is offline
Junior Coders
 
Join Date: Jun 2007
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default Someone help.... please...

Any sugestion is welcome...
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:19 AM.

Home - Contact Us - Archives - Link to DD - Top 

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.