Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Apr 2005
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Image in dropdown option

    I know this one is really hard, i searched the whole internet for this one...

    How can I put an image in a dorpdown option. I know this isn't possible the normal way. And maybe I need to write an own dropdown, but maybe some can think of something.

    Who has an idea, how it could be done, and what do you think is the easiest way?

  • #2
    Senior Coder
    Join Date
    Mar 2005
    Location
    Portsmouth UK
    Posts
    4,518
    Thanks
    3
    Thanked 506 Times in 493 Posts
    Mozilla FF not IE

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
    
    <html>
    
    <head>
      <title></title>
    </head>
    
    <body>
    <select >
    <option>1234567890</option>
    <option style="text-align:center;background-image:url(http://www.vicsjavascripts.org.uk/StdImages/One.gif);" >12345</option>
    </select>
    </body>
    
    </html>

  • #3
    New Coder
    Join Date
    Apr 2005
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Nice one, but i really need one that works in IE as wel...

  • #4
    Senior Coder
    Join Date
    Mar 2005
    Location
    Portsmouth UK
    Posts
    4,518
    Thanks
    3
    Thanked 506 Times in 493 Posts
    just need to wait a few years then

    or use a fake select list (google)
    I have one on my site
    http://www.vicsjavascripts.org.uk/Fa...FakeSelect.htm
    but it needs a bit more work.


  •  

    Posting Permissions

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