[Javascript] Changing the font of all elements on a page

Hershel Robinson hershelr at netvision.net.il
Thu Nov 25 11:44:02 CST 2004


> I am very aware of stylesheets.
>
> It's a complex problem needing me to change font-size on the browser
> and not when the page is rendered.

Just FYI, one can access the stylesheet rules themselves and change their
definition dynamically. I have used this before myself.

For example, to show or hide a set of DOM objects, simply assign them all
the same class and then dynamically change the visibility of that class
(called a rule) and all those items change dynamically. :)

Hershel




More information about the Javascript mailing list