/    Sign up×
Community /Pin to ProfileBookmark

Hey guys, I’m not sure if this is the correct forum to post this in but I thought it would be a good starting place. ?

I was wondering if it is possible to have images in a drop down menu. I have a ton of smilie images and I don’t want to have to put every one on the page cause that might take alot of work and just not be very nice.

I wanted (if possible) to have all the smilie images in a drop down menu so the user can just select the one they want and when they choose one the corasponding code for it will be inserted into a textarea I have on the same page.

I have seen people manipulate drop down menus before but nothing like this. Oh and if you haven’t already figured it out, I want to do this with just a form drop down menu if possible. I don’t want to have to use javascript. Thank you for any help. ?

[b]P.S.[/b] If it’s not possible and you guys think of another way that I could nicely display all of them I am open to ideas. Thanks. ?

to post a comment
HTML

5 Comments(s)

Copy linkTweet thisAlerts:
@JayDieMar 15.2004 — It does not simply work like:

[code=php]
<SELECT>
<OPTION>Image <IMG src="pic.jpg"></OPTION>
</SELECT>
[/code]


The dropdown box is a text variant...

Don't know if it is possible...

JayDie
Copy linkTweet thisAlerts:
@JickauthorMar 16.2004 — I just tried that code you posted and interestingly enough it displayed the word "Image" inside the drop down and not the image itself! Anybody else know if this is possible or if there is another way to do it? Thanks for the help. ?
Copy linkTweet thisAlerts:
@SamMar 16.2004 — do you mean a combo box or a drop down? in a combo box (like the above example) it is impossible, although with vladdy's [URL=http://www.vladdy.net/Demos/CSSNav.html]nav[/URL] and a little tweaking (pehaps having an overflow:scroll ul popup) you could achieve what you're looking for...
Copy linkTweet thisAlerts:
@JickauthorMar 16.2004 — Yes! I mean a drop down like in the example above!
Copy linkTweet thisAlerts:
@JayDieMar 16.2004 — [i]Originally posted by mjdimick [/i]

[B]I just tried that code you posted and interestingly enough it displayed the word "Image" inside the drop down and not the image itself![/B][/QUOTE]


That's what I said before...:

[i]Originally posted by JayDie [/i]

[B]It does not simply work like:[/B][/QUOTE]


Dropdown/Combobox... I thought it was the same?

JayDie
×

Success!

Help @Jick spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...