473,670 Members | 2,724 Online
Bytes | Software Development & Data Engineering Community
+ 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.backgrou ndColor='red';
as well as
document.form. elements[i].style.color='r ed';

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.infosystem s.www.authoring.html
or
comp.infosystem s.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 9193
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.backgrou ndColor='red';
as well as
document.form .elements[i].style.color='r ed';

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.infosystem s.www.authoring.html
or
comp.infosystem s.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
6314
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 google. The 3rd option I want to search the site using MS-Index Server. I can get them to run individually but I'm not sure how to set the parameters and test for the 3rd radio button (index server) selected on the page. I thought that, for...
4
3266
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> <input type="radio" name=p2 value=2> <input type="radio" name=p2 value=3> then a text area and a button:
5
3095
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 user clicks on the "Choose" button of the input field (to select a file on the local disk), then radio button B is automatically
11
4167
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 sets radio 2, when the user does something with field 2?
3
3123
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, the text will change to lowercase. I added the following event, but still won't able to change the text to uppercase. Private Sub RadioButton1_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles...
0
1803
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 conversion). When the user enters a text in >text field, the user can click the radio button for case conversion. I set >the property of radio button to AutoPostBack=True, the
8
5898
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 control. See the code below * Page.aspx: <%@ Page language="c#" Codebehind="Test.aspx.cs" AutoEventWireup="false" Inherits="Webspace.Test" %>
2
11954
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 them each in a GroupBox. All the examples I saw from the books or from the web show me how to add static radio buttons at design, or dynamically at run time but with fixed radio buttons (like from an array). I need to create radio buttons based...
10
6080
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 button with this link of code: echo 'SCRIPT language=JavaScript setCheckedValue("'.$_SESSION.'");</SCRIPT>'; //? <snip of code>
8
4608
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) that need to be validated when the submit button is clicked. Instead of the standard alert window popping up (which I have now), I want the radio button background color to change from the table color (E2E2E2) to red (FF0000) for both buttons...
0
8471
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
8386
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
8903
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
8661
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...
0
5686
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4213
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2802
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
2044
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1795
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.