DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   JSP (http://www.daniweb.com/forums/forum24.html)
-   -   A Picture drop down list ? (http://www.daniweb.com/forums/thread168601.html)

dreamer14 Jan 15th, 2009 3:54 pm
A Picture drop down list ?
 
Is It possible?
Tried this but all i see is blank haha
while (rs.next()) 
{
String c=rs.getString("ProductID");
String d=rs.getString("ProductName");
String e=rs.getString ("ProductImage");
out.print("<option value="+c+"><img border=0 src=\"picture/" + e + "\" width = \"170\" height=\"157\"></option>");
}
ANy one with recommendations on how to make a picutre based drop down list

skumar_meda Jan 16th, 2009 5:20 am
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

dreamer14 Jan 16th, 2009 10:08 am
Re: A Picture drop down list ?
 
I tried viewing it in FireFox still doesnt work

peter_budo Jan 16th, 2009 10:20 am
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

dreamer14 Jan 19th, 2009 12:54 am
Re: A Picture drop down list ?
 
After trying various ways i found alternative =p thanks for the help =)

peter_budo Jan 19th, 2009 5:22 am
Re: A Picture drop down list ?
 
Well if you found alternative why don't you share with others?

dreamer14 Jan 19th, 2009 1:51 pm
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.


All times are GMT -4. The time now is 1:04 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC