Re: Doing CSS via JavaScript
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: Doing CSS via JavaScript

From: Aaron Gray <ang.usenet@gmail.com>
Date: Sun Apr 09 2006 - 01:28:36 CEST

"Ian Collins" <ian-news@hotmail.com> wrote in message
news:49qttjFq1nlgU5@individual.net...
> Thinking about is a bit more, why do this when you can simply use a
> style tag?

Belive me my app needs it to do a work around on a work around. Its pritty
hairy stuff at the edges of browser behaviour.

> Also is this is to run before styles are applied, there won't be any
> elements in the DOM beyond the current script, so the else part is void.

Right.

It will not create a new style rule at the moment thats what I am stuck on
now.

Anyone know how to add a new rule to the CSS using this javascript approach
?

Aaron
Received on Mon May 1 04:50:41 2006