Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
That particular website is manipulating the stylesheets somehow in a way I didn't want to investigate. I think it is a bad choice for something so simple.
The best way to switch a group of styles is to just change the class on the body or other parent element, then create rules in the stylesheet based on which class the elements are a descendant of.
To change individual styles on single elements, you may change the inline CSS rules through that elements style object.
Changing the className will almost always be faster: http://www.quirksmode.org/dom/classchange.html That link may also help you understand how these methods work.
|