yogibear333 Posted April 2, 2008 Share Posted April 2, 2008 can anyone help me by telling me how to add an image to a dropdown box? Link to comment https://forums.phpfreaks.com/topic/99253-image-in-dropdown/ Share on other sites More sharing options...
discomatt Posted April 2, 2008 Share Posted April 2, 2008 In a form element? Impossible In a DHTML dropdown? http://www.google.ca/search?q=images+in+dhtml+drop+down Link to comment https://forums.phpfreaks.com/topic/99253-image-in-dropdown/#findComment-507848 Share on other sites More sharing options...
Guest Posted April 2, 2008 Share Posted April 2, 2008 This sample demonstrates how to use the DynAPI to create a 100% DHTML-based ComboBox with images. http://xfx.net/utilities/dmbuilderde/help/Samples/combobox/ another possibility is to make a fake dropdown menu using css and then adding an image would be no problem. <style type="text/css"> #dropdown {width:240px; height:84px; border:2px inset #ccc; overflow:auto;} #dropdown a {text-align:left; font:9pt/10pt arial,verdana,sans-serif; padding-left:2px; margin:0; white-space:nowrap;} #dropdown a.menu:link {text-decoration:none; display:block; background-color:#fff; color:#000;} #dropdown a.menu:visited {text-decoration:none; display:block; background-color:#fff; color:#000;} #dropdown a.menu:hover {text-decoration:none; display:block; background-color:#000; color:#fff;} #dropdown a.menu:active {text-decoration:none; display:block; background-color:#000; color:#fff;} </style> <div id="dropdown"> <a class="menu" href="index.htm" target="_top">How To Download Files</a> <a class="menu" href="bestdropdownmenu.htm" target="_top">Best Dropdown Menu</a> <a class="menu" href="embeddingmediainhtml.htm" target="_top">Embedding Media In HTML</a> <a class="menu" href="miscellaneousinternettips.htm">Miscellaneous Internet Tips</a> <a class="menu" href="pubcomp.htm">Using Public Computers</a> <a class="menu" href="uncorruptinghtmlfiles.htm">Uncorrupting HTML Files</a> <a class="menu" href="validatorcheats.htm">HTMLValidator Cheats</a> <a class="menu" href="yahoogeocitiestips.htm">Yahoo! Geocities Tips</a> <a class="menu" href="worldgeocities.htm">World Geocities</a> </div> Link to comment https://forums.phpfreaks.com/topic/99253-image-in-dropdown/#findComment-507876 Share on other sites More sharing options...
discomatt Posted April 2, 2008 Share Posted April 2, 2008 Just to add, none of the above scripts will work within a form Link to comment https://forums.phpfreaks.com/topic/99253-image-in-dropdown/#findComment-507888 Share on other sites More sharing options...
yogibear333 Posted April 3, 2008 Author Share Posted April 3, 2008 so there is no way to add image to dropdown in forms? AAAAAAAAHHHHHHH damn was hoping you could :'( Link to comment https://forums.phpfreaks.com/topic/99253-image-in-dropdown/#findComment-508229 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.