784 Part III . Document Objects Reference NN2 (Cool web site)
784 Part III . Document Objects Reference NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility . The cssText property contains a string of the style sheet rules contained by the styleSheet object. Parsing this text in search of particular strings is not wise because the text returned by this property can have carriage returns and other formatting that is not obvious from the text that is assigned to the rules in the style sheet. But you can use this property as a way to completely rewrite the rules of a style sheet in a rather brute-force manner: Assemble a string consisting of all the new rules and assign that string to the cssTextproperty. The more formal way of modifying rules (adding and removing them) is perhaps better form, but there is no penalty for using the cssTextproperty if your audience is strictly IE5+. On the Example on the CD-ROM CD-ROM Related Items: addRule(), deleteRule(), insertRule(), removeRule() methods. disabled Value: Boolean Read/Write NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility . . While the disabled property of the STYLE element object works with that element only, the styleSheet object s disabledproperty works with a styleSheet object that comes into the document by a LINK element as well. Enabling and disabling style sheets is one way to swap different appearance styles for a page, allowing the user to select the preferred style. The page can contain multiple style sheets that control the same selectors, but your script can enable one and disable another to change the overall style. You can even perform this action via the onLoadevent handler. For example, if you have separate style sheets for Windows and Mac browsers, you can put both of them in the document, initially both disabled. An onLoadevent handler determines the operating system and enables the style sheet tailored for that OS. Unless your style sheets are very extensive, there is little download performance penalty for having both style sheets in the document. On the CD-ROM Example on the CD-ROM styleSheetObject.disabled
Go visit our java server pages services for a reliable, lowcost webhost to satisfy all your needs.