| | |
A Picture drop down list ?
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Sep 2008
Posts: 21
Reputation:
Solved Threads: 1
Is It possible?
Tried this but all i see is blank haha
ANy one with recommendations on how to make a picutre based drop down list
Tried this but all i see is blank haha
JSP Syntax (Toggle Plain Text)
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>"); }
•
•
Join Date: May 2008
Posts: 2
Reputation:
Solved Threads: 1
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
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.
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
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
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
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
![]() |
Similar Threads
- combo box (VB.NET)
- Content Changes across pages via Drop-Down Box (ASP.NET)
Other Threads in the JSP Forum
- Previous Thread: 3 drop down list
- Next Thread: Create Dynamic Hyperlink
| Thread Tools | Search this Thread |
apache backbutton combobox connection database development directorystructure dynamicpagetitles eclipse frames glassfish ie8 imagetodatabse imageupload integer internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 network parameters passing ping printinserverinsteadofclient redirect request.getparameter response servlet servletdopost()readxml sessions software ssl state_saving_method stocks sun tomcat tutorial update video web






