| Javascript Style Sheets |
Article Index for Javascript |
Shopping JavaScript |
Website Links For Javascript |
Information AboutJavascript Style Sheets |
| CATEGORIES ABOUT JAVASCRIPT STYLE SHEETS | |
| stylesheet languages | |
|
Using JavaScript code as a stylesheet, JSSS styles individual element by modifying properties of the document.tags object. For example, the CSS: h1 { font-size: 20pt; } is equivalent to the JSSS: document.tags.H1.fontSize = "20pt"; Note the case significance in element names. JSSS is in some ways more powerful and in some ways less powerful than CSS. It lacks the various CSS selector features, supporting only a simple tag name selector. On the other hand, since it is written using a complete programming language, stylesheets can include highly complex dynamic calculations and conditional processing. (In practice, however, this can be achieved with CSS by using JavaScript to modify the stylesheets applicable to the document at runtime.) Because of this JSSS is often used in the creation of DHTML . Being written in JavaScript, JSSS may seem less friendly than CSS to users without a programming background. SEE ALSO EXTERNAL LINKS |
|
|