putting image in dropdownlist?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
lmh85
Forum Commoner
Posts: 49
Joined: Sat Oct 28, 2006 10:49 am

putting image in dropdownlist?

Post by lmh85 »

Anyone knows how i can go about putting in image in each option of a dropdownlist?Please help! thanks!
User avatar
evilchris2003
Forum Contributor
Posts: 106
Joined: Sun Nov 12, 2006 6:43 am
Location: Derby, UK

Post by evilchris2003 »

The answer uses Javascript and HTML

Try this

http://simplythebest.net/scripts/DHTML_ ... pt_26.html

Isnt Google fantastic
lmh85
Forum Commoner
Posts: 49
Joined: Sat Oct 28, 2006 10:49 am

Post by lmh85 »

hmmm.. any other choice? javascript don't seems to work well.. :(
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

There's nothing native that's cross-browser. So it's either build your own drop down with DHTML or come up with a different way.
lmh85
Forum Commoner
Posts: 49
Joined: Sat Oct 28, 2006 10:49 am

Post by lmh85 »

i found a way at http://webfx.eae.net/dhtml/select/jsGenerated.html
great one but it will become a normal dropdownlist when its viewed in firefox..
Anyway, Thanks for the help!! Thanks a lot! :D
Post Reply