Forum Moderators: open

Message Too Old, No Replies

Javascript Drop Down Menu

But theres a catch! I want an image in there!

         

wfernley

9:07 pm on Jan 3, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hey everyone.

Well I want to create a dropdown menu for my website. I want to list categories for the products I sell inside that dropdown menu. I was curious though how to make it so you have an image at the top of the menu before the categories get listed. I have seen a couple websites do this. I'm not sure if that involves Javascript though or CSS.

Does anyone know how to do this?

Thanks in advance!

Wes

adni18

10:38 pm on Jan 3, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This would be the first option in your select menu.

<option style="background-image:url(logo.jpg);background-color:white;background-repeat:no-repeat;background-position:middle center"></option>