473,325 Members | 2,792 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

How to change the mouse over color for select tag?

irfanmodan
Hi Everybody,

i have one critical problem in HTML,

when i using select tag,

for eg:

<select>
<option>Test 1</option>
<option>Test 2</option>
</select>

i need mouse over color to change when mouse moves to options

default background color is blue,

Let me know it is possible.

please help me

Thanks In Advance
Irfan
Feb 26 '11 #1
1 2439
acoder
16,027 Expert Mod 8TB
First things first, ask yourself if you really need this.

If you do, you can look at using:
Expand|Select|Wrap|Line Numbers
  1. elem.style.backgroundColor = ...
where elem is the option. I think that you may not be able to override the default colour (there may be a way, but it's not really something I'd be too concerned with), but it should change colour after moving the mouse.

This may also not work in IE.

If you want to guarantee that it works, you can create your own pseudo-element using a combination of HTML/CSS and JavaScript (i.e. DHTML).
Feb 28 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: carramba | last post by:
Hi! is it possible to change "selector" color in drop-down list? <select name="select" style="background-color: #ff0000"> <option style="background-color: #ff0000" value="1">Cony</option>...
11
by: Yeah | last post by:
I have a multiple choice quiz where I would like to use CSS to change the color of the answers upon clicking them. I would like to present the right and wrong answers up front, rather than direct...
2
by: Tee | last post by:
Hi, From my main form, I am executing another application using System.Diagnostics.Process.Start. The application has its own window displaying when the applicaiton is run. I want to change...
1
by: Angel | last post by:
How do you change the color of a control when the mouse enters the area of the control? And then change it back to the original color when the mouse exits the control? The Server controls do not...
1
by: AA Arens | last post by:
How to change the color of the buttons or the button from the switchboard? I use Access2003 but the database is from <2003, so the buttons are gray and squaired. Bart
3
by: Ryan Liu | last post by:
Hi, I want to change keywords text color in a text editor. I select RichTextBox and use its Select() method to select keywords line by line, one by one, then change its color. ...
3
by: ramkishor | last post by:
How can I change the color of button on mouse move over it. help .
2
by: fritz21 | last post by:
Hi, if somebody coud help me . It`s a beginner`s question but I`ve tryed to solve it for three days. I have several panels and I need to change their color when the mouse is over them. If...
5
by: rejoybhaskar | last post by:
guys, I need a small help here.. could u please tell me how i can change the color of a portion of an image on selecting that area with mouse. please. for e.g: we have the skeleton of human...
2
by: shanmugamit | last post by:
hi, i want to change mouse pointer to hand symbol over the select button. but i my code not work... c function fnover(id) { document.getElementById("id").style.cursor="hand"; }
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.