Author Topic: Flag Images in a Drop Down Menu  (Read 1119 times)

0 Members and 1 Guest are viewing this topic.

Offline KryptixTopic starter

  • Enthusiast
  • Posts: 269
  • Gender: Male
    • View Profile
    • RuneScape Classic
Flag Images in a Drop Down Menu
« on: March 13, 2010, 03:16:38 PM »
I'm making a country selection with a drop down menu and have 200 countries in PNG format (16 x 11 pixels or something close to that). I can loop through them all and display them in a list fine but I need to know how to add a image into the actual drop down menu. I've never done this before and don't know how to do it.

Any ideas?

Offline KryptixTopic starter

  • Enthusiast
  • Posts: 269
  • Gender: Male
    • View Profile
    • RuneScape Classic
Re: Flag Images in a Drop Down Menu
« Reply #1 on: March 13, 2010, 10:25:54 PM »
Anyone?

Offline haku

  • Guru
  • Freak!
  • *
  • Posts: 5,707
  • Old Man
    • View Profile
Re: Flag Images in a Drop Down Menu
« Reply #2 on: March 14, 2010, 12:30:28 AM »
I don't think it's possible. At least not in all browsers. Do you have an example of a site that does this?

Offline slurpee

  • Irregular
  • Posts: 42
    • View Profile
Re: Flag Images in a Drop Down Menu
« Reply #3 on: March 14, 2010, 04:19:45 AM »
You can use some JavaScript Framework plugin to do this.  This is a jQuery plugin that  seems to be just what you need.  http://www.filamentgroup.com/lab/jquery_ui_selectmenu_an_aria_accessible_plugin_for_styling_a_html_select/.  Some of the bottom demos have images in them.