473,657 Members | 2,896 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Option Lists

When I create a dropdown option list with the following code:

<FORM NAME="menu">
<INPUT TYPE="BUTTON" VALUE="Leap to" onClick="leapto (this.form)">
<SELECT NAME="dest" SIZE=1>
<OPTION VALUE="frame,si tecontent.htm"> Site Content
<option value="frame,te amprofiles/contactlist.htm l">Contact List
<option value="frame,mi nutes/minutes.htm">Mi nutes of Meetings
<option value="frame,so cial/socialevents.ht ml">Social Events
</SELECT>
</FORM>

I can use the style="backgrou nd-color: cccc98; font-family: comic sans ms;
color: 006600" to specify the colour of the background, the font face and
the font colour - but is it possible to also colour the arrow on the right
side of the option box, and if so, what are the commands to colour it?

Many thanks

Andi
Jul 20 '05 #1
1 1874
"Andi B" <an**@theblackt ower.freeserve. co.uk> wrote in message news:<bl******* ***@newsg2.svr. pol.co.uk>...
When I create a dropdown option list with the following code:
[snip code using <select>]
That's not guaranteed to be a dropdown list; it's not even the first
presentation suggested in the HTML 4.01 standard:

"Visual user agents are not required to present a SELECT element as a
list box; they may use any other mechanism, such as a drop-down menu."
I can use the style="backgrou nd-color: cccc98; font-family: comic sans ms;
color: 006600"
Remembering that 'comic sans ms' is a Windows font...
to specify the colour of the background, the font face and
the font colour - but is it possible to also colour the arrow on the right
side of the option box, and if so, what are the commands to colour it?


No doubt IE has some proprietary bit of CSS, but even so it's not a
good idea to alter the appearance of 'standard' UI features (by
'standard' I mean standard within that platform).

--- Stephen Morley ---
http://www.safalra.com
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3816
by: Andrea | last post by:
Hi, I'm trying to emulate part of our client-server application as a web site so customers can use it, and I'm stuck when it comes to re-ordering items in a list. Basically we have a list of available articles ("availableItems") and a list of articles already in an issue ("selectedItems"). What I want is to be able to move articles freely between the two lists and then on submission add them to the issue (which I can), but also move...
3
5832
by: Rich | last post by:
We are preparing a page with twelve (12) drop down option/select menus, arranged vertically. It works, and it is what the user needs. The widths of the menu boxes are random now, but is there is a way to control the WIDTH of the menu boxes, so they would all be alike? Thank you for any help Rich
4
3206
by: Mark Kolber | last post by:
I did a little searching on this but couldn't find an answer... On my website, I have a section of stories (www.midlifeflight.com/stories) There are different stores on different pages that are selectable via a selection list. To avoid having to rewrite the list on each page, I moved it into a ..js file that produces it where called. Primary advantage is that when adding new pages, there only one option list to update.
3
18570
by: Iain Hallam | last post by:
Hi. I've been using display:none on the style property of some <option> elements in my forms, which works fine with Mozilla - as expected it removes the option from my dropdown (although it still exists in the code). Is there an equivalent in IE? The reasoning behind this is that I want users to rank objects using a <select> for each place (see below), and to remove the choice of earlier objects from <select> drop-downs later in the...
3
2182
by: William Fields | last post by:
Hello, I have an HTML page I'm trying to send down to the users browser that contains all data for a few SELECT objects (to reduce round-trips), and I'd like the SELECT drop down lists to control what parts of the data are presented in the other SELECT lists. I don't have much JavaScript experience, but I have seen suggestions along the lines of "Create a JavaScript array that holds all the data and rebuild the OPTION list in the...
2
3650
by: areef.islam | last post by:
Hi, I am kinda new to javascript and I am having this problem with selecting multiple options from a select tag. Hope someone can help me out here. here is my code /////////////////////////////////////////////////////////////////////////////////////// <form action="whatever.php" method="post"> <select name="zip_code" onchange="makeRequest('getCity.php?state='+this.form.zip_code.options.value)" multiple="multiple" size="20">
0
373
by: Mirovk | last post by:
I am trying to take actions using onchange with an option list without success. I am not able to fully populate the list without a bad bad behavior (the list is not getting populated) What I am looking for, is being able to call a sub procedure each time a new item in the list is selected (of course after it has been populated)
14
9224
by: The Natural Philosopher | last post by:
This is a nasty one and I can't see my way out of it. I have a bunch of select statements in a form, and each select statement has an onchange="do_something(this)" in it, and this works nicely..except when there is only ONE OPTION in a given select. It seems you cannot 'onchange' a single option! Well, that is reasonable. The trouble is I have no way of selecting it since the form itself is a
5
1197
by: keydrive | last post by:
I am looking for alternatives on storing menu option lists rather than the current process method. On a jsp form, there must be a cleaner way to store the user selection outside of the below and not using cookies. Suggestions and comments are welcome... tks -- html <% String countOptions= request.getParameter("countOptions"); if(countOptions == null) { countOptions = "30";
0
8384
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8302
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8820
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8718
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8601
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1601
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.