943,712 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Marked Solved
  • Views: 1940
  • JSP RSS
Jan 15th, 2009
0

A Picture drop down list ?

Expand Post »
Is It possible?
Tried this but all i see is blank haha
JSP Syntax (Toggle Plain Text)
  1. while (rs.next())
  2. {
  3. String c=rs.getString("ProductID");
  4. String d=rs.getString("ProductName");
  5. String e=rs.getString ("ProductImage");
  6. out.print("<option value="+c+"><img border=0 src=\"picture/" + e + "\" width = \"170\" height=\"157\"></option>");
  7. }
ANy one with recommendations on how to make a picutre based drop down list
Similar Threads
Reputation Points: 10
Solved Threads: 1
Light Poster
dreamer14 is offline Offline
31 posts
since Sep 2008
Jan 16th, 2009
0

Re: A Picture drop down list ?

Hi Dreamer,

It is possible to set an image as a background for an <option>.

Using CSS, you can set the style of the <option> like width, height, color, background-image, etc.., But IE fails to support this, it simply shows the text. If you view in Mozilla, it works fine.

Try it once. Its Obviously possible.
Check in the following site
http://www.cssplay.co.uk/menus/image_dropdown.html
Last edited by peter_budo; Jan 16th, 2009 at 8:01 am. Reason: Keep It Organized - Use [bbcode] only when it is necessary to the comprehension of your post.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
skumar_meda is offline Offline
2 posts
since May 2008
Jan 16th, 2009
0

Re: A Picture drop down list ?

I tried viewing it in FireFox still doesnt work
Reputation Points: 10
Solved Threads: 1
Light Poster
dreamer14 is offline Offline
31 posts
since Sep 2008
Jan 16th, 2009
0

Re: A Picture drop down list ?

I'm not sure what Firefox you using, but my one is up-to-date and I have no problem to see this effect. It is not exactly the programmable drop down as you tried to do but it does the job
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 871
Code tags enforcer
peter_budo is offline Offline
6,656 posts
since Dec 2004
Jan 19th, 2009
0

Re: A Picture drop down list ?

After trying various ways i found alternative =p thanks for the help =)
Reputation Points: 10
Solved Threads: 1
Light Poster
dreamer14 is offline Offline
31 posts
since Sep 2008
Jan 19th, 2009
0

Re: A Picture drop down list ?

Well if you found alternative why don't you share with others?
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 871
Code tags enforcer
peter_budo is offline Offline
6,656 posts
since Dec 2004
Jan 19th, 2009
0

Re: A Picture drop down list ?

sure
i put it in a
<div style="overflow: auto; width: 780px; height: 530px;">

</div>

thus it is still equally neat.
Reputation Points: 10
Solved Threads: 1
Light Poster
dreamer14 is offline Offline
31 posts
since Sep 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JSP Forum Timeline: Special Characters in JSP
Next Thread in JSP Forum Timeline: Create Dynamic Hyperlink





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC