473,491 Members | 2,159 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 9180
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
6292
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
3245
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
3069
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
4144
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
3093
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
1795
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
5885
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
11920
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
6045
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
4585
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
7115
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,...
0
7190
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...
1
6858
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7360
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...
0
5451
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4881
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...
0
3086
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1392
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 ...
0
280
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...

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.