Re: Changing CSS styles
- From: "Evertjan." <exjxw.hannivoort@xxxxxxxxxxxx>
- Date: 29 Feb 2008 08:09:58 GMT
Aaron Gray wrote on 29 feb 2008 in comp.lang.javascript:
Hi,
I cannot remember how to change CSS style properties.
I want something like :-
document.stylesheet[0].class["slideshow"].width = 100;
But this is not working. I need something that works on IE and FF, and
ideally even NS4.
document.styleSheets[0].cssRules[0] //access the first rule in Firefox
document.styleSheets[0].rules[0] //access the first rule in IE Win
<http://www.javascriptkit.com/domref/cssrule.shtml>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
.
- Follow-Ups:
- Re: Changing CSS styles
- From: Aaron Gray
- Re: Changing CSS styles
- References:
- Changing CSS styles
- From: Aaron Gray
- Changing CSS styles
- Prev by Date: Re: Create an 'account password' input field
- Next by Date: Re: Looking for web designer
- Previous by thread: Changing CSS styles
- Next by thread: Re: Changing CSS styles
- Index(es):
Relevant Pages
|