Kryptix Posted March 13, 2010 Share Posted March 13, 2010 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? Link to comment https://forums.phpfreaks.com/topic/195141-flag-images-in-a-drop-down-menu/ Share on other sites More sharing options...
Kryptix Posted March 14, 2010 Author Share Posted March 14, 2010 Anyone? Link to comment https://forums.phpfreaks.com/topic/195141-flag-images-in-a-drop-down-menu/#findComment-1025794 Share on other sites More sharing options...
haku Posted March 14, 2010 Share Posted March 14, 2010 I don't think it's possible. At least not in all browsers. Do you have an example of a site that does this? Link to comment https://forums.phpfreaks.com/topic/195141-flag-images-in-a-drop-down-menu/#findComment-1025818 Share on other sites More sharing options...
slurpee Posted March 14, 2010 Share Posted March 14, 2010 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. Link to comment https://forums.phpfreaks.com/topic/195141-flag-images-in-a-drop-down-menu/#findComment-1025851 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.