Java Script Style Sheets

Java Script Style Sheets

JavaScript Style Sheets (JSSS) was a stylesheet language technology proposed by Netscape Communications Corporation in 1996 to provide facilities for defining the presentation of webpages. It was an alternative to the Cascading Style Sheets (CSS) technology. Although Netscape submitted it to the World Wide Web Consortium (W3C), the technology was never accepted as a formal standard and it never gained much acceptance in the market. Only Netscape Communicator 4 supported JSSS, with the rival Internet Explorer web browser choosing not to implement the technology. Soon after Netscape Communicator's release in 1997, Netscape stopped promoting JSSS, instead focusing on the rival CSS standard, which was also supported by Internet Explorer and had much wider industry acceptance. The follow-up to Netscape Communicator, Netscape 6 (released in 2000), dropped support for JSSS. It now remains little more than a historical footnote, with many Web developers not even being aware of its existence. The proposed standard was not finished.

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, class and id selectors. 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 as Dynamic CSS by using JavaScript to modify the stylesheets applicable to the document at runtime.) Because of this JSSS was often used in the creation of DHTML.

Being written in JavaScript, JSSS may seem less friendly than CSS to users without a programming background.

Read more about Java Script Style Sheets:  Example, Browser Support

Famous quotes containing the words script, style and/or sheets:

    Genghis Khan, in his usual jodhpurs accessorized with whip, straddled a canvas chair and gloated upon the fairyland he had built. Journalists, photographers, secretaries, sycophants, script girls, and set dressers milled and stirred around him, activity ... irresistibly reminiscent of the movement of maggots upon rotting meat.
    Angela Carter (1940–1992)

    We are often struck by the force and precision of style to which hard-working men, unpracticed in writing, easily attain when required to make the effort. As if plainness and vigor and sincerity, the ornaments of style, were better learned on the farm and in the workshop than in the schools. The sentences written by such rude hands are nervous and tough, like hardened thongs, the sinews of the deer, or the roots of the pine.
    Henry David Thoreau (1817–1862)

    The difference is wide that the sheets will not decide.
    English proverb, collected in John Ray, English Proverbs (1670)