A Picture drop down list ?

Thread Solved

Join Date: Sep 2008
Posts: 21
Reputation: dreamer14 is an unknown quantity at this point 
Solved Threads: 1
dreamer14 dreamer14 is offline Offline
Newbie Poster

A Picture drop down list ?

 
0
  #1
Jan 15th, 2009
Is It possible?
Tried this but all i see is blank haha
  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
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 2
Reputation: skumar_meda is an unknown quantity at this point 
Solved Threads: 1
skumar_meda skumar_meda is offline Offline
Newbie Poster

Re: A Picture drop down list ?

 
0
  #2
Jan 16th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 21
Reputation: dreamer14 is an unknown quantity at this point 
Solved Threads: 1
dreamer14 dreamer14 is offline Offline
Newbie Poster

Re: A Picture drop down list ?

 
0
  #3
Jan 16th, 2009
I tried viewing it in FireFox still doesnt work
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,177
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 479
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: A Picture drop down list ?

 
0
  #4
Jan 16th, 2009
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
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 21
Reputation: dreamer14 is an unknown quantity at this point 
Solved Threads: 1
dreamer14 dreamer14 is offline Offline
Newbie Poster

Re: A Picture drop down list ?

 
0
  #5
Jan 19th, 2009
After trying various ways i found alternative =p thanks for the help =)
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,177
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 479
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: A Picture drop down list ?

 
0
  #6
Jan 19th, 2009
Well if you found alternative why don't you share with others?
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 21
Reputation: dreamer14 is an unknown quantity at this point 
Solved Threads: 1
dreamer14 dreamer14 is offline Offline
Newbie Poster

Re: A Picture drop down list ?

 
0
  #7
Jan 19th, 2009
sure
i put it in a
<div style="overflow: auto; width: 780px; height: 530px;">

</div>

thus it is still equally neat.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JSP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC