Results 1 to 10 of 10

Thread: Colorjack Script Question

  1. #1
    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!!!!

  2. #2
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Hide object onload:
    Code:
    <body onload="toggle('element')">
    Link to click:
    Code:
    <a href="javascript:toggle('element')">My Link</a>
    - Mike

  3. #3
    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

  4. #4
    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!

  5. #5
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    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

  6. #6
    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>

  7. #7
    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!

  8. #8
    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!

  9. #9
    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.

  10. #10
    Join Date
    Jun 2007
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Someone help.... please...

    Any sugestion is welcome...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •