color pickers

Discussion in 'C#' started by red_fiesta, Oct 24, 2006.

  1. #1
    I am giving a user a choice of colour

    What happens is there is a text box and next to it i wanna place a colour palette where they can select from a whole range of colours.

    I am not sure of the best of doing this, please could someone advise and suggest any good code / tutorials

    thanks
     
    red_fiesta, Oct 24, 2006 IP
  2. Mystique

    Mystique Well-Known Member

    Messages:
    2,579
    Likes Received:
    94
    Best Answers:
    2
    Trophy Points:
    195
    #2
    Mystique, Oct 24, 2006 IP
  3. red_fiesta

    red_fiesta Peon

    Messages:
    125
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I want a text box on a page and a select button

    This select button opens a dhtml window which shows the photoshop like color picker which people can the choose any colour

    when they click this then inputs the result into the textfield..

    any clearer?
     
    red_fiesta, Oct 24, 2006 IP
  4. Garve

    Garve Peon

    Messages:
    62
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    This is a beauty. I haven't tried to implement it myself but I'm sure I'll use it soon.

    http://colourmod.com/

    The demo is a little difficult to find - it's at the top of the right column.
     
    Garve, Oct 24, 2006 IP
  5. red_fiesta

    red_fiesta Peon

    Messages:
    125
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    That is awesome..

    But I need to be able to edit the code and use it within my CMS.. I gather from thier site you have to pay for the code and then you cant edit it....

    If anyone has seen any shareware free files/examples like this please let me know as this link is sooo good looking and swish

    Thanks
     
    red_fiesta, Oct 24, 2006 IP
  6. Garve

    Garve Peon

    Messages:
    62
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Garve, Oct 25, 2006 IP
  7. ludwig

    ludwig Notable Member

    Messages:
    2,253
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    225
    #7
    ludwig, Oct 25, 2006 IP
  8. bnts

    bnts Well-Known Member

    Messages:
    2,329
    Likes Received:
    310
    Best Answers:
    0
    Trophy Points:
    165
    #8
    bnts, Oct 25, 2006 IP
  9. ludwig

    ludwig Notable Member

    Messages:
    2,253
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    225
    #9
    You're welcome, its a great one, I found it a few days ago for my friend. I was looking for the same thing that is red_fiesta doing
     
    ludwig, Oct 25, 2006 IP
  10. red_fiesta

    red_fiesta Peon

    Messages:
    125
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Thanks...

    What i need to know now is ..

    if i have this javascript code

    "&colorOld="+document.getElementById(color1).value;

    this will bring in the value of color1

    I need to check that color1 doesnt have # at the beginning and if it does remove it.. any ideas.

    Cheers


    Here is the full code

    function show_picker(ID, Current_Color, Previous_Color){
    which_input = ID;
    var lnk = "colorpicker/select_color.asp?textName="+document.getElementById(which_input).id+"&colorOld="+document.getElementById(which_input).value;
    window.open(lnk, "", "width=300, height=300");
    }
     
    red_fiesta, Oct 25, 2006 IP