Usefull fucntions to manipulate CSS rules.
It insert a new style sheet element on the page.
It will be inserted where the js code is placed (head or body)
and will override other CSS style sheets placed before.
jCSSRule(selector,property,value)
or jCSSRule(selector,{ property:value })
to add
new rules for the selector.
jCSSRule(selector,property)
to get the value for that key.
jCSSRule(selector,property,null)
will remove the rule and use
the default one defined in the css.
jCSSRule("*",null)
will remove all previous rules.
If you better like the jQuery syntaxe, use the jQuery plugin
jCSSRule("body",{ background:xxx });
jCSSRule("h1,h2",{ color:xxx, background:xxx });
jCSSRule("button",{ background:xxx });
jCSSRule("*",null);