11.12.2012 Views

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<br />

Visibility &nbsp;&nbsp;<br />

<br />

<br />

<br />

<br />

<br />

<br />

Dynamic Style Using Classes and Collections<br />

Manipulating style in the fashion of the previous section works only on a single tag at a time.<br />

This section explores how you might manipulate style rules in a more complex manner. First,<br />

consider the use of CSS class selectors. You might have a style sheet with two class rules like<br />

this:<br />

<br />

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

Saved successfully!

Ooh no, something went wrong!