Uncle Jim's JavaScript Examples

Stylish Bodies

In Internet Explorer, you can set the document body style dynamically by using the stylesheet
object and rules. For every stylesheet that is defined (there happens to be two in this document)
there is an associated stylesheet object kept internally. A given stylesheet is made up of rules,
one rule for each selector (such as BODY). Adding a rule to stylesheet will rewrite those properties
which are different between the old and the new rule (if one existed).


INSTALLATION INSTRUCTIONS
COPY - Insert Between Head Tags: <HEAD></HEAD>

COPY - Insert Inside Body: <BODY></BODY>


Close This Window