By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,713 Members | 2,012 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,713 IT Pros & Developers. It's quick & easy.

Dropdown Menu

P: n/a
Is there a javascript alternative to the dropdown menu in a form
(SELECT OPTION). I would like the ability to pass a selected item to a
function but I would like more control in the design of the menu. I
would like to have different colors within a single line of the menu
and different colors on selected lines. It would also be nice to have
the initial "button" a small size that would widen when dropped down.

My existing page is within my web site
http://www.dcs-chico.com/~denmarks/ Select Amtrak from the menu at the
left. I would like more control over placement, size, and colors of the
three dropdown menus.

--
Dennis M. Marks
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Dennis M. Marks wrote on 29 Nov 2003:
Is there a javascript alternative to the dropdown menu in a form
(SELECT OPTION). I would like the ability to pass a selected
item to a function but I would like more control in the design
of the menu. I would like to have different colors within a
single line of the menu and different colors on selected lines.
It would also be nice to have the initial "button" a small size
that would widen when dropped down.

My existing page is within my web site
http://www.dcs-chico.com/~denmarks/ Select Amtrak from the menu
at the left. I would like more control over placement, size, and
colors of the three dropdown menus.
You can do this with style sheets in Internet Explorer by specifying
the background-color and color styles. This didn't work in my version
of Opera (7.22 - latest) and might not work in Mozilla or Netscape.
For example:

<SELECT>
<OPTION style="background-color: #000000; color: #ffffff"Item 1</OPTION> <OPTION style="color: #000000; background-color: #ffffff"Item 2</OPTION> <OPTION style="background-color: #000000; color: #ffffff"Item 3</OPTION> <OPTION style="color: #000000; background-color: #ffffff"Item 4</OPTION>

</SELECT>

Of course, using classes would make much more sense.

Mike

--
Michael Winter
M.******@blueyonder.co.uk.invalid (remove ".invalid" to reply)
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.