Customized <select> Input

Discussion in 'JavaScript' started by Pudge1, Sep 30, 2010.

  1. #1
    [​IMG]
    How do I make a customized select box like this in JavaScript? I would assume you use JavaScript because obviously HTML and CSS can't do it. I'm not that great with JavaScript, I can do basic stuff but I have no idea how I would go about doing this. Could someone help me by pointing me in the right direction or give me a basic script that would lead me in the direction of coding this.
     
    Pudge1, Sep 30, 2010 IP
  2. guardian999

    guardian999 Well-Known Member

    Messages:
    376
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #2
    You can use CSS with the background
     
    guardian999, Sep 30, 2010 IP
  3. Pudge1

    Pudge1 Well-Known Member

    Messages:
    912
    Likes Received:
    6
    Best Answers:
    1
    Trophy Points:
    140
    Digital Goods:
    1
    #3
    Yeah but you can't make it a gradient. You also cannot make rounded corners on it or change the type of the arrow or its colors.
     
    Pudge1, Oct 3, 2010 IP
  4. guardian999

    guardian999 Well-Known Member

    Messages:
    376
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #4
    I mean you need css

    
    select{
       background: url('your_rounded_box.png');
    }
    
    input.button{
     background: url('your_button_image');
    }
    
    PHP:
    :p
     
    guardian999, Oct 3, 2010 IP
  5. Pudge1

    Pudge1 Well-Known Member

    Messages:
    912
    Likes Received:
    6
    Best Answers:
    1
    Trophy Points:
    140
    Digital Goods:
    1
    #5
    How will I get the text appear in the background box?
     
    Pudge1, Oct 5, 2010 IP