23.04.2013 Views

javascript

javascript

javascript

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ackground-position property, 312<br />

className, 318–319<br />

CSS2Properties, 309–310, 316–317, 325<br />

cssFloat, 309<br />

CSSImportRule, 327<br />

CSSRule, 308<br />

CSSRuleList, 321, 329<br />

cssRules, 321<br />

CSSStyleDeclaration, 281–282, 284, 308–310,<br />

316, 325, 334–336<br />

CSSStyleRule, 308, 327<br />

CSSStyleSheet, 320–321, 329, 338<br />

cssText, 309, 316–318, 326<br />

currentStyle, 336<br />

declarations, 308<br />

deleteRule(), 332–333<br />

deleting a rule from a style sheet, 332<br />

document.styleSheets, 321<br />

DOM interfaces for querying CSS, 307<br />

eight.css, code listing, 311<br />

eight.html, code listing, 310<br />

ElementCSSInlineStyle.style, 310, 313, 315<br />

embedding a style sheet, 344<br />

embedSheet(), 344<br />

enabling and disabling style sheets, 338<br />

findIndex(), 327–328, 332<br />

findRule(), 323–324, 326–327<br />

getComputedStyle(), 335–336<br />

getPropertyValue(), 309<br />

@import, 322, 326–327, 340, 343<br />

including or importing style sheets, 339<br />

inserting a rule into a style sheet, 328<br />

insertRule(), 328–333, 340<br />

manually finding a rule by its selector, 323<br />

ownerNode, 321<br />

owningElement, 321<br />

@page, 322<br />

parseInt(), 336<br />

queryCascade(), 336<br />

querying a style attribute, 313<br />

querying a style sheet, 321<br />

querying the declarations in a rule, 310<br />

querying the overall styles from the CSS<br />

cascade, 334<br />

removeChild(), 341–343<br />

removeRule(), 332<br />

rules, 308, 321<br />

scripting imported style sheets, 326<br />

scripting rules, 320<br />

selectors, 308<br />

selectorText, 308<br />

setProperty(), 309<br />

sprites, 312<br />

style attribute, 310<br />

styleFloat, 309<br />

StyleSheet, 320<br />

StyleSheetList, 321<br />

swapClass(), 319<br />

toggleSheet(), 339<br />

curly braces, 21, 217<br />

using in an if statement, 101<br />

currentStyle property, 362<br />

currentStyle.backgroundPosition, 365<br />

currying<br />

Curry, Haskell, 208<br />

definition of, 208<br />

■ D<br />

declarations, 308<br />

decodeURIComponent(), 402<br />

decrement (--) operator, 66<br />

default case clause, 107<br />

delete operator, 12, 94, 155<br />

deleteRule(), 332–333<br />

detachEvent(), 353, 380<br />

disruptive statements, definition of, 97<br />

dividers, 39<br />

do while loop<br />

spices code example, 122<br />

syntax of, 122<br />

techniques for running faster, 143<br />

See also conditional statements; looping<br />

statements<br />

Document interface, 257, 289<br />

Document node, 256, 259, 348<br />

document.cookie, 401, 405<br />

Document.createElement(), 289<br />

Document.createTextNode(), 289<br />

■ INDEX<br />

465

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!