diff -r 000000000000 -r 40c8f766c9b8 src/cm/media/js/lib/yui/yui_3.0.0b1/examples/node/node-style.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/cm/media/js/lib/yui/yui_3.0.0b1/examples/node/node-style.html Mon Nov 23 15:14:29 2009 +0100 @@ -0,0 +1,211 @@ + + + + + YUI Library Examples: Node: Node Styling + + + + + + + + + + + + +
+
+
+

+ + YUI 3.x Home - + +

+
+ + +
+ + + +
+
+
+
+

YUI Library Examples: Node: Node Styling

+
+
+ +

Note: This is YUI 3.x. Looking for YUI 2.x?

+ +
+
+
+
+ +

Node: Node Styling

+ +
+

+

This example shows how to style an element using Node.

+ +

+ +
+
+ + + + +
+

Click me to change my color and show some style information.

+
+ + + + + + + +
+
+
+ +

Setting up the HTML

+

First we need some HTML to work with.

+ + +

Using Style Methods

+

In this example, we will set the node's color and compare the style and computedStyle values when our demo node is clicked.

+ + +

The last step is to assign the click handler.

+ + +

Full Script Source

+ +
+ +
+ +
+
+ + + +
+ +
+

Copyright © 2009 Yahoo! Inc. All rights reserved.

+

Privacy Policy - + Terms of Service - + Copyright Policy - + Job Openings

+
+
+ + + +