473,320 Members | 1,950 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,320 software developers and data experts.

set radio button color

Hi everyone,
this was originally posted to a javascript group.
If indeed there is no standard, is there a way to do it SPECIFICALLY
for firefox?
anyone can help?
thanks!
j

jullag wrote:
Hi there,
does anyone know how to set the color and/or background color of radio
buttons, in a way that's compatible with all browsers, including
firefox at least?

i've tried
document.form.elements[i].style.backgroundColor='red';
as well as
document.form.elements[i].style.color='red';

none of which work with firefox (latest version 1.0.4), although i
looks perfect in Opera 8.5...

any help would be greatly appreciated

thanks,
julien


This is really a CSS or HTML question, you may get better answers in

comp.infosystems.www.authoring.html
or
comp.infosystems.www.authoring.stylesheets

FWIW, my answer is no, you can't do it reliably in all browsers. By
all
means attempt it, but expect it not to work in many browsers.

Oct 5 '05 #1
3 9176
ju****@hotmail.com wrote:
Hi everyone,
this was originally posted to a javascript group.


In future, please think and analyze your problem _before_ posting it on
worldwide forums.
Hi there,
does anyone know how to set the color and/or background color of radio
buttons, in a way that's compatible with all browsers, including
firefox at least?


That's not really an HTML question. Neither was it a JavaScript question.

The short answer is that you cannot do it, but you could cause some harm in
trying, since some of the time, you might manage to disturb and distort the
representation of form fields to users.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Oct 5 '05 #2
ju****@hotmail.com a écrit :
Hi everyone,
this was originally posted to a javascript group.
If indeed there is no standard, is there a way to do it SPECIFICALLY
for firefox?
No. Not for now. Not that I know of.
http://www.meyerweb.com/eric/css/tes...ec05-11-03.htm

Netscape 7.0 was passing this test accordingly; so this must be some
kind of regression.

http://www.designdetector.com/articles/results.html
anyone can help?
thanks!
j

jullag wrote:

Hi there,
does anyone know how to set the color and/or background color of radio
buttons, in a way that's compatible with all browsers, including
firefox at least?

No. Not for now. Not that I know of.
http://www.meyerweb.com/eric/css/tes...ec05-11-03.htm

Netscape 7.0 was passing this test accordingly; so this must be some
kind of regression.

http://www.designdetector.com/articles/results.html
i've tried
document.form.elements[i].style.backgroundColor='red';
as well as
document.form.elements[i].style.color='red';

Those are reasonable attempts.
none of which work with firefox (latest version 1.0.4), although i
looks perfect in Opera 8.5...

any help would be greatly appreciated

thanks,
julien


I have not found any bugzilla bugfile on this.

This is really a CSS or HTML question, you may get better answers in

comp.infosystems.www.authoring.html
or
comp.infosystems.www.authoring.stylesheets

FWIW, my answer is no, you can't do it reliably in all browsers. By
all
means attempt it, but expect it not to work in many browsers.


Gérard
--
remove blah to email me
Oct 5 '05 #3
thanks for your help.
lately, i found two examples of "regressive evolution" of this kind in
firefox: this one + the way it processes big html tables compared to
earlier versions of netscape/mozilla: thousands of times slower. the
latter has been reported in bugzilla.
this makes me a lot less enthusiastic about this browser...
cheers
j

Oct 6 '05 #4

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

Similar topics

1
by: Brian | last post by:
Hello all... I have a page that will be performing a search. The search consists of 3 radio button options. The first 2 will search the entire web through google and the site as indexed by...
4
by: Oscar Monteiro | last post by:
I Have to sets of Radio buttons like so: <input type="radio" name=p1 value=1> <input type="radio" name=p1 value=2> <input type="radio" name=p1 value=3> <br> <input type="radio" name=p2 value=1>...
5
by: Digital Puer | last post by:
I have the following HTML form: - radio button A (default selected) - radio button B - input field, of type "file" with "Choose" button - submit button I would like to have it so that if the...
11
by: hygum | last post by:
I have combination of radio and select/input: http://sneleopard.dk/radio.html Is there a javascript which automatically sets radio 1, when the user does something with field 1, and automatically...
3
by: John Davis | last post by:
I created a ASP.NET Web Form using VB.NET with a text box, 2 radio buttons. When the user click the first radio button, the text will change to uppercase. If the user clicks the other radio button,...
0
by: vinay | last post by:
why are u not using the radiobutton list??? vinay >-----Original Message----- >I created a simple ASP.NET application with a text field, and 2 radio >buttons (uppercase and lowercase...
8
by: David Cameron | last post by:
I noticed that using an HTMLInputRadioButton and specifying a value to be an empty string (""), this is overridden by ASP.Net which set the value of the control to be the same as the ID of the...
2
by: James P. | last post by:
Help, I need to display radio buttons on a form. The data is from SQL table: each row in each table is displayed as a radio button. I have multiple SQL tables so I understand I need to put...
10
by: IchBin | last post by:
I am trying to set the state of a radio button. I do not see what I am doing wrong. Sorry, I am new at this.. I need another set of eyes to look at this snip of code. I am trying to set the radio...
8
by: photoboy | last post by:
I have racked by brain long enough on this, so now I need the help of someone who knows what they are doing. Here is what I am trying to achieve: First, I have two radio buttons (both unchecked)...
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...
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...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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.